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/
相关推荐
咸鱼鲸29 分钟前
【PyTorch】PyTorch中的数据预处理操作
人工智能·pytorch·python
Dxy123931021629 分钟前
Python ExcelWriter详解:从基础到高级的完整指南
开发语言·python
沐尘而生35 分钟前
【AI智能体】智能音视频-搭建可视化智能体
数据库·人工智能·ai作画·音视频·娱乐
ansondroider39 分钟前
OpenCV 4.10.0 移植 - Android
android·人工智能·opencv
余衫马40 分钟前
Datawhale AI 夏令营:基于带货视频评论的用户洞察挑战赛 Notebook(上篇)
人工智能
Coovally AI模型快速验证44 分钟前
基于YOLOv11的CF-YOLO,如何突破无人机小目标检测?
人工智能·神经网络·yolo·目标检测·计算机视觉·cnn·无人机
金玉满堂@bj1 小时前
Conda 安装包的用途
python
lxsy1 小时前
spring-ai-alibaba 1.0.0.2 学习(十六)——多模态
人工智能·学习·ai-alibaba
MZ_ZXD0012 小时前
flask校园学科竞赛管理系统-计算机毕业设计源码12876
java·spring boot·python·spring·django·flask·php
深度学习机器2 小时前
OCRFlux-3B:开源 OCR + LLM 模型的新标杆,支持跨页表格合并
人工智能·机器学习·语言模型·ocr