Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix options is undefined! #280

Merged
merged 4 commits into from
Sep 27, 2018
Merged

Fix options is undefined! #280

merged 4 commits into from
Sep 27, 2018

Conversation

mubaidr
Copy link
Contributor

@mubaidr mubaidr commented Sep 27, 2018

@@ -116,7 +116,7 @@ export default class CrossValidate {
let dclone = data.slice(0);
let testSet = dclone.splice(i * size, size);
let trainSet = dclone;
let result = this.testPartition(options, trainOpts, trainSet, testSet);
let result = this.testPartition(this.options, trainOpts, trainSet, testSet);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find! We could (should) simplify this. We don't need to pass options to testPartition because it is part of this, can you remove here and reference there?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I take it back, this.options just needs removed in this case. I'll go ahead and commandeer this as I need it for work this morning.

@robertleeplummerjr robertleeplummerjr merged commit f0a1a56 into v1.x Sep 27, 2018
@robertleeplummerjr robertleeplummerjr deleted the mubaidr-patch-1 branch September 27, 2018 16:03
Copy link
Contributor Author

@mubaidr mubaidr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@robertleeplummerjr
Copy link
Contributor

Ty sir!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants