直方圖中hist的bins是指?
2019/04/25 下午 08:12
機器學習共學討論版
Claude
觀看數:17
回答數:2
收藏數:0
ml100-2
語法
ml100-2-d05
詢問一下,直方圖主要為縱軸是頻率,橫軸為數值的位置區間,請問app_train['目標資料'].plot.hist(bins=50)之後,如果發現縱軸的頻率區間和橫軸的區間是錯誤的話,如何更改? 以及hist中的引數bins是什麼呀?
回答列表
-
2019/04/25 下午 08:14張維元 (WeiYuan)贊同數:0不贊同數:0留言數:0
如果發現縱軸的頻率區間和橫軸的區間是錯誤的話,如何更改?
=> 區間錯誤是什麼意思?
-
2019/04/25 下午 08:17張維元 (WeiYuan)贊同數:1不贊同數:0留言數:1
hist中的引數bins是什麼呀?
=> 可以參考一下文件的說明:bins: integer or sequence, default 10
Number of histogram bins to be used. If an integer is given, bins + 1 bin edges are calculated and returned. If bins is a sequence, gives bin edges, including left edge of first bin and right edge of last bin. In this case, bins is returned unmodified. 簡單來說,就是將資料分成幾個長條!