Exemplo n.º 1
0
    def scoped_init():
        clt = TrackClient(f'file://{file}')

        clt.set_project(name='project_name')
        clt.set_group(name='group_name')
        clt.new_trial()
        clt.log_arguments(batch_size=256)

        clt.save()
        return clt.trial.uid
Exemplo n.º 2
0
def test_client_log_api():
    with Remove('client_test.json'):
        client = TrackClient('file://client_test.json')
        client.set_project(name='test_client')

        trial = client.new_trial()
        trial.log_arguments(batch_size=256)

        trial.log_metrics(step=1, epoch_loss=1)
        trial.log_metrics(accuracy=0.98)

        client.save()
        client.report()
Exemplo n.º 3
0
def test_client_no_group(file='client_2'):
    with Remove(file):
        client = TrackClient(f'file://{file}')
        client.set_project(name='test_client')

        log = client.new_trial()
        client.log_arguments(batch_size=256)

        client.log_metrics(step=1, epoch_loss=1)
        client.log_metrics(accuracy=0.98)

        client.save()
        client.report()

        print(log.trial.metrics)