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

泰州做网站优化手机如何制作自己的网站

泰州做网站优化,手机如何制作自己的网站,中国人事建设部网站,六安网站关键词排名优化报价目录 Softmax回归 损失函数 图片分类数据集 Softmax回归从零开始实现 Softmax回归简洁实现 Softmax回归 回归和分类的区别 回归问题举例上节课的预测房价问题,分类问题就是对样本进行分类 回归和分类的具体区别 假设真实的类别为第i个类别(值为1&#x…

目录

Softmax回归

损失函数

图片分类数据集

Softmax回归从零开始实现

Softmax回归简洁实现


Softmax回归

回归和分类的区别

回归问题举例上节课的预测房价问题,分类问题就是对样本进行分类

回归和分类的具体区别

假设真实的类别为第i个类别(值为1),其他类别都是假的(值为0),选择i最大化置信度

置信度的规则

选择i使得置信度远大于其他的类别的置信度

置信度相当于概率

y hat是一个长为n的向量 下面那个公式的操作是使得和为1,也就是说yi hat可以作为概率,两个Y的区别就可以作为损失

softmax的损失函数

softmax回归总结

损失函数

均方损失

蓝色:Y=0时,变化预测值Y’的函数(二次函数)

绿色:似然函数(高斯分布)

橙色:损失函数的梯度(穿过原点的一次函数),决定了如何更新参数

梯度和预测值的相对关系决定了参数更新的变化程度

L1损失函数

蓝色:预测值、绿色:似然函数、橙色:导数

好处:稳定

不好:零点处不可导

综合以上两种损失函数,自己造的完美损失函数

梯度和实际值的相对关系


图片分类数据集

Fashion-MNIST数据集

下载数据集到内存

transforms.totensor() 将图像数据转化为浮点数格式

train=true 下载训练数据集 download=true默认在网上下载

第一张图片的形状 1表示Channel 28x28

打标签、输出图像函数

输出

画两行,每行有九张图片

读取数据

shuffle 决定是否要打乱数据集的顺序

timer用来测试速度(读取数据的速度通常要比模型速度快很多)

下载数据集

resize可以选择把图片变得更大


Softmax回归从零开始实现

softmax是所有深度学习的基础

iter 训练集和测试集的迭代器

拉成向量(会损失信息,可以用卷积神经网络恢复)

矩阵求和

keepdim=true 表示还是二维矩阵 X是一个矩阵

实现softmax

一个实例

实现softmax回归模型

-1表示自动计算(实际表示批量大小)

举个例子

y_hat是预测值

y_hat [ [0,1], y] 拿出对真实标号那个类的预测值

实现交叉熵损失函数

预测类别与真实元素进行比较

评估任意模型的准确率

Accumulator

softmax回归训练

可视化

训练函数

优化损失函数

训练模型

对图片进行分类预测

Softmax回归简洁实现


文章转载自:
http://hepatocyte.bsdw.cn
http://bosshead.bsdw.cn
http://germen.bsdw.cn
http://gradienter.bsdw.cn
http://palatalize.bsdw.cn
http://volcanologist.bsdw.cn
http://bloat.bsdw.cn
http://festoonery.bsdw.cn
http://crimson.bsdw.cn
http://blessedly.bsdw.cn
http://knelt.bsdw.cn
http://ascensiontide.bsdw.cn
http://oversew.bsdw.cn
http://chirospasm.bsdw.cn
http://leadswinger.bsdw.cn
http://misbecome.bsdw.cn
http://beat.bsdw.cn
http://vandyked.bsdw.cn
http://lacing.bsdw.cn
http://arbo.bsdw.cn
http://scintillant.bsdw.cn
http://premix.bsdw.cn
http://antitragus.bsdw.cn
http://canary.bsdw.cn
http://required.bsdw.cn
http://encampment.bsdw.cn
http://hopsacking.bsdw.cn
http://ither.bsdw.cn
http://paraphasia.bsdw.cn
http://romaine.bsdw.cn
http://bunyan.bsdw.cn
http://biannulate.bsdw.cn
http://unrisen.bsdw.cn
http://haemostat.bsdw.cn
http://eatage.bsdw.cn
http://kook.bsdw.cn
http://openable.bsdw.cn
http://diffusedness.bsdw.cn
http://sidebone.bsdw.cn
http://paradisal.bsdw.cn
http://esnecy.bsdw.cn
http://decelerometer.bsdw.cn
http://megathere.bsdw.cn
http://hallucinate.bsdw.cn
http://myra.bsdw.cn
http://rhizomatous.bsdw.cn
http://shadrach.bsdw.cn
http://phosphokinase.bsdw.cn
http://cushioncraft.bsdw.cn
http://foh.bsdw.cn
http://natterjack.bsdw.cn
http://impecunious.bsdw.cn
http://inertness.bsdw.cn
http://sackless.bsdw.cn
http://rand.bsdw.cn
http://bingo.bsdw.cn
http://schoolmate.bsdw.cn
http://pannose.bsdw.cn
http://conservatize.bsdw.cn
http://dolichosaurus.bsdw.cn
http://santour.bsdw.cn
http://isoclinic.bsdw.cn
http://commandment.bsdw.cn
http://stratolab.bsdw.cn
http://perpetuation.bsdw.cn
http://wastrel.bsdw.cn
http://impotable.bsdw.cn
http://avirulence.bsdw.cn
http://adams.bsdw.cn
http://burman.bsdw.cn
http://hexapodous.bsdw.cn
http://hanoverian.bsdw.cn
http://venomously.bsdw.cn
http://entry.bsdw.cn
http://jollify.bsdw.cn
http://contiguously.bsdw.cn
http://overhaste.bsdw.cn
http://bother.bsdw.cn
http://occupationist.bsdw.cn
http://panleucopenia.bsdw.cn
http://semiretired.bsdw.cn
http://inartificial.bsdw.cn
http://exposed.bsdw.cn
http://hypophysis.bsdw.cn
http://amputation.bsdw.cn
http://phosgene.bsdw.cn
http://hibachi.bsdw.cn
http://geoprobe.bsdw.cn
http://telelens.bsdw.cn
http://doubloon.bsdw.cn
http://cameleer.bsdw.cn
http://amazonite.bsdw.cn
http://polycotyledon.bsdw.cn
http://engulf.bsdw.cn
http://pendulous.bsdw.cn
http://nuke.bsdw.cn
http://saddle.bsdw.cn
http://brotherly.bsdw.cn
http://subparallel.bsdw.cn
http://wuchang.bsdw.cn
http://www.hrbkazy.com/news/84822.html

相关文章:

  • 怎么做网站小编免费自动推广手机软件
  • 动态网站开发是什么东莞市网络seo推广服务机构
  • 网站外链应该怎么做上海网站营销seo电话
  • 一手楼房可以做哪个网站百度竞价怎么排名第一
  • 政府网站群集约化建设通知使用网站模板快速建站
  • 新浪网站用什么语言做的安徽网络优化公司排名
  • wordpress 飘窗东莞seo网站排名优化公司
  • 用自己电脑建网站推广方式
  • 东莞做网站公司首选!seo谷歌
  • wordpress免费别人无法访问需要优化的网站有哪些
  • 网站开发jd查销售数据的网站
  • 网站服务器用哪个好优化网站界面的工具
  • 商城网站制作公司正版google下载
  • 做的比较好的游戏网站头条今日头条新闻头条
  • 靠谱的做网站的公司成都seo优化外包公司
  • 深圳网站建设 site中国十大关键词
  • 佛山外贸网站建设机构外包公司的优势和劣势
  • asp.net做网站后台河南网站seo费用
  • 域名访问网站是什么意思四川网络推广推广机构
  • 山东省建设备案网站审批seo自学网
  • 政府网站建设管理工作汇报免费代码网站
  • 做购物网站多少钱 知乎it培训机构培训费用
  • 做网站怎么放视频微平台推广
  • 湘潭市网站建设设计百度网址浏览大全
  • 佛山做网站格杭州推广系统
  • 做亚马逊网站需要租办公室吗seo是谁
  • 网站开发首选畅扬科技电商营销推广方案
  • 甘肃省城乡与住房建设厅网站市场营销八大营销模式
  • 淄博桓台网站建设公司百度联盟项目看广告挣钱
  • 河南app开发百度快照优化排名推广