Custom Properties

Custom properties let you attach any structured data to your files in JSON format. Use properties to track experiment results, data quality metrics, processing conditions, or any contextual information your team needs.


When to Use Properties

Properties store rich data beyond simple labels:

Experiment Tracking

Track hyperparameters, metrics, and training details:

{
    "model_architecture": "resnet50",
    "optimizer": "adam",
    "learning_rate": 0.001,
    "batch_size": 32,
    "epochs": 100,
    "final_loss": 0.023,
    "accuracy": 0.95,
    "precision": 0.93,
    "recall": 0.97,
    "training_time_minutes": 145,
}

Data Quality

Record validation results and processing metrics:

Production Context

Capture environmental and operational data:


How to Add Properties

Properties are added through metadata using any custom JSON keys (except reserved valohai.tags ,valohai.alias , valohai.model-versions and valohai.dataset-versions )

During Execution

Combine with Tags and Aliases

For Multiple Files

Use valohai.metadata.jsonl for many files:

💡 For complete details on metadata methods, see Add Context to Your Data Files


Read Properties in Code

Access metadata from input files during execution to make data-driven decisions.

Access Input Metadata

Use Cases for Reading Properties

Filter inputs by quality:

Conditional processing:

Audit trails:


Add Properties via API

Add or update properties after execution completes using the Valohai API.

Single Datum

Apply properties to one file:


Multiple Datums (Different Properties)

Apply different properties to each file:


Multiple Datums (Same Properties)

Apply the same properties to all files:

💡 API Token: Get your API token from your Valohai account settings. See Make calls to the Valohai API for details.


Update or Remove Properties

Set property values to None to remove them:


View Properties

Web Application

  1. Navigate to your project's Data tab

  2. Click on any file to open details

  3. Scroll to the Properties section

  4. Search or filter properties by key

  5. Hover over values to see full content


Common Property Patterns

Experiment Metadata


Data Quality Metadata


Production Metadata


Best Practices

Use Consistent Keys

Structure Nested Data

Include Units



Next Steps

  • Learn how to use tags alongside properties

  • Create aliases pointing to files with rich metadata

  • Set up datasets to group files by properties

Last updated

Was this helpful?