Пример #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
Пример #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)