Hectiq Lab

Training

Setup

pip install pyhectiqlab

Authenticate using the tutorial Authentication.

Functional

In a separate file, you can create your training script.

import pyhectiqlab.functional as hl
def train():
    hl.start_step("Preparing for training.") 
    # Load your data and build your model here.

    hl.start_step("Training.") 
    for step in range(100):
        hl.add_metric("loss", step=step, value=step**2) 

In your main script, wrap the training script with a Run context manager. It will automatically create a run and handle the start and end of the run.

from pyhectiqlab import Run
from pyhectiqlab.functional import set_project 
set_project("hectiq-ai/demo")

with Run(title="My first run") as run: 
    train()

On this page