pypythia

UNKNOWN


License
MIT
Install
pip install pypythia==0.0.3

Documentation

PyPythia

Python library for the Pythia platform.

Usage

from pythia import Experiment

# init experiment

# implies that an instance of Pythia is listening on localhost
exp = Experiment('http://localhost:5667/api/v1/')

exp.name = "some catchy name"
exp.description = "describe the experiment here"

# create a model
model = exp.create_model()
model.name = "2 layers foo bar dropout softmax"

for i in range(NUM_EPOCHS):
    for j in range(NUM_EXAMPLES):
        # the following two lines are not really valid
        train_classifier()
        train_accuracy = accuracy(classifier)

        # save the measured training accuracy
        model.add_measurement(name='train_accuracy',
                              value=train_accuracy,
                              step=j,
                              epoch=i)

Examples