Пример #1
0
 def get_default_config(cls):
     config = super(LayerWeightInitializer, cls).get_default_config()
     config["rng"] = get_rng()
     return config
Пример #2
0
 def get_default_config(cls):
     config = super(GridInitializer, cls).get_default_config()
     config["rng"] = get_rng()
     del config["initializers"]
     return config
Пример #3
0
 def get_default_config(cls):
     config = super(ModelWeightInitializer, cls).get_default_config()
     config["rng"] = get_rng()
     config["initializers"] = {"class": StandardWeightInitializer}
     return config
Пример #4
0
 def get_default_config(cls):
     config = super(OptimalInitializer, cls).get_default_config()
     config["rng"] = get_rng()
     config["num_clusters"] = 5
     del config["initializers"]
     return config