Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-weave-caching.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
GitHub source
class Histogram
ヒストグラム用の W&B クラスです。
この オブジェクト は、numpy の histogram 関数( https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html )とほぼ同様に動作します。
Attributes:
bins ([float]): ビンの境界値。
histogram ([int]): 各ビンに含まれる要素の数。
method Histogram.__init__
__init__(
sequence: Optional[Sequence] = None,
np_histogram: Optional[ForwardRef('NumpyHistogram')] = None,
num_bins: int = 64
) → None
Histogram オブジェクト を初期化します。
Args:
sequence: ヒストグラムの入力 データ。 np_histogram: 事前計算されたヒストグラムによる代替入力。 num_bins: ヒストグラムのビン数。デフォルトのビン数は 64 です。最大ビン数は 512 です。
Examples:
シーケンスからヒストグラムを生成します。
import wandb
wandb.Histogram([1, 2, 3])
np.histogram から効率的に初期化します。
import numpy as np
import wandb
hist = np.histogram(data)
wandb.Histogram(np_histogram=hist)