ConsoleDashboard

Models & Types · AiDotNet.TrainingMonitoring.Dashboard

Console-based training dashboard with ASCII charts.

Implements: ITrainingDashboard

How It Works

For Beginners: ConsoleDashboard provides real-time training visualization directly in your terminal using ASCII art. This is useful when you don’t have access to a web browser or want a lightweight monitoring solution.

Features:

  • ASCII line charts for loss/accuracy
  • Progress bars for training progress
  • Real-time metric display
  • Colored output for different metric types

Example usage:

Constructors

Constructor Summary
ConsoleDashboard(string logDirectory, string name) Creates a new console dashboard.

Properties

Property Summary
bool ClearOnRender { get; set; } Gets or sets whether to clear the screen on each render.
bool IsRunning { get; }
bool UseColors { get; set; } Gets or sets whether to use colors.
int ChartHeight { get; set; } Gets or sets the chart height in characters.
int ChartWidth { get; set; } Gets or sets the chart width in characters.
int MaxMetricsDisplay { get; set; } Gets or sets the maximum number of metrics to display.
int RefreshIntervalMs { get; set; } Gets or sets the refresh interval in milliseconds.
string LogDirectory { get; }
string Name { get; }

Methods

Method Summary
Dictionary<string, List<HistogramDataPoint>> GetHistogramData()
Dictionary<string, List<ScalarDataPoint>> GetScalarData()
string GenerateReport(string outputPath)
void Clear()
void Dispose() Disposes the console 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()