Documentation Index Fetch the complete documentation index at: https://wb-21fd5541-update-training-api-26.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]): bin의 경계값들
histogram ([int]): 각 bin에 속하는 요소의 개수
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: 히스토그램의 bin 개수. 기본값은 64이며, 최대 512까지 설정 가능합니다.
Examples:
시퀀스 데이터로부터 히스토그램을 생성합니다.
import wandb
# 시퀀스로부터 히스토그램 생성
wandb.Histogram([ 1 , 2 , 3 ])
np.histogram을 사용하여 효율적으로 초기화합니다.
import numpy as np
import wandb
# np.histogram 결과로부터 초기화
hist = np.histogram(data)
wandb.Histogram( np_histogram = hist)