Return whether an artifact collection exists within a specified project and entity.
Arguments
name
(str) An artifact collection name. May be prefixed with entity/project. If entity or project is not specified, it will be inferred from the override params if populated. Otherwise, entity will be pulled from the user settings and project will default to "uncategorized".
type
(str) The type of artifact collection
Returns
True if the artifact collection exists, False otherwise.
Return whether an artifact version exists within a specified project and entity.
Arguments
name
(str) An artifact name. May be prefixed with entity/project. If entity or project is not specified, it will be inferred from the override params if populated. Otherwise, entity will be pulled from the user settings and project will default to "uncategorized". Valid names can be in the following forms: name:version name:alias
type
(str, optional) The type of artifact
Returns
True if the artifact version exists, False otherwise.
(str, optional) The ID to assign to the run, if given. The run ID is automatically generated by default, so in general, you do not need to specify this and should only do so at your own risk.
project
(str, optional) If given, the project of the new run.
entity
(str, optional) If given, the entity of the new run.
(str) Type of resource to be used for the queue. One of "local-container", "local-process", "kubernetes", "sagemaker", or "gcp-vertex".
entity
(str) Optional name of the entity to create the queue. If None, will use the configured or default entity.
prioritization_mode
(str) Optional version of prioritization to use. Either "V0" or None
config
(dict) Optional default resource configuration to be used for the queue. Use handlebars (eg. "{{var}}") to specify template variables.
template_variables
(dict) A dictionary of template variable schemas to be used with the config. Expected format of: { "var-name": { "schema": { "type": ("string", "number", or "integer"), "default": (optional value), "minimum": (optional minimum), "maximum": (optional maximum), "enum": [..."(options)"] } } }
Returns
The newly created RunQueue
Raises
ValueError if any of the parameters are invalid wandb.Error on wandb API errors
The api object keeps a local cache of runs, so if the state of the run may
change while executing your script you must clear the local cache with
api.flush() to get the latest values associated with the run.
Return a single run by parsing path in the form entity/project/run_id.
Arguments
path
(str) path to run in the form entity/project/run_id. If api.entity is set, this can be in the form project/run_id and if api.project is set this can just be the run_id.
(str) path to project, should be in the form: "entity/project"
filters
(dict) queries for specific runs using the MongoDB query language. You can filter by run properties such as config.key, summary_metrics.key, state, entity, createdAt, etc. For example: {"config.experiment_name": "foo"} would find runs with a config entry of experiment name set to "foo" You can compose operations to make more complicated queries, see Reference for the language is at https://docs.mongodb.com/manual/reference/operator/query
order
(str) Order can be created_at, heartbeat_at, config.*.value, or summary_metrics.*. If you prepend order with a + order is ascending. If you prepend order with a - order is descending (default). The default order is run.created_at from oldest to newest.
per_page
(int) Sets the page size for query pagination.
include_sweeps
(bool) Whether to include the sweep runs in the results.
Returns
A Runs object, which is an iterable collection of Run objects.
Return a sweep by parsing path in the form entity/project/sweep_id.
Arguments
path
(str, optional) path to sweep in the form entity/project/sweep_id. If api.entity is set, this can be in the form project/sweep_id and if api.project is set this can just be the sweep_id.