Training ​
Setup ​
bash
pip install hectiq-lab
Authenticate using the tutorial Authentication.
Object-Oriented ​
In a separate file, you can create your training script.
python
import pyhectiqlab.functional as hl
def train():
hl.start_step("Preparing for training.")
dataset = Dataset()
model = Model()
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.
python
from pyhectiqlab import Run
from pyhectiqlab.functional import set_project
set_project("hectiq-ai/demo")
with Run(title="My first run") as run:
train()