Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Latest commit

 

History

History
42 lines (32 loc) · 1.13 KB

README.rst

File metadata and controls

42 lines (32 loc) · 1.13 KB

PyPythia

Python library for the Pythia platform.

Installation

You can fetch the pypythia module via pip::
pip install pypythia

Usage

Simple example::

from pypythia 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