def test_duplicate_keywords_2():
 initialize()
 yamlfile = '{\n             "model": !obj:pylearn2.models.rbm.GaussianBinaryRBM {\n\n                 "vis_space" : &vis_space !obj:pylearn2.space.Conv2DSpace {\n                    "shape" : [32,32],\n                    "num_channels" : 3\n                },\n                "hid_space" : &hid_space !obj:pylearn2.space.Conv2DSpace {\n                    "shape" : [27,27],\n                    "num_channels" : 10\n                },\n                "transformer" :\n                        !obj:pylearn2.linear.conv2d.make_random_conv2D {\n                    "irange" : .05,\n                    "input_space" : *vis_space,\n                    "output_space" : *hid_space,\n                    "kernel_shape" : [6,6],\n                    "batch_size" : &batch_size 5\n                },\n                "energy_function_class" :\n                     !obj:pylearn2.energy_functions.rbm_energy.grbm_type_1 {},\n                "learn_sigma" : True,\n                "init_sigma" : .3333,\n                "init_bias_hid" : -2.,\n                "mean_vis" : False,\n                "sigma_lr_scale" : 1e-3\n\n             }\n    }'
 load(yamlfile)

def test_duplicate_keywords_2 ( ) : initialize ( ) yamlfile = '{\n             "model": !obj:pylearn2.models.rbm.GaussianBinaryRBM {\n\n                 "vis_space" : &vis_space !obj:pylearn2.space.Conv2DSpace {\n                    "shape" : [32,32],\n                    "num_channels" : 3\n                },\n                "hid_space" : &hid_space !obj:pylearn2.space.Conv2DSpace {\n                    "shape" : [27,27],\n                    "num_channels" : 10\n                },\n                "transformer" :\n                        !obj:pylearn2.linear.conv2d.make_random_conv2D {\n                    "irange" : .05,\n                    "input_space" : *vis_space,\n                    "output_space" : *hid_space,\n                    "kernel_shape" : [6,6],\n                    "batch_size" : &batch_size 5\n                },\n                "energy_function_class" :\n                     !obj:pylearn2.energy_functions.rbm_energy.grbm_type_1 {},\n                "learn_sigma" : True,\n                "init_sigma" : .3333,\n                "init_bias_hid" : -2.,\n                "mean_vis" : False,\n                "sigma_lr_scale" : 1e-3\n\n             }\n    }' load ( yamlfile )
tests whether duplicate keywords as independent parameters works fine .