Scorer operations

MLFlowClient.registerscorerFunction
registerscorer(instance::MLFlow, experiment_id::String, name::String, serialized_scorer::String)

Register a scorer for an experiment.

Arguments

  • instance: MLFlow configuration.
  • experiment_id: The experiment ID.
  • name: The scorer name.
  • serialized_scorer: The serialized scorer string (JSON).

Returns

A dictionary containing:

  • version: The new version number for the scorer.
  • scorer_id: The unique identifier for the scorer.
  • experiment_id: The experiment ID.
  • name: The scorer name.
  • serialized_scorer: The serialized scorer string.
  • creation_time: The creation time in milliseconds since epoch.
source
MLFlowClient.listscorersFunction
listscorers(instance::MLFlow, experiment_id::String)

List all scorers for an experiment.

Arguments

  • instance: MLFlow configuration.
  • experiment_id: The experiment ID.

Returns

Vector of Scorer entities (latest version for each scorer name).

source
MLFlowClient.listscorerversionsFunction
listscorerversions(instance::MLFlow, experiment_id::String, name::String)

List all versions of a specific scorer for an experiment.

Arguments

  • instance: MLFlow configuration.
  • experiment_id: The experiment ID.
  • name: The scorer name.

Returns

Vector of Scorer entities for all versions of the scorer.

source
MLFlowClient.getscorerFunction
getscorer(instance::MLFlow, experiment_id::String, name::String; version::Union{Int32, Missing}=missing)

Get a specific scorer for an experiment.

Arguments

  • instance: MLFlow configuration.
  • experiment_id: The experiment ID.
  • name: The scorer name.
  • version: The scorer version. If not specified, returns the scorer with maximum version.

Returns

The Scorer entity.

source
MLFlowClient.deletescorerFunction
deletescorer(instance::MLFlow, experiment_id::String, name::String; version::Union{Int32, Missing}=missing)

Delete a scorer for an experiment.

Arguments

  • instance: MLFlow configuration.
  • experiment_id: The experiment ID.
  • name: The scorer name.
  • version: The scorer version to delete. If not specified, deletes all versions.

Returns

true if successful. Otherwise, raises exception.

source