list - Python and Yaml files inserting objects -
it's possible add data python command yaml file? here's yaml file:
!obj:pylearn2.train.train { dataset: !obj:pylearn2.datasets.hepatitis.hepatitis &dataset { }, model: !obj:pylearn2.models.mlp.mlp { batch_size: 50, layers : [ # use 2 hidden layers maxout activations !obj:pylearn2.models.maxout.maxout { layer_name: 'h0', num_units: 300, num_pieces: 2, irange: 0.5, }, #i want add of !obj:pylearn2.models.maxout.maxout{...} python file... !obj:pylearn2.models.mlp.softmax { layer_name: 'y', # initialize weights 0s irange: 0.5, n_classes: 2 } ], nvis: 2612, }, algorithm: !obj:pylearn2.training_algorithms.sgd.sgd { learning_rate : 1e-3, batch_size : 50, monitoring_batches : 20, monitoring_dataset : *dataset, termination_criterion : !obj:pylearn2.termination_criterion.monitorbased { prop_decrase: .01, n : 35 }, } , #save pickle file current directory save_path : ./garbageprova.pkl, #frequency of updating file save_freq : 100 }
how can add element model.layers[]
list?
you can use pyyaml process yaml in python. take @ pyyaml documentation , examples on home page. these should give idea of how solve requirement
Comments
Post a Comment