Databricks SDK for JavaScript
    Preparing search index...
    Index

    Constructors

    Methods

    • Creates an experiment with a name. Returns the ID of the newly created experiment. Validates that another experiment with the same name does not already exist and fails if another experiment with the same name already exists.

      Throws RESOURCE_ALREADY_EXISTS if an experiment with the given name exists. Note: In some contexts, this error may be remapped to ALREADY_EXISTS. To be safe, clients should check for both error codes.

      Parameters

      Returns Promise<CreateExperimentResponse>

    • Gets the metadata, metrics, params, and tags for a run. In the case where multiple metrics with the same key are logged for a run, return only the value with the latest timestamp.

      If there are multiple values with the latest timestamp, return the maximum of these values.

      Parameters

      Returns Promise<GetRunResponse>

    • Logs a batch of metrics, params, and tags for a run. If any data failed to be persisted, the server will respond with an error (non-200 status code).

      In case of error (due to internal server error or an invalid request), partial data may be written.

      You can write metrics, params, and tags in interleaving fashion, but within a given entity type are guaranteed to follow the order specified in the request body.

      The overwrite behavior for metrics, params, and tags is as follows:

      • Metrics: metric values are never overwritten. Logging a metric (key, value, timestamp) appends to the set of values for the metric with the provided key.

      • Tags: tag values can be overwritten by successive writes to the same tag key. That is, if multiple tag values with the same key are provided in the same API request, the last-provided tag value is written. Logging the same tag (key, value) is permitted. Specifically, logging a tag is idempotent.

      • Parameters: once written, param values cannot be changed (attempting to overwrite a param value will result in an error). However, logging the same param (key, value) is permitted. Specifically, logging a param is idempotent.

      A single JSON-serialized API request may be up to 1 MB in size and contain:

      • No more than 1000 metrics, params, and tags in total

      • Up to 1000 metrics

      • Up to 100 params

      • Up to 100 tags

      For example, a valid request might contain 900 metrics, 50 params, and 50 tags, but logging 900 metrics, 50 params, and 51 tags is invalid.

      The following limits also apply to metric, param, and tag keys and values:

      • Metric keys, param keys, and tag keys can be up to 250 characters in length

      • Parameter and tag values can be up to 250 characters in length

      Parameters

      Returns Promise<LogBatchResponse>