Skip to content

Commit 55c1c73

Browse files
authored
Merge pull request #199 from tremblap/fix/mlp-loading
fix #198 - updating MLP objects language-side parameters to include `seed` after loading / reading
2 parents 7275e9a + f0e410f commit 55c1c73

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

release-packaging/Classes/FluidMLP.sc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ FluidMLPRegressor : FluidModelObject {
8989
}
9090

9191
prUpdateParams{|data|
92-
var rest = data.keep(-9);
93-
this.hiddenLayers_(data.drop(1).drop(-9).copy);
92+
var rest = data.keep(-10);
93+
this.hiddenLayers_(data.drop(1).drop(-10).copy);
9494
[\activation_, \outputActivation_,
9595
\tapIn_, \tapOut_, \maxIter_,
9696
\learnRate_, \momentum_,
97-
\batchSize_, \validation_]
97+
\batchSize_, \validation_, \seed_]
9898
.do{|prop,i|
9999
this.performList(prop,rest[i]);
100100
};
@@ -184,11 +184,11 @@ FluidMLPClassifier : FluidModelObject {
184184
}
185185

186186
prUpdateParams{|data|
187-
var rest = data.keep(-6);
188-
this.hiddenLayers_(data.drop(1).drop(-6).copy);
187+
var rest = data.keep(-7);
188+
this.hiddenLayers_(data.drop(1).drop(-7).copy);
189189
[\activation_, \maxIter_,
190190
\learnRate_, \momentum_,
191-
\batchSize_, \validation_]
191+
\batchSize_, \validation_, \seed_]
192192
.do{|prop,i|
193193
this.performList(prop,rest[i]);
194194
};

0 commit comments

Comments
 (0)