def make_experiment(
        exp_id=1, path="./Results/Temp/{domain}/{agent}/{representation}/"):

    # Experiment variables
    opt = {}
    opt["path"] = path
    opt["exp_id"] = exp_id
    opt["max_steps"] = 10000
    opt["num_policy_checks"] = 10

    # Domain:
    # MAZE                = '/Domains/GridWorldMaps/1x3.txt'
    maze = os.path.join(GridWorld.default_map_dir, '4x5.txt')
    domain = GridWorld(maze, noise=0.3)
    opt["domain"] = domain

    # Representation
    representation = Tabular(domain, discretization=20)

    # Policy
    policy = GibbsPolicy(representation)

    # Agent
    opt["agent"] = NaturalActorCritic(policy, representation, domain.discount_factor,
                               0.3, 100, 1000, .7, 0.1)

    experiment = Experiment(**opt)
    return experiment
Pre-commit hook for git. Just add the bellow script to
dataset/ETHPy150Open rlpy/rlpy/examples/gridworld/nac.py/make_experiment--crossover with--dataset/ETHPy150Open henriquebastos/django-fixturapp/fabfile.py/git_pre_commit