LiveDashboard
Models & Types · AiDotNet.TrainingMonitoring.Dashboard
Provides a real-time training dashboard via embedded web server.
Implements: ITrainingDashboard
How It Works
For Beginners: LiveDashboard is like running TensorBoard - it starts a local web server that you can open in your browser to see real-time training progress. The charts update automatically as training progresses.
Example usage:
Constructors
| Constructor | Summary |
|---|---|
LiveDashboard(string logDirectory, string name, int port, bool allowExternalConnections) |
Creates a new live dashboard. |
Properties
| Property | Summary |
|---|---|
bool AllowExternalConnections { get; set; } |
Gets or sets whether to allow external connections. |
bool IsRunning { get; set; } |
|
int Port { get; } |
Gets the port the server is listening on. |
int RefreshIntervalMs { get; set; } |
Gets or sets the refresh interval in milliseconds for auto-updating clients. |
string LogDirectory { get; } |
|
string Name { get; } |
|
string Url { get; } |
Gets the URL to access the dashboard. |
Methods
| Method | Summary |
|---|---|
Dictionary<string, List<HistogramDataPoint>> GetHistogramData() |
|
Dictionary<string, List<ScalarDataPoint>> GetScalarData() |
|
string GenerateReport(string outputPath) |
|
void Clear() |
|
void Dispose() |
Disposes the live dashboard. |
void ExportTensorBoardFormat(string outputDirectory) |
|
void Flush() |
|
void LogConfusionMatrix(string name, long step, int[] matrix, string[] labels, DateTime? wallTime) |
|
void LogHistogram(string name, long step, double[] values, DateTime? wallTime) |
|
void LogHyperparameters(Dictionary<string, object> hyperparams, Dictionary<string, double> metrics) |
|
void LogImage(string name, long step, byte[] imageData, int width, int height, DateTime? wallTime) |
|
void LogModelGraph(string modelDescription) |
|
void LogPRCurve(string name, long step, double[] predictions, int[] labels, DateTime? wallTime) |
|
void LogROCCurve(string name, long step, double[] predictions, int[] labels, DateTime? wallTime) |
|
void LogScalar(string name, long step, double value, DateTime? wallTime) |
|
void LogScalars(Dictionary<string, double> scalars, long step, DateTime? wallTime) |
|
void LogText(string name, long step, string text, DateTime? wallTime) |
|
void Start() |
|
void Stop() |