ExperimentTracker
Models & Types · AiDotNet.TrainingMonitoring.ExperimentTracking
Local file-based experiment tracker providing MLflow-compatible functionality.
Implements: IExperimentTracker
How It Works
For Beginners: ExperimentTracker stores all your experiment data locally in a structured format. It’s like having your own MLflow server without needing to set up any infrastructure.
Directory structure:
Example usage:
Constructors
| Constructor | Summary |
|---|---|
ExperimentTracker(string trackingUri) |
Creates a new experiment tracker. |
Properties
| Property | Summary |
|---|---|
string ActiveExperiment { get; } |
|
string ActiveRunId { get; } |
|
string GitPath { get; set; } |
Gets or sets the path to the git executable. |
string TrackingUri { get; } |
Methods
| Method | Summary |
|---|---|
ExperimentInfo CreateExperiment(string name, string description, Dictionary<string, string> tags) |
|
ExperimentInfo GetExperiment(string name) |
|
List<ExperimentInfo> ListExperiments() |
|
List<MetricValue> GetMetricHistory(string runId, string metricKey) |
|
List<RunInfo> ListRuns(string experimentName, string filter, string orderBy, int maxResults) |
|
List<RunInfo> SearchRuns(IEnumerable<string> experimentNames, string filter, string orderBy, int maxResults) |
|
RunComparison CompareRuns(string[] runIds) |
|
RunInfo GetRun(string runId) |
|
RunInfo StartRun(string runName, Dictionary<string, string> tags, string description) |
|
void DeleteExperiment(string experimentName) |
|
void DeleteRun(string runId) |
|
void Dispose() |
Disposes the tracker. |
void EndRun(RunStatus status) |
|
void LogArtifact(string localPath, string artifactPath) |
|
void LogArtifacts(string localDir, string artifactPath) |
|
void LogMetric(string key, double value, long? step) |
|
void LogMetrics(Dictionary<string, double> metrics, long? step) |
|
void LogModel(string modelPath, string modelName, Dictionary<string, object> metadata) |
|
void LogParameter(string key, string value) |
|
void LogParameters(Dictionary<string, string> parameters) |
|
void RestoreRun(string runId) |
|
void SetExperiment(string name) |
|
void SetTag(string key, string value) |
|
void SetTags(Dictionary<string, string> tags) |