opensearch_关于OpenSearch的重要性

opensearch

opensearch

I'm a big fan of Open Search, the idea, the format, and the user experience it can enable. You start typing a domain you've hit before that you want to search within. When it starts autocompleting, you hit tab, and then type your search.

我是Open Search的忠实拥护者,它的想法,格式以及可以带来的用户体验。 您开始输入要在其中搜索的域名。 当它开始自动完成时,您点击选项卡,然后键入搜索。

So, "stacko - TAB - json - ENTER" has me searching StackOverflow for json results. I don't have to google/bing and then add "site:stackoverflow.com" to my query. I don't have to hit the home page then look around for a search box. The site just includes a meta tag and an opensearch.xml file and poof, the site has taught my browser how to search. Once you've tried this, you'll find it hard to browse/search without. You'll prefer sites that include it and be frustrated with sites that don't. (More on that later.)

因此,“ stacko-TAB-json-ENTER”让我在StackOverflow中搜索json结果。 我不必google / bing,然后将“ site:stackoverflow.com”添加到我的查询中。 我不必点击主页,而是四处寻找搜索框。 该站点仅包含一个meta标记以及一个opensearch.xml文件和poof,该站点已教会我的浏览器如何搜索。 一旦尝试了这一点,您将发现很难浏览/搜索。 您将更喜欢包含它的网站,而对不包含它的网站感到沮丧。 (稍后会详细介绍。)

IMPORTANT UPDATE/NOTE: A buddy of mine points this out, and he's right. That said, I want to say that I like BOTH of them, and I'm very much enamored with the Tab Search feature.

重要更新/注意:我的一个伙伴指出了这一点,他是对的。 就是说,我想说我俩都喜欢,而且我非常喜欢Tab搜索功能。

"Just to be clear, these things are not the same thing.

“请明确,这些东西不是一回事。

  • OpenSearch is a format for specifying how to search a site. 

    OpenSearch是用于指定如何搜索站点的格式。
  • Tab Search is a particular UX for allowing you to do a search on a non-default search provider. It happens to use OpenSearch to learn how to search different search providers."

    标签搜索是一种特殊的UX,它允许您在非默认搜索提供程序上进行搜索。 碰巧使用OpenSearch来学习如何搜索不同的搜索提供者。”

I setup OpenSearch at Hanselman.com back in 2009!

早在2009年就在Hanselman.com上设置了OpenSearch

Chrome has a great implementation of Open Search.

Chrome具有出色的Open Search实现。

Type, Tab, Type, Enter

I just added a one line META tag and a static XML file. Boom.

我刚刚添加了一行META标签和一个静态XML文件。 繁荣。

 rel="search" type="application/opensearchdescription+xml" href="/blog/opensearch.xml" title="Hanselman Search">

Your static XML file describes what the resulting URL should look like. Here's a small example.

您的静态XML文件描述了所得URL的外观。 这是一个小例子。


   
   
    
    
     
     Hanselman Search
    
    
    
    
     
     Search Scott Hanselman's Blog
    
    
    
    
    
    http://www.hanselman.com/blog/favicon.ico
    
    
     
     UTF-8
    
    
    
    
     
     http://www.hanselman.com/
    
    
   
   

This is such a clean and obvious user story. It makes your web browsing experience better.

这是一个干净明显的用户故事。 它使您的Web浏览体验更好。

User wants to easily search within a site they visit often. Every browser and OS should support OpenSearch.

用户希望在他们经常访问的站点内轻松搜索。 每个浏览器和操作系统都应支持OpenSearch。

Amazon used to support it but in the last year or so removed it in a homepage redesign. It's more than a little ironic that it was a9.com and Amazon.com that came up with OpenSearch and actually host the http://opensearch.org websites, but now the Amazon.com home page doesn't support it.

亚马逊曾经支持它,但是在去年左右,它在主页重新设计中将其删除。 具有讽刺意味的是,OpenSearch附带了a9.com和Amazon.com,它们实际上托管着http://opensearch.org网站,但是现在Amazon.com主页不支持它。

If you work for Amazon and are reading this blog post, consider this your calling out. Please put OpenSearch back on Amazon.com.

如果您在Amazon工作,并且正在阅读此博客文章,请认为这是您的要求。 请将OpenSearch重新放回Amazon.com。

Dear Reader, take a minute and see if your favorite browser supports OpenSearch. If it does, try it out. If not, ask them for it. Same for your favorite sites. If you run a site, you can easily add OpenSearch in a few minutes.

亲爱的读者,请花一点时间,看看您喜欢的浏览器是否支持OpenSearch。 如果可以,请尝试一下。 如果没有,向他们询问。 您喜欢的网站也一样。 如果您运行网站,则可以在几分钟内轻松添加OpenSearch。

翻译自: https://www.hanselman.com/blog/on-the-importance-of-opensearch

opensearch

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
特征重要性评估在Python中可以通过使用XGBoost库来实现。XGBoost的特征重要性通过特征在所有弱分类器中节点出现次数来衡量。下面是一个示例代码,展示了如何使用XGBoost库进行特征重要性评估并保存结果到json文件中: ```python import json import pandas as pd import xgboost as xgb # 读取训练数据 train_data = pd.read_csv('data/alldata.csv') # 提取特征和标签 features = train_data.drop(columns=['价格']) labels = train_data['价格'] # 训练XGBoost模型 model = xgb.XGBRegressor(max_depth=10, learning_rate=0.15, n_estimators=150) model.fit(features, labels) # 获取特征重要性 feature_importance = model.feature_importances_.tolist() feature_names = features.columns.tolist() # 构建特征重要性字典 feature_dict = {} for importance, name in sorted(zip(feature_importance, feature_names), key=lambda x: x = importance # 保存特征重要性到json文件 with open("feature_importance.json", "w", encoding='utf-8') as f: f.write(json.dumps(feature_dict, indent=0, ensure_ascii=False)) print('成功写入特征重要性文件!') ``` 以上代码使用XGBoost的回归模型训练数据,并通过`feature_importances_`属性获取特征重要性。然后,将特征重要性保存到json文件中。你可以根据自己的需要修改代码中的文件路径和模型参数。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [python XGBoost 极简代码求解特征重要性](https://blog.csdn.net/qq_40811682/article/details/122591908)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [pysaliency:用于显着性建模和评估的Python框架](https://download.csdn.net/download/weixin_42139460/15639403)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值