sklearn study notes[1]

文章目录

LinearRegression

  1. there is a following model for Linear LinearRegression.

    w 0 w_0 w0 above is intercept.
    the following w is coef_.

    2.it is used to achieve LinearRegression that minimizing the residual sum of squares between the observed targets and the targets predicted by the linear approximation.
python 复制代码
from sklearn import linear_model
reg = linear_model.LinearRegression()
reg.fit([[10, 10], [11, 1], [12, 12]], [10, 11, 12])
print(reg.coef_)
print(reg.intercept_)

references

  1. https://scikit-learn.org/stable/
相关推荐
测试_AI_一辰1 小时前
AI测试工程笔记 05:AI评测实践(从数据集到自动评测闭环)
人工智能·笔记·功能测试·自动化·ai编程
Zhansiqi2 小时前
day42部分题目
python
小王不爱笑1322 小时前
IO 模型
开发语言·python
kishu_iOS&AI2 小时前
Conda 简要说明与常用指令
python·安全·conda
小陈工2 小时前
FastAPI性能优化实战:从每秒100请求到1000的踩坑记录
python·性能优化·django·flask·numpy·pandas·fastapi
知我Deja_Vu2 小时前
【避坑指南】ConcurrentHashMap 并发计数优化实战
java·开发语言·python
njidf2 小时前
用Python制作一个文字冒险游戏
jvm·数据库·python
云境筑桃源哇2 小时前
海洋ALFA:主权与创新的交响,开启AI生态新纪元
人工智能
呆呆小孩2 小时前
Anaconda 被误删抢救手册:从绝望到重生
python·conda
liliangcsdn2 小时前
LLM复杂数值的提取计算场景示例
人工智能·python