登录
首页 » Python » 线性回归-梯度下降

线性回归-梯度下降

于 2022-03-19 发布 文件大小:1.52 kB
0 95
下载积分: 2 下载次数: 1

代码说明:

拟合线性函数y=mx+b,根据偏微分求导,梯度下降就是为了得到合适的线性参数,通过求导不断更新参数,来逐渐得到最接近的参数。先将系数随便设置一个数,将x带入,根据实际y值,调整系数。损失函数就是给定系数(一般初始值为0),得到预测值,将所有预测值减去真实值,就是损失函数。如果预测的很准,损失函数最小(为0)。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • wdsjbntmod
    说明:  一个普通的小游戏,没有什么功能,就一个垃圾小游戏(An ordinary little game, no function, just a garbage game.)
    2020-06-19 16:40:01下载
    积分:1
  • 图像拼接---去除黑边
    说明:  使用python语言实现多张图像的拼接,并且处理拼接之后的裂缝和黑边。(Use python language to achieve splicing of multiple images, and deal with cracks and black edges after splicing.)
    2019-04-02 15:24:23下载
    积分:1
  • laserengraver插件
    说明:  用于Inkscape扩展gcode文件使用(Use for Inkscape extended gcode file)
    2021-01-10 21:58:50下载
    积分:1
  • SCUC
    2022-02-04 07:59:31下载
    积分:1
  • JanErikSolem.ProgrammingComputerVision
    Programming Computer Vision with Python by Jan Erik Solem
    2019-02-06 15:40:06下载
    积分:1
  • 文件
    说明:  《Python语言在Abaqus中的应用》(曹金凤板)书中例子源码。("Python language in ABAQUS application" (Cao jinfengban) book example source code.)
    2020-08-16 22:38:56下载
    积分:1
  • NN_XNOR
    利用Pytorch实现的一个简单的神经网络,实现了异或门。(Using a simple neural network implemented by Pytorch, XOR gates are realized.)
    2019-03-16 17:05:15下载
    积分:1
  • winWord2
    生成以日期为文件名的word文档,写入操作(creating word document named as date)
    2015-08-04 20:58:41下载
    积分:1
  • NSL-KDD(1)
    说明:  NSL-KDD数据集,并且包含数据集的预处理,训练部分程序,测试部分程序,全部调通,并且实现不错的实验效果(Nsl-kdd data preprocessing and implementation, including the whole process of open data set in the research field, data preprocessing and classification experiment, and achieve better detection accuracy)
    2021-04-19 00:28:57下载
    积分:1
  • code
    说明:  KNN,SVM对balance scale数据进行分类(KNN,SVM balance scale)
    2020-06-15 11:36:21下载
    积分:1
  • 696516资源总数
  • 106475会员总数
  • 7今日下载