Documentation
¶
Index ¶
- func ConsoleReport(results []ModelResult, sdkVersion, cogVersion string)
- func JSONReport(results []ModelResult, sdkVersion, cogVersion string) map[string]any
- func SaveResults(results []ModelResult, sdkVersion, cogVersion string) (string, error)
- func WriteJSONReport(results []ModelResult, sdkVersion, cogVersion string, w io.Writer) error
- type ModelResult
- type TestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsoleReport ¶
func ConsoleReport(results []ModelResult, sdkVersion, cogVersion string)
ConsoleReport prints a colored summary to the console
func JSONReport ¶
func JSONReport(results []ModelResult, sdkVersion, cogVersion string) map[string]any
JSONReport generates a JSON report
func SaveResults ¶
func SaveResults(results []ModelResult, sdkVersion, cogVersion string) (string, error)
SaveResults saves results to a JSON file in the results directory
func WriteJSONReport ¶
func WriteJSONReport(results []ModelResult, sdkVersion, cogVersion string, w io.Writer) error
WriteJSONReport writes a JSON report to a file or stdout
Types ¶
type ModelResult ¶
type ModelResult struct {
Name string `json:"name"`
Passed bool `json:"passed"`
Skipped bool `json:"skipped,omitempty"`
SkipReason string `json:"skip_reason,omitempty"`
GPU bool `json:"gpu"`
Error string `json:"error,omitempty"`
BuildDuration float64 `json:"build_duration_s"`
TestResults []TestResult `json:"tests,omitempty"`
TrainResults []TestResult `json:"train_tests,omitempty"`
}
ModelResult represents results for a single model
Click to show internal directories.
Click to hide internal directories.