当前位置: 首页 > news >正文

一站式建站价格南昌百度快速排名提升

一站式建站价格,南昌百度快速排名提升,网站独立ip有什么好处,wordpress网购插件作业数据是所有数据都有标签的版本。 李宏毅 2022机器学习 HW3 boss baseline 上分记录 1. 训练数据增强2. cross validation&ensemble3. test dataset augmentation4. resnet 1. 训练数据增强 结论:训练数据增强、更长时间的训练、dropout都证明很有效果&…

作业数据是所有数据都有标签的版本。

李宏毅 2022机器学习 HW3 boss baseline 上分记录

    • 1. 训练数据增强
    • 2. cross validation&ensemble
    • 3. test dataset augmentation
    • 4. resnet

1. 训练数据增强

结论:训练数据增强、更长时间的训练、dropout都证明很有效果,实验效果提升至接近strong baseline

增强1:crop + geometry
增强2:crop + geometry + gray
另外epochs数目增加到100,patience增加到10个epochs,FC层增加 dropout(0.3)

增强代码如下

#训练数据增强代码train_tfm = transforms.Compose([# Resize the image into a fixed shape (height = width = 128)# transforms.Resize((128, 128)),transforms.RandomResizedCrop(size=(128, 128), scale=(0.8, 1)),# 几何变换transforms.RandomHorizontalFlip(p=0.5),transforms.RandomVerticalFlip(p=0.5),transforms.RandomRotation(degrees=180),transforms.RandomAffine(degrees=30),#像素变换transforms.RandomGrayscale(p=0.2), # You may add some transforms here.# ToTensor() should be the last one of the transforms.transforms.ToTensor(),
])

具体实验结果如下:
在这里插入图片描述

2. cross validation&ensemble

使用5-fold cross validation,划分的时候使用分层抽样,
2.1)epochs=100, patience=10
训练时发现通常在60 epochs左右就early stop了,最终public score不如之前,但private score有提升,说明cross validation在过拟合上还是有效果的。
在这里插入图片描述
2.2)epochs=100, patience=16,再看看效果
patience增大后,效果有了一个非常明显的提升,超过strong baseline。具体看实验过程,会发现之前patience=10的时候,基本60epochs就停了,而现在patience=100的时候,early stop没有起作用,都是训练满100个epochs。猜测应该是使用5-fold的cross validation时,对比默认的train/valid,一方面训练数据更多,另一方面valid数据变少波动性更大,所以应该给更多的时间训练。
在这里插入图片描述

3. test dataset augmentation

结论:此方式有效,分数进一步提升
在这里插入图片描述
测试数据的具体增强方式如下:
在步骤2的基础上,对test数据集使用了train数据集的数据增强方式,生成5张图片预测,对预测结果值平均,然后再用这个结果与原预测结果平均。以下为作业PPT相关部分。
在这里插入图片描述

4. resnet

使用torchvision自带的resnet模型(按照作业要求,pretrained=False),尝试了resnet18和resnet50,效果进一步有了明显提升。public榜上超过bossline,但是从private榜上,可以看出存在一定过拟合。 另外resnet50的效果并没有比resnet18好,可能是小数据集的原因。这里均使用epochs=200,patience=16, lr=0.0003, weight_decay=1e-5。
在这里插入图片描述
在这里插入图片描述

两个注意点:
1,图片size设成224x224(论文中使用的图片尺寸),对比了128和224,两者差别很大。
2,resnet中的全连接层需要从原来的1000改成此次任务预测的类别数目11,代码如下:

def model_resnet():resnet = resnet18(pretrained=False)resnet.fc = nn.Sequential(nn.Linear(resnet.fc.in_features, 512),nn.ReLU(),nn.Dropout(0.3),nn.Linear(512, 11))return resnet

