Histogram
less than a minute
ヒストグラム用の wandb クラス。
Histogram(
sequence: Optional[Sequence] = None,
np_histogram: Optional['NumpyHistogram'] = None,
num_bins: int = 64
) -> None
このオブジェクトは、numpy の histogram 関数とまったく同様に機能します。 https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html
例:
シーケンスからヒストグラムを生成
wandb.Histogram([1, 2, 3])
np.histogram から効率的に初期化。
hist = np.histogram(data)
wandb.Histogram(np_histogram=hist)
Args | |
---|---|
sequence |
(array_like) ヒストグラムの入力 データ |
np_histogram |
(numpy histogram) 事前計算されたヒストグラムの代替入力 |
num_bins |
(int) ヒストグラムのビンの数。デフォルトのビンの数は 64 です。ビンの最大数は 512 です。 |
Attributes | |
---|---|
bins |
([float]) ビンのエッジ |
histogram |
([int]) 各ビンに該当する要素の数 |
Class Variables | |
---|---|
MAX_LENGTH |
512 |
[i18n] feedback_title
[i18n] feedback_question
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.