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