Warning(警告)なのでエラーではありません。
Warningの場合、とりあえず無視してもプログラムは動きます(警告の内容によっては、正しく動いていないことはありえますが・・・)。
今回の警告を訳すと
「キーワード引数normed
は非推奨になり、density
に置き換えられました」
というだけの意味です。density
をnormed
の代わりに使ってくださいということです。
ドキュメントを見に行くと、
normed : bool, optional
...(中略)
If True, the result is the value of the probability density function at the bin, normalized such that the integral over the range is 1. Note that this latter behavior is known to be buggy with unequal bin widths; use density instead.
density : bool, optional
...(中略)
Note that the sum of the histogram values will not be equal to 1 unless bins of unity width are chosen; it is not a probability mass function.
Overrides the normed keyword if given.
numpy.histogram — NumPy v1.14 Manual
normed
の方は特定の条件下でバグるので、それを解消したdensity
が提供されていることがわかります。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/07/28 01:03