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/
相关推荐
火山引擎开发者社区1 天前
火山 PostgreSQL Serverless × 飞书妙搭:把 AI 装进数据库,一句话唤醒数据智能
人工智能
必须会一定会1 天前
Agent Plugins 1.0实战:plugin.json、skills、mcp.json目录结构与迁移
开发语言·人工智能·ai编程
CTA量化套保1 天前
近期零基础量化学习:先分阶段,再用 AI 检查缺口
人工智能·python
Justin3go1 天前
AI 引荐流量报告:哪些独立产品正在从 ChatGPT 获客?
人工智能·seo
风流 少年1 天前
Spring AI 2.0:SSE
java·人工智能·spring
清水白石0081 天前
Python 死锁排查全攻略:从线程卡死到锁依赖定位与工程化修复
linux·网络·python
深小乐1 天前
AI 项目上线:折腾 Cloudflare,真香也藏不少坑
人工智能
Elias不吃糖1 天前
Langfuse 入门:Trace、Prompt、Dataset、Experiment、Evaluator
前端·python·prompt·langfuse
TechWayfarer1 天前
批量查IP归属地,在线API、脚本、离线库怎么选?三种方案实测对比
网络·python·网络协议·tcp/ip
ACP广源盛139246256731 天前
Qwen3.8‑2.4T 开源落地@ACP#国产 MoE 私有化部署下 GSV2221 视频转换芯片机遇分析
大数据·数据库·人工智能