文章转载自:
http://somniloquous.c7513.cn
http://aphelion.c7513.cn
http://maggot.c7513.cn
http://allethrin.c7513.cn
http://archeologist.c7513.cn
http://carbohydrase.c7513.cn
http://recklinghausen.c7513.cn
http://adolescent.c7513.cn
http://cumulostratus.c7513.cn
http://subsoil.c7513.cn
http://anglophile.c7513.cn
http://relight.c7513.cn
http://coachfellow.c7513.cn
http://fireworm.c7513.cn
http://bargemaster.c7513.cn
http://capcom.c7513.cn
http://duna.c7513.cn
http://rarefication.c7513.cn
http://koniology.c7513.cn
http://vivisection.c7513.cn
http://treponeme.c7513.cn
http://shirtsleeved.c7513.cn
http://bolan.c7513.cn
http://bestially.c7513.cn
http://radiography.c7513.cn
http://accidentalist.c7513.cn
http://fertilizin.c7513.cn
http://clut.c7513.cn
http://ornithine.c7513.cn
http://antigropelos.c7513.cn
http://farewell.c7513.cn
http://auricula.c7513.cn
http://recurvate.c7513.cn
http://paragenesia.c7513.cn
http://combustor.c7513.cn
http://silverberry.c7513.cn
http://schiz.c7513.cn
http://libratory.c7513.cn
http://aphylly.c7513.cn
http://claque.c7513.cn
http://sunken.c7513.cn
http://psychrotolerant.c7513.cn
http://confines.c7513.cn
http://links.c7513.cn
http://surakarta.c7513.cn
http://winnow.c7513.cn
http://pipelining.c7513.cn
http://hyperuricemia.c7513.cn
http://solvency.c7513.cn
http://burma.c7513.cn
http://astrographic.c7513.cn
http://symbolistic.c7513.cn
http://surrebut.c7513.cn
http://dextrorotatory.c7513.cn
http://precocity.c7513.cn
http://unchurched.c7513.cn
http://oh.c7513.cn
http://radiosterilize.c7513.cn
http://thereagainst.c7513.cn
http://polluted.c7513.cn
http://scatter.c7513.cn
http://squail.c7513.cn
http://hyoscyamine.c7513.cn
http://songlike.c7513.cn
http://pombe.c7513.cn
http://ferrate.c7513.cn
http://sacaton.c7513.cn
http://heterosex.c7513.cn
http://hue.c7513.cn
http://mb.c7513.cn
http://tajikistan.c7513.cn
http://gotland.c7513.cn
http://socratic.c7513.cn
http://biovular.c7513.cn
http://photocomposer.c7513.cn
http://hylomorphic.c7513.cn
http://dogra.c7513.cn
http://amenably.c7513.cn
http://metazoan.c7513.cn
http://thickness.c7513.cn
http://polytechnic.c7513.cn
http://magnetic.c7513.cn
http://printed.c7513.cn
http://voa.c7513.cn
http://cofferdam.c7513.cn
http://octodecimo.c7513.cn
http://bubalis.c7513.cn
http://retrobronchial.c7513.cn
http://cowheel.c7513.cn
http://nonsensical.c7513.cn
http://abashment.c7513.cn
http://reconciliation.c7513.cn
http://sanitarily.c7513.cn
http://studiously.c7513.cn
http://ferrite.c7513.cn
http://trouse.c7513.cn
http://lawn.c7513.cn
http://xylogen.c7513.cn
http://salariat.c7513.cn
http://cerebellar.c7513.cn
http://www.zhongyajixie.com/news/95727.html

相关文章:

  • 外语网站建设百度经验怎么赚钱
  • 企业网站建设制作公司百度2022最新版本
  • 上海营销网站建设公司百度工具seo
  • 珠海做网站哪家好每日新闻摘抄10条
  • 怎么搭建购物网站软文如何推广
  • wordpress站点网站地图新闻联播直播 今天
  • 移动端ui设计优化营商环境个人心得体会
  • 东莞网站建设设seo基础教程视频
  • 西安编程培训机构北京seo关键词
  • 要建网站黑帽seo技术有哪些
  • 灌云网站设计网站推广去哪家比较好
  • 可信网站认证 服务中心google搜索引擎优化
  • 网站织梦程序改成wordpressseo网站快速排名外包
  • 南京互联网公司前十名seo是什么职位
  • 一般网站的宽度是多少手机游戏性能优化软件
  • wordpress获取用户头像建站seo是什么
  • 大连电子学校网站建设西安百度推广运营
  • 上海网站制作2024年阳性最新症状
  • 建设赌博网站广州网站建设技术外包
  • 免费建企业网站百度推广app
  • 公司转让一般卖多少钱湖北seo推广
  • 做流量网站怎么做网站注册要多少钱
  • 网站点击弹出下载框 怎么做北京百度关键词排名
  • 潍坊网站建设服务商深圳百度seo怎么做
  • 网站建设的基本流程包括哪些百度一下1688
  • 网站建设 西安网站seo诊断报告
  • 怎么建设小说网站想做seo哪里有培训的
  • 功能型网站多少钱吉林黄页电话查询
  • 做公众号的网站线上推广是做什么的
  • 宁波网站设计开发seo 优化