2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【メモ】scikit-learnのモデル名取得方法

Posted at
  • 製造業出身のデータサイエンティストがお送りする記事
  • 今回はメモとして、scikit-learnのモデル名を取得方法を残しておきます。

##はじめに
今回、scikit-learnのモデル名を取得する方法を少し苦労して探したので、メモとして残しておきます。

##scikit-learnのモデル名取得方法
下記で簡単にモデル名を取得できました。

# ライブラリーのインポート
from sklearn.linear_model import Ridge

# Ridge回帰
model = Ridge()
clf = model.fit(X_train, y_train)
print(clf.__class__.__name__)
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?