Skip to content

Commit f0a1a56

Browse files
Merge pull request #280 from BrainJS/mubaidr-patch-1
Fix options is undefined!
2 parents e72c9ab + 133f40a commit f0a1a56

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
"node_modules",
3232
"test"
3333
],
34-
"version": "1.4.0"
34+
"version": "1.4.1"
3535
}

browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* license: MIT (http://opensource.org/licenses/MIT)
77
* author: Heather Arthur <[email protected]>
88
* homepage: https://github.com/brainjs/brain.js#readme
9-
* version: 1.4.0
9+
* version: 1.4.1
1010
*
1111
* acorn:
1212
* license: MIT (http://opensource.org/licenses/MIT)
@@ -252,7 +252,7 @@ var CrossValidate = function () {
252252
var dclone = data.slice(0);
253253
var testSet = dclone.splice(i * size, size);
254254
var trainSet = dclone;
255-
var result = this.testPartition(options, trainOpts, trainSet, testSet);
255+
var result = this.testPartition(trainOpts, trainSet, testSet);
256256
for (stat in avgs) {
257257
if (stat in avgs) {
258258
sum = avgs[stat];

browser.min.js

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cross-validate.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cross-validate.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "brain.js",
33
"description": "Neural network library",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"author": "Heather Arthur <[email protected]>",
66
"repository": {
77
"type": "git",

src/cross-validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default class CrossValidate {
116116
let dclone = data.slice(0);
117117
let testSet = dclone.splice(i * size, size);
118118
let trainSet = dclone;
119-
let result = this.testPartition(options, trainOpts, trainSet, testSet);
119+
let result = this.testPartition(trainOpts, trainSet, testSet);
120120
for (stat in avgs) {
121121
if (stat in avgs) {
122122
sum = avgs[stat];
@@ -174,4 +174,4 @@ export default class CrossValidate {
174174
instance.fromJSON(json);
175175
return instance;
176176
}
177-
}
177+
}

0 commit comments

Comments
 (0)