Raise exception if doSampleBatch == True
This commit is contained in:
@@ -39,6 +39,12 @@ class StackFactory:
|
||||
|
||||
# Determine version by existence of keys
|
||||
params = layer["rbm"]["params"]
|
||||
|
||||
# signal that doSampleBatch will be ignored
|
||||
if params["doSampleBatch"] == 1:
|
||||
raise Exception(f"Error: Parameter \"doSampleBatch\" will be ignored. To continue, set \"doSampleBatch = False\"")
|
||||
|
||||
# import params
|
||||
entity_params = EntityParams.from_dict(params)
|
||||
training_params = TrainingParams.from_dict(params)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user