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

线性回归-梯度下降

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

代码说明:

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

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

发表评论

0 个回复

  • 7. 深入浅出:使用Python编程
    英文教材:《深入浅出,使用python编程》(python learning in English)
    2018-10-15 23:58:06下载
    积分:1
  • BP神经网络做安全库存预测研究
    基于BP神经网络做安全库存预测研究,实例代码调试成功,未用遗传算法进行优化的代码。
    2022-02-11 23:07:11下载
    积分:1
  • photocopyG.py
    Grayscale Photocopy Machine
    2013-10-28 16:12:02下载
    积分:1
  • MNIST_data
    说明:  手写数字识别训练集,可以用在深度学习的学习过程中的测试练习(Training set of handwritten digit recognition)
    2020-04-03 11:43:20下载
    积分:1
  • 周志华《机器学习》学习笔记
    说明:  机器学习是计算机科学与人工智能的重要分支领域. 本书作为该领域的入门教材,在内容上尽可能涵盖机器学习基础知识的各方面。 为了使尽可能多的读者通过本书对机器学习有所了解, 作者试图尽可能少地使用数学知识. 然而, 少量的概率、统计、代数、优化、逻辑知识似乎不可避免. 因此, 本书更适合大学三年级以上的理工科本科生和研究生, 以及具有类似背景的对机器学 习感兴趣的人士. 为方便读者, 本书附录给出了一些相关数学基础知识简介。(Machine learning is an important branch of computer science and artificial intelligence. As an introductory textbook in this field, this book covers all aspects of basic knowledge of machine learning as much as possible. In order to make as many readers as possible understand machine learning through this book, the author tries to use mathematical knowledge as little as possible. However, a small amount of probability, statistics, algebra, optimization, logic knowledge seems inevitable. Therefore, this book is more suitable for undergraduates and postgraduates of science and engineering above the third grade of University, And people who are interested in machine learning with similar background. For the convenience of readers, the appendix of this book gives a brief introduction of some basic mathematical knowledge.)
    2020-05-29 17:29:21下载
    积分:1
  • 批处理文件
    【实例简介】配置批文件路径,根据匹配串匹配相关文件,进行复制保存
    2021-08-11 00:31:01下载
    积分:1
  • 电话簿服务
     ; ;你要实现一个简单的电话簿服务程序,将存储
    2022-03-11 05:43:49下载
    积分:1
  • AP文本聚类
    无需定义类中心数目,结果固定,没有随机性,特别适合高维数据
    2022-06-14 16:47:03下载
    积分:1
  • classify.py
    说明:  svm example via sklearn
    2020-06-16 06:00:02下载
    积分:1
  • CK-TensorFlow-master
    CK-TensorFlowuse TensorFlow and CNN train and test the CK+ dataset使用双流卷积神经网络对CK+的表情库进行分类,识别结果可以达到99%。(CK-TensorFlowuse TensorFlow and CNN train and test the CK+ dataset uses a double flow convolution neural network to classify CK+ expression libraries, and the recognition results can reach 99%.)
    2018-07-25 16:46:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载