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/
相关推荐
林伽一5 分钟前
推理链路与资本成本同时收紧,AI 工程进入算细账阶段|2026年10月21日
人工智能·科技·ai·架构
卷无止境7 分钟前
面向arm64桌面客户端开发全景:语言、框架与生态
后端·python
天远API15 分钟前
零信任架构实战:基于天远运营商二要素V即时版构建自动化分时租赁出行会员身份一致性审核网关
运维·人工智能·架构·自动化
薛定e的猫咪18 分钟前
(ICLR 2020)MAML 靠的不是快速学习,而是特征复用
人工智能·深度学习·学习·算法·机器学习
fanruitian18 分钟前
python else用法
开发语言·python
海边捡石子27 分钟前
从零设计一个通用智能电话平台:FreeSWITCH + ESL + AI 实战架构
人工智能·架构·webrtc
u13013039 分钟前
GitHub 热榜项目:日榜(2026-10-21)
人工智能·github
薛定e的猫咪40 分钟前
(ICLR 2026)DF-META:面向 FJSP 的无导数元学习实例自适应调度
人工智能·深度学习·学习·算法·机器学习
shengjk11 小时前
你以为是大模型在执行命令?真相是它只会“说“
人工智能·aigc·ai编程
tellmewhoisi1 小时前
深度学习1:基本概念,感知机,激活函数(阶跃,sigmoid,Tanh函数)
人工智能·深度学习