tawheeler / forwardnets.jl Goto Github PK
View Code? Open in Web Editor NEWA simple Julia package for neural networks.
License: Other
A simple Julia package for neural networks.
License: Other
Hi, tawheeler,
Thanks for the great work. But when I use the package with antomotivedrivingmodels, it reports too many params for forwardnet, even when I try with simple inputs as your example, it reports the same error. Could you help me with it?
The traceback is as following:
(d_gail_2.7)gail-driver-master $ python train_gail_model.py
<julia_sim.py>: julia env dict: {'Auto2D': '/Users///gail-driver-master/julia/envs/Auto2D.jl'}
statistics of initial_obs_mean (dimension: 51 )
2018-10-17 14:12:36.789179 +03 | Warning: skipping Gym environment monitoring since snapshot_dir not configured.
<gym_env.py>: env: Auto2D-v0
site-packages:gym:envs:registration.py register.make(id): Auto2D-v0
site-packages:gym:envs:registration.py envspec.make(): _entry_point: rltools.envs.julia_sim:JuliaEnvWrapper
site-packages:pkg_resources:__init__.py require wainings
gym:registration.py: result: <class 'rltools.envs.julia_sim.JuliaEnvWrapper'>
WARNING: Method definition describe(AbstractArray) in module StatsBase at /Users//.julia/v0.5/StatsBase/src/scalarstats.jl:560 overwritten in module DataFrames at /Users/*/.julia/v0.5/DataFrames/src/abstractdataframe/abstractdataframe.jl:407.
calling ForwardNets
gen_simparams is truly called with initialization
nokey in args with trajdata_filepaths
loading trajdatas: Any[1,2,3,4,5,6]
elapsed time: 43.239445775 seconds
loading training segments
elapsed time: 43.052144272 seconds
gen_simparams called
SimParam called
col_weight:0.0
off_weight:0.0
rev_weight0.0
jrk_weight0.0
acc_weight0.0
cen_weight0.0
ome_weight0.0
use_debug_rewardfalse
use_playback_reactivefalse
model_allfalse
playback_reactive_threshold_brake-2.0
nsimstates1
prime_history2
nsteps100
ego_action_type: AutomotiveDrivingModels.AccelTurnrate
extractor: Auto2D.MultiFeatureExtractor(true,false,true,false,true,Auto2D.LidarSensor([-2.82743,-2.51327,-2.19911,-1.88496,-1.5708,-1.25664,-0.942478,-0.628319,-0.314159,0.0,0.314159,0.628319,0.942478,1.25664,1.5708,1.88496,2.19911,2.51327,2.82743,3.14159],[2.8947e-314,2.8947e-314,2.87968e-314,2.87968e-314,2.8947e-314,2.8947e-314,2.87968e-314,2.87968e-314,2.88483e-314,2.87968e-314,2.87968e-314,2.90621e-314,2.87968e-314,2.87968e-314,2.87875e-314,2.87875e-314,2.87873e-314,2.87873e-314,2.87873e-314,0.0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,6.91692e-323,0.0,0.0,0.0,0.0,0.0,0.0,0.0],100.0,ConvexPolygon: len 0 (max 4 pts)
),Auto2D.RoadlineLidarSensor(Float64[],,100.0,ConvexPolygon: len 0 (max 4 pts)
),Auto2D.RoadwayLidarCulling(true,Inf,-Inf,Inf,-Inf,#undef,#undef,#undef,#undef,Auto2D.LanePortion[]))
context: AutomotiveDrivingModels.IntegratedContinuous(0.1,1)
features: initialized
safety_policy AutomotiveDrivingModels.LatLonSeparableDriver(AutomotiveDrivingModels.IntegratedContinuous(0.1,1),AutomotiveDrivingModels.ProportionalLaneTracker(NaN,0.1,3.0,2.0),AutomotiveDrivingModels.IntelligentDriverModel(NaN,0.1,1.0,4.0,0.5,29.0,1.0,3.0,2.5,9.0))
playback_reactive_modelAutomotiveDrivingModels.LatLonSeparableDriver(AutomotiveDrivingModels.IntegratedContinuous(0.1,1),AutomotiveDrivingModels.ProportionalLaneTracker(NaN,0.1,3.0,2.0),AutomotiveDrivingModels.IntelligentDriverModel(NaN,0.1,1.0,4.0,0.5,29.0,1.0,3.0,2.5,9.0))
choosing layer:
basepath:iter00413/mlp_policy
layers:String["hidden_0","hidden_1","hidden_2","hidden_3"]
pull w:13056
pull b:256
Traceback (most recent call last):
File "train_gail_model.py", line 222, in
g_env = normalize(GymEnv(env_id),
File "/Users//PycharmProjects/gail-driver-master/rllab/envs/gym_env.py", line 73, in init
env = gym.envs.make(env_name)
File "/Users//anaconda3/envs/d_gail_2.7/lib/python2.7/site-packages/gym/envs/registration.py", line 173, in make
return registry.make(id)
File "/Users//anaconda3/envs/d_gail_2.7/lib/python2.7/site-packages/gym/envs/registration.py", line 125, in make
env = spec.make()
File "/Users//anaconda3/envs/d_gail_2.7/lib/python2.7/site-packages/gym/envs/registration.py", line 89, in make
env = cls(**self._kwargs)
File "/Users//PycharmProjects/gail-driver-master/rltools/envs/julia_sim.py", line 442, in init
JuliaEnvWrapper._param_dict)
File "/Users//PycharmProjects/gail-driver-master/rltools/envs/julia_sim.py", line 49, in init
self.simparams = self.j.gen_simparams(batch_size, param_dict)
RuntimeError: Julia exception: ErrorException("too many parameters for type ForwardNet")
Thanks a lot for the help. Looking forward to your response.
Hi
Thanks for sharing this packages. Could you please provide one example to use the package? I think it would be better for others' understanding.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.