Skip to main content
The eval command evaluates a trained Neurenix model using specified metrics and test data.

Usage

Options

Available Metrics

The following metrics are supported:

Classification Metrics

  • accuracy - Overall classification accuracy
  • precision - Precision score
  • recall - Recall score
  • f1 - F1 score (harmonic mean of precision and recall)
  • auc - Area under the ROC curve
  • confusion_matrix - Confusion matrix

Regression Metrics

  • mse - Mean squared error
  • rmse - Root mean squared error
  • mae - Mean absolute error
  • r2 - R-squared score

Custom Metrics

You can also specify custom metrics defined in your Neurenix configuration.

Examples

Basic evaluation

Specify custom metrics

Evaluate on directory of data

Custom output file

Force CPU evaluation

Regression metrics

Output Format

The evaluation results are saved as JSON:

Data Format

CSV Files

For CSV files, the last column is treated as the label:

Directory Structure

For image classification, organize data by class:

Error Handling

Model not found

Data not found

Invalid metric

Best Practices

1. Use multiple metrics

Evaluate with comprehensive metrics:

2. Separate test data

Keep test data completely separate from training:

3. Save results with meaningful names

4. Batch size for large datasets

Use appropriate batch sizes:

5. Compare multiple models

Integration with Other Commands

After training

Before deployment

See Also