예제 #1
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()
예제 #2
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)