I defined the regress as follows:
nn1 = Regressor( layers=[ Layer("Rectifier", units=150), Layer("Rectifier", units=100), Layer("Linear")], regularize="L2", # dropout_rate=0.25, learning_rate=0.01, valid_size=0.1, learning_rule="adagrad", verbose=False, weight_decay=0.00030, n_stable=10, f_stable=0.00010, n_iter=200)
I use this regression in k-fold cross-validation. In order for the cross-check to work correctly and not learn from previous bends, it is necessary that the regressor is reset after each fold.
How can I reset a regressor object?
source share