Skip to content

Commit

Permalink
make the bit have a random starting-direction
Browse files Browse the repository at this point in the history
  • Loading branch information
martihmy committed Jul 29, 2020
1 parent ca9f4d5 commit f5f30d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gym-drill/agent_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import numpy as np
import matplotlib.pyplot as plt
import os
from random import uniform

from gym_drill.envs.Coordinate import Coordinate
#from gym_drill.envs.Policies import CustomPolicy
Expand All @@ -26,7 +27,7 @@

# Creating an environment with default settings. See register function for details
ENV_name = 'drill-v0'
ENV = gym.make(ENV_name, bitInitialization= [0.0,0.0,0.0,0.0,0.0,0.0], activate_hazards = True)
ENV = gym.make(ENV_name, bitInitialization= [uniform(0,2*np.pi),uniform(0,np.pi/4),0.0,0.0,0.0,0.0], activate_hazards = True)

#Custom network architecture
policy_kwargs= dict(act_fun=tf.nn.relu, layers=[64,64,64,64,64,32,16]) # Use as argument when doing model =...(policy_kwargs = policy_kwargs)
Expand Down

0 comments on commit f5f30d9

Please sign in to comment.