iT邦幫忙

0

想請問一些基本問題

  • 分享至 

  • twitterImage

1.想要問一下make_classification這個函數
n_redundant=0,n_informative=2,scale=100,n_clusters_per_class=1
這四個分別代表甚麼

2.make_classification這個函數生成出來的x,y,x是樣本,y則是特徵
我想請問plt.scatter(x[:,0],x[:,1],c=y)裡面的x[:,0]他的xy座標是怎麼對照的
因為我有把x[:,0]印出來看,裡面只有放x的值,那y的值是在哪裡呢?

看更多先前的討論...收起先前的討論...
那裡的make_classification函數?
優悠 iT邦新手 3 級 ‧ 2018-09-07 14:33:45 檢舉
可能是某工程師自製的函數
沒程式碼根本無解...
youarefat iT邦新手 5 級 ‧ 2018-09-07 15:10:16 檢舉
感覺有點像python
sklearn.datasets.make_classification
是這個嗎?
chadchang iT邦新手 5 級 ‧ 2018-09-07 17:03:50 檢舉
恩對,是sklearn.datasets.make_classification 裡面的函數,抱歉沒說清楚,本來是問作者的,不小心發錯地方
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

1
youarefat
iT邦新手 5 級 ‧ 2018-09-07 15:13:06

按照你函數名稱跟參數

我找到這個

http://scikit-learn.org/stable/modules/generated/sklearn.datasets.make_classification.html

自己看吧

我要發表回答

立即登入回答