Installation

pip install truefoundry

Quick Example

from truefoundry.ml import get_client

# Initialize the client
client = get_client()

# Create a run
run = client.create_run(
    ml_repo="my-classification-project",
    run_name="svm-with-rbf-kernel"
)

# Log metrics and parameters
run.log_metrics({"accuracy": 0.95, "loss": 0.1})
run.log_params({"learning_rate": 0.01, "epochs": 100})

# End the run
run.end()

Available Classes

TrueFoundry ML Client

21 methods

Run

14 methods

Data Types

ArtifactVersion, ModelVersion, DataDirectory, etc.

Enums & Constants

ViewType, RunStatus, ModelFramework, etc.

Additional Resources

📋 Data Types

Explore all input and output types used in the SDK

🔢 Enums

View all available enum values and constants