Logistic Regression scikit-learn
from sklearn.linear_model import LogisticRegresson
model = LogisticRegression()
#学習
model.fit(X_train, y_train)
#精度
score = model.score(X_test, y_test)
#予測
pred = model.predict(X_test)
Windows10でscikit-learnがインストールできない
Windows10ではパスの260文字制限がありこれを解除しなくてはいけない。
グループポリシーの編集から設定をかえて解決した。
Pythonの勉強を始めました。
AIに興味があり、Pythonを勉強中です。備忘録もかねて、このブログに書いていきたいと思います。