Histogram
less than a minute
wandb class for histograms.
Histogram(
    sequence: Optional[Sequence] = None,
    np_histogram: Optional['NumpyHistogram'] = None,
    num_bins: int = 64
) -> None
This object works just like numpy’s histogram function https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html
Examples:
Generate histogram from a sequence
wandb.Histogram([1, 2, 3])
Efficiently initialize from np.histogram.
hist = np.histogram(data)
wandb.Histogram(np_histogram=hist)
| Args | |
|---|---|
sequence | 
          (array_like) input data for histogram | 
np_histogram | 
          (numpy histogram) alternative input of a precomputed histogram | 
num_bins | 
          (int) Number of bins for the histogram. The default number of bins is 64. The maximum number of bins is 512 | 
| Attributes | |
|---|---|
bins | 
          ([float]) edges of bins | 
histogram | 
          ([int]) number of elements falling in each bin | 
| Class Variables | |
|---|---|
MAX_LENGTH | 
          512 | 
      
Feedback
Was this page helpful?
Glad to hear it! If you have further feedback, please let us know.
Sorry to hear that. Please tell us how we can improve.