Skip to content

API Reference

Core Functionalities

For a lot of these functions, the official WanDB docs can provide more comprehensive details.

# Wandb.WandbLoggerType.
julia
WandbLogger(; project, name=nothing, min_level=Info, step_increment=1,
            start_step=0, kwargs...)

Create a WandbLogger that logs to the wandb project project. See the documentation for wandb.init for more details (also accessible in the Julia REPL using ? Wandb.wandb.init).

source


# Wandb.increment_step!Function.
julia
increment_step!(lg::WandbLogger, Δstep)

Increment the global step by Δstep and return the new global step.

source


# Wandb.update_config!Function.
julia
update_config!(lg::WandbLogger, dict::Dict; kwargs...)

For more details checkout wandb.config (or ? Wandb.wandb.config in the Julia REPL).

source


# Wandb.get_configFunction.
julia
get_config(lg::WandbLogger)

Return the current config dict.

source

julia
get_config(lg::WandbLogger, key::String)

Get the value of key from the config.

source


# Wandb.saveFunction.
julia
save(lg::WandbLogger, args...; kwargs...)

Ensure all files matching glob_str are synced to wandb with the policy specified. For more details checkout wandb.save (or ? Wandb.wandb.save in the Julia REPL).

source


# Wandb.versionFunction.
julia
version()

Return the Wandb python client version number (i.e., Wandb.wandb.__version__).

source


# Wandb.update_clientFunction.
julia
update_client()

Updates the python dependencies in Wandb.jl.

source


# Wandb.logFunction.
julia
log(lg::WandbLogger, logs::Dict; kwargs...)

For more details checkout wandb.log (or ? Wandb.wandb.log in the Julia REPL).

source


# Wandb.logable_propertynamesFunction.
julia
logable_propertynames(val::Any)

Returns a tuple with the name of the fields of the structure val that should be logged to Wandb. This function should be overridden when you want Wandb to ignore some fields in a structure when logging it. The default behaviour is to return the same result as propertynames.

See also: Base.propertynames

source


# Base.closeFunction.
julia
close(lg::WandbLogger; kwargs...)

Terminate the current run. For more details checkout wandb.finish (or ? Wandb.wandb.finish in the Julia REPL).

source


Plotting

# Wandb.plot_lineFunction.
julia
plot_line(table::wandb.Table, x::String, y::String, stroke::String, title::String)

Construct a line plot.

Arguments:

  • table (wandb.Table): Table of data.

  • x (string): Name of column to as for x-axis values.

  • y (string): Name of column to as for y-axis values.

  • stroke (string): Name of column to map to the line stroke scale.

  • title (string): Plot title.

Returns:

A plot object, to be passed to Wandb.log()

source


# Wandb.plot_scatterFunction.
julia
plot_scatter(table::Py, x::String, y::String, title::String)

Construct a scatter plot.

Arguments:

  • table (wandb.Table): Table of data.

  • x (string): Name of column to as for x-axis values.

  • y (string): Name of column to as for y-axis values.

  • title (string): Plot title.

Returns:

A plot object, to be passed to Wandb.log()

source


# Wandb.plot_histogramFunction.
julia
plot_histogram(table::Py, value::String, title::String)

Construct a histogram plot.

Arguments:

  • table (wandb.Table): Table of data.

  • value (string): Name of column to use as data for bucketing.

  • title (string): Plot title.

Returns:

A plot object, to be passed to Wandb.log()

source


# Wandb.plot_barFunction.
julia
plot_bar(table::Py, label::String, value::String, title::String)

Construct a bar plot.

Arguments:

  • table (wandb.Table): Table of data.

  • label (string): Name of column to use as each bar's label.

  • value (string): Name of column to use as each bar's value.

  • title (string): Plot title.

Returns:

A plot object, to be passed to Wandb.log()

source


# Wandb.plot_line_seriesFunction.
julia
plot_line_series(xs::AbstractVecOrMat, ys::AbstractMatrix, keys::AbstractVector,
                 title::String, xname::String)

Construct a line series plot.

Arguments:

  • xs (AbstractMatrix or AbstractVector): Array of arrays of x values

  • ys (AbstractMatrix): Array of y values

  • keys (AbstractVector): Array of labels for the line plots

  • title (string): Plot title.

  • xname (string): Title of x-axis

Returns:

A plot object, to be passed to Wandb.log()

source


Note

We don't provide direct bindings for the other plotting functions. PRs implementing these are welcome.

Loggable Objects

# Wandb.ImageFunction.
julia
Image(img::AbstractArray{T, 3}; kwargs...)
Image(img::AbstractMatrix; kwargs...)
Image(img::Union{String, IO}; kwargs...)

Creates a wandb.Image object that can be logged using Wandb.log. For more details checkout wandb.Image (or ? Wandb.wandb.Image in the Julia REPL).

source


# Wandb.VideoFunction.
julia
Video(vid::AbstractArray{T, 5}; kwargs...)
Video(vid::AbstractArray{T, 4}; kwargs...)
Video(vid::Union{String, IO}; kwargs...)

Creates a wandb.Video object that can be logged using Wandb.log. For more details checkout wandb.Video (or ? Wandb.wandb.Video in the Julia REPL).

source


# Wandb.HistogramFunction.
julia
Wandb.Histogram(args...; kwargs...)

Creates a wandb.Histogram object that can be logged using Wandb.log. For more details checkout wandb.Histogram (or ? Wandb.wandb.Histogram in the Julia REPL).

source


# Wandb.Object3DFunction.
julia
Object3D(path_or_io::Union{String, IO})
Object3D(data::AbstractMatrix)

Creates a wandb.Object3D object that can be logged using Wandb.log. For more details checkout wandb.Object3D (or ? Wandb.wandb.Object3D in the Julia REPL).

source


# Wandb.TableFunction.
julia
Table(; data::AbstractMatrix, columns::AbstractVector)

Creates a wandb.Table object that can be logged using Wandb.log. For more details checkout wandb.Table (or ? Wandb.wandb.Table in the Julia REPL).

Note

Currently we don't support passing DataFrame to the Table. (PRs implementing this are welcome)

source


Artifacts

# Wandb.WandbArtifactType.
julia
WandbArtifact(args...; kwargs...)

WandbArtifact is a wrapper around wandb.Artifact. See the documentation for wandb.Artifact for the different functionalities. Most of the functions can be called using Wandb.<function name>(::WandbArticact, args...; kwargs...).

source


Hyper Parameter Sweep

# Wandb.WandbHyperParameterSweepType.
julia
WandbHyperParameterSweep()

Create a Wandb Hyperparameter Sweep. Unlike the wandb.agent API, this API needs to be manually combined with some Hyper Parameter Optimization package like HyperOpt.jl.

See the tutorials for more details.

source


Index