fastai学习:06_multicat Questionnarie

1.How could multi-label classification improve the usability of the bear classifier?
可以对不存在的熊进行分类
2.How do we encode the dependent variable in a multi-label classification problem?
One-hot encoding: Using a vector of zeros, with a one in each location that is represented in the data, to encode a list of integers.
3.How do you access the rows and columns of a DataFrame as if it was a matrix?
df.iloc
4.How do you get a column by name from a DataFrame?
df[‘name’]
5.What is the difference between a Dataset and DataLoader?
Dataset:: A collection that returns a tuple of your independent and dependent variable for a single item
DataLoader:: An iterator that provides a stream of mini-batches, where each mini-batch is a tuple of a batch of independent variables and a batch of dependent variables
6.What does a Datasets object normally contain?
training set and valid set
7. What does a DataLoaders object normally contain?
training dataloader and valid dataloader
8. What does lambda do in Python?
一种简写函数的方式
9.What are the methods to customize how the independent and dependent variables are created with the data block API?
get_x:自变量
get_y:因变量
10.Why is softmax not an appropriate output activation function when using a one hot encoded target?
softmax只能预测一个结果,无法满足多标签需求
11.Why is nll_loss not an appropriate loss function when using a one-hot-encoded target?
nll_loss只能返回一个激活值
12.What is the difference between nn.BCELoss and nn.BCEWithLogitsLoss?
F.binary_cross_entropy and its module equivalent nn.BCELoss calculate cross-entropy on a one-hot-encoded target, but do not include the initial sigmoid. Normally for one-hot-encoded targets you’ll want F.binary_cross_entropy_with_logits (or nn.BCEWithLogitsLoss), which do both sigmoid and binary cross-entropy in a single function.
13.Why can’t we use regular accuracy in a multi-label problem?
常规准确性函数假设最终预测结果为可能性做的多类别,但是在多标签问题中,需要设置激活阈值,以选择最终预测结果,以便于分类目标比较。
14.When is it okay to tune a hyperparameter on the validation set?
In this case, we’re using the validation set to pick a hyperparameter (the threshold), which is the purpose of the validation set. Sometimes students have expressed their concern that we might be overfitting to the validation set, since we’re trying lots of values to see which is the best. However, as you see in the plot, changing the threshold in this case results in a smooth curve, so we’re clearly not picking some inappropriate outlier. This is a good example of where you have to be careful of the difference between theory (don’t try lots of hyperparameter values or you might overfit the validation set) versus practice (if the relationship is smooth, then it’s fine to do this).
当组成的曲线是平滑的时,可以
15.How is y_range implemented in fastai? (See if you can implement it yourself and test it without peeking!)
def sigmod(x, hi, lo):
return x.sigmod()*(hi-lo)+lo
16.What is a regression problem? What loss function should you use for such a problem?
预测连续型结果,mse
17.What do you need to do to make sure the fastai library applies the same data augmentation to your input images and your target point coordinates?
PointBlock.
The only other difference from the previous data block examples is that the second block is a PointBlock. This is necessary so that fastai knows that the labels represent coordinates; that way, it knows that when doing data augmentation, it should do the same augmentation to these coordinates as it does to the images:

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/550493.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

【论文阅读笔记】Detecting Camouflaged Object in Frequency Domain

1.论文介绍 Detecting Camouflaged Object in Frequency Domain 基于频域的视频目标检测 2022年发表于CVPR [Paper] [Code] 2.摘要 隐藏目标检测(COD)旨在识别完美嵌入其环境中的目标,在医学,艺术和农业等领域有各种下游应用。…

ubuntu中使用firefox浏览器播放bilibili的h5网页视频

安装好系统后,直接firefox打开bilibili显示没有flash插件 找了一圈没有发现自动播放h5的选项 搜索了一下发现可能是需要解码器 sudo apt-get install ubuntu-restricted-extras就能看了

ubuntu挂起唤醒后十几秒钟就自动熄屏一次

昨天晚上笔记本没关机,ubuntu挂起一晚上,今天早上打开电脑,发现每过十几秒钟就自动熄屏一次,重启之后好了,不知道什么原因 搜索了一下说可能是DPMS的问题,用xset -dpms可以关闭电源管理选项 但是本来的设置…

python3 上传文件到目标机器_Python3 +服务器搭建私人云盘,再也不怕限速了

先来看看效果电脑访问手机访问Windows版本搭建(1).首先你需要在你的电脑上或者服务器上安装Python3.X。(2).然后通过如下指令来安装updog库,网上有很多关于updog的介绍,我这里就不详细说pip3 install updog(3).静静的等他安装完成,然后执行以…

Ubuntu下绘图软件krita64位无中文问题

ubuntu20 sudo apt install krita-l10n 就有了 参考:https://bbs.deepin.org/post/181669

tableau度量值计算_Tableau图表界面组成介绍

声明:内容来源拉勾教育数据分析训练营课程视频1 Tableau工作表基本界面基础概念:维度、度量、聚合、粒度。维度: 维度包含定量值(例如名称、日期或地理数据),可以使用维度进行分类、分段以及揭示数据中的详细信息。维度影响视图中的详细级别。…

小强升职记思维导图_你学会用 “思维导图” 学英语了吗?

今天我们来讲讲目前比较火爆的“思维导图学习法”。思维导图又叫“MIND MAP”,是英国人托尼博赞发明的一种思维工具。托尼博赞本人在心理学、语言学、数学以及科学方向均获得过学位,而且他还创造了世界脑力奥林匹克运动。虽然大师已逝,但是这…

ubuntu下创建软件图标和直接点文件打开

ubuntu中有一些从github上下载的软件或者是appimage软件,能够使用,但是不在应用程序中显示,也不能直接点文件来打开程序 以cajviewer为例子,下下来是CAJViewer-x86_64-buildubuntu1604-210401.AppImage 打开目录/usr/share/appli…

hive币涨幅空间大吗_自动消防水炮只能安装在大空间场所吗

在大家不了解或者不清楚自动消防水炮的时候,经过一些厂家解释或者了解产品后,都知道是一种能够自动跟踪定位火焰并在短时内灭火的喷水系统,而且适用于安装在一些高大空间场所中,那么这是不是意味着,只能在大空间场所安…

可以直接考甲级吗_函授本科可以考四级吗

函授本科是可以考英语四级的。但必须经过学生所在学校同意,才可以在本校报名参加考试。函授本科可以考四级吗目前来说不管是函授大专还是本科,是可以考英语四级的,但应经所报考的学校同意,可在成人高考报考学校报名参加考试。函授本科用处大不大?函授本…

duration转为时间戳_Flink Table APIamp;SQL编程指南之时间属性(3)

Flink总共有三种时间语义:Processing time(处理时间)、Event time(事件时间)以及Ingestion time(摄入时间)。关于这些时间语义的具体解释,可以参考另一篇文章Flink的时间与watermarks详解。本文主要讲解Flink Table API & SQL中基于时间的算子如何定…

旅游系统_旅游标识系统,必须真的“旅游化”

标识是为游客传递路线,指明景点位置、起安全警示作用以及传达公园发展理念的标识(牌)或标识物,是公园的重要组成部分,有助于旅游者顺利完成游览过程,获得满意的旅游体验。好的完善的标识系统,可以起到画龙点睛的作用&a…

如何在linux下启动和关闭oracle服务

1.前言 确保我们能够访问oracle数据库包含两部分,一个是oracle实例,一个是监听,两个同时开启,我们才能正常的使用数据库,因此我们在关闭和启动oracle服务时,也需要同时操作实例和监听。能够操作linux的工具…

exfat为什么不适合机械硬盘_为什么有人说小排量车不适合跑高速,多少排量的车适合?...

阅读本文前,请您先点击上面的蓝色字体“梅赛德斯丶Benz”,再点击“关注”,这样您就可以继续免费收到祝福了。每天都有分享,完全是免费订阅,请放心关注。 哈喽,小伙伴们关注“梅塞德斯丶Benz”每…

调用第三方接口的几种请求方式

第一种方式: String url4"https://www.showmebug.com/open_api/v1/interviews"; jsonnew JSONObject(); json.put("candidate_name", "张三");//传递的参数 MediaType mediaType MediaType.parse("application/json;charsetut…

rust石头墙几个c4_石头在景观中的运用

石材的运用横跨几个世纪,经久不衰。在景观设计中仍然是一个受欢迎的材料。运用好了可以很好的彰显景观的特性。石头的优点持续一生;非常耐用;容易使用;可以用在墙壁装修,铺路,以及重复使用;有不…

java通过POI技术将html转成word

private static void inputStreamToWord() throws IOException {String content "<html>" "<head>你好</head>" "<body>" "<table>" "<tr>" "<td>信息1</td>" …

h5禁用浏览器下载视频_Flash正式被全球禁用,只有中国版还活着

这个弹窗常用 Chrome 或 Edge 浏览器的用户应该很熟悉&#xff0c;基本上每月都能看到几次。说起来 Adobe Flash Player 也是老朋友&#xff0c;这个 F 红标从 4399 小游戏到视频网站默认播放器&#xff0c;二十年来几乎伴随互联网一代人成长。图源自小众软件但技术总在进步&am…

java通过POI技术将HTML文件转成Word

public void htmlToWord2() throws Exception {InputStream bodyIs new FileInputStream("f:\\1.html");InputStream cssIs new FileInputStream("f:\\1.css");String body this.getContent(bodyIs);String css this.getContent(cssIs);//拼一个标准的…

alxctools索引超出了数组界限_[译]V8中的数组类型

译者&#xff1a;蒋海涛JavaScript 对象可以和任何属性有关联。对象属性的名称可以包含任何字符。有趣的是 JavaScript 引擎可以选择名称为纯数字的属性来进行优化&#xff0c;而这个属性其实就是数组 index。在 V8 中&#xff0c;会特殊处理整数名称的属性&#xff08;最常见的…