Skip to main content

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-sdk-testing.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

sequence: 'Sequence | None' = None,
np_histogram: 'NumpyHistogram | None' = None,
num_bins: 'int' = 64

Description

W&B class for histograms. This object works just like numpy’s histogram function https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html Attributes: bins ([float]): Edges of bins histogram ([int]): Number of elements falling in each bin.

Args

  • sequence:
  • np_histogram:
  • num_bins:

Methods

method from_json

json_obj: 'dict',
source_artifact: 'Artifact'
Deserialize a json_obj into it’s class representation. If additional resources were stored in the run_or_artifact artifact during the to_json call, then those resources should be in the source_artifact.
Arguments
  • json_obj: A JSON dictionary to deserialize source_artifact
  • source_artifact:

method init_from_json

json_obj: 'dict',
source_artifact: 'Artifact'
Initialize a WBValue from a JSON blob based on the class that created it. Looks through all subclasses and tries to match the json obj with the class which created it. It will then call that subclass’ from_json method. Importantly, this function will set the return object’s source_artifact attribute to the passed in source artifact. This is critical for artifact bookkeeping. If you choose to create a wandb.Value via it’s from_json method, make sure to properly set this artifact_source to avoid data duplication.
Arguments
  • json_obj: A JSON dictionary to deserialize. It must contain a _type key. This is used to lookup the correct subclass to use.
  • source_artifact: An artifact which will hold any additional resources which were stored during the to_json function.

method to_data_array

self
Convert the object to a list of primitives representing the underlying data.

method type_mapping

Return a map from _log_type to subclass. Used to lookup correct types for deserialization.

method with_suffix

name: 'str',
filetype: 'str' = 'json'
Get the name with the appropriate suffix.
Arguments
  • name: the name of the file
  • filetype: the filetype to use. Defaults to “json”.