科学の箱

科学・IT・登山の話題

Python

model.coef_の確認

投稿日:

重回帰分析で重みを確認するには下記を利用する。

model.coef_

ただしこれだと有効桁数が分かりにくいので有効桁数を3桁にして、さらに指数を展開する。

np.set_printoptions(precision=3, suppress=True)

メタ情報

inarticle



メタ情報

inarticle



-Python
-

執筆者:


comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

scikit-learnで適切なアルゴリズムを選択するためのチートシート

  http://scikit-learn.org/stable/tutorial/machine_learning_map/index.html Related posts:automat …

no image

bing image searchをpythonで利用

Azureへの登録+Bing Search APIを登録についてはこちらのサイトが詳しい。 https://qiita.com/ysdyt/items/49e99416079546b65dfc ただし …

no image

単回帰でデータフレームの形式を整える

values.reshape(-1, 1)が必要。 Related posts:automated the boring – day4Scrapy – Tutorial複数のグラフを表示する方法

no image

matplotlibでfigureを利用する

matplotlibでfigureオブジェクトを利用するとグラフを表示する位置を細かく指定できる。 まずはfigureを使ってグラフを一つ表示してみる。 >>> import mat …

no image

seleniumでWebElement object is not iterableが出るときの対処方法

iterableなオブジェクトを想定して要素を取得、forループに取り込むと下記のようなWebElement object is not iterableが出る。 結論としては勘違い。 Seleniu …

2019年1月
« 12月   2月 »
 123456
78910111213
14151617181920
21222324252627
28293031  

side bar top



アーカイブ

カテゴリー