380 바이트 추가됨
, 2022년 2월 14일 (월) 10:20
== 개요 ==
데이터 분석과 관련한 기능.
== 회귀선 그리기 ==
<syntaxhighlight lang="python">
from sklearn.linear_model import LinearRegression
x = # x축 데이터
y = # y축 데데이터
model = LinearRegression()
model.fit(x, y)
y_pred = pd.Series(model.predict(x), index=x.index) # 회귀선을 얻을 수 있다.
</syntaxhighlight>
[[분류:Scikit-learn]]