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_trial():

    client = TrackClient('file:test.json')

    client.set_project(name='ConvnetTest', description='Trail test example')
    client.set_group(name='test_group')

    logger1 = client.new_trial()
    client.get_arguments({'a': 1})

    uid1 = logger1.trial.hash

    logger2 = client.new_trial(force=True)
    client.get_arguments({'a': 2})

    uid2 = logger2.trial.hash
    assert uid1 != uid2, 'Trials with different parameters must have different hash'