-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Refactor all machine #5104
Refactor all machine #5104
Conversation
b0e5a6e
to
bbe66a7
Compare
"Number of training vectors ({}) does not match number of " | ||
"labels ({})", | ||
data->get_num_vectors(), m_labels->get_num_labels()); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these checks are not needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move these checks to NonParametricMachine::train
Cool! I guess once this is merged we can start the PR against the develop branch :) |
7ed2a91
to
a6578c4
Compare
@@ -50,7 +50,8 @@ TEST_F(PipelineTest, fit_predict) | |||
->then(machine); | |||
|
|||
// no labels given | |||
EXPECT_THROW(pipeline->train(features), ShogunException); | |||
//EXPECT_THROW(pipeline->train(features), ShogunException); | |||
//pipeline->train(features, labels); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now pipeline have two train
method, original train
will not throw a exception.
@LiuYuHui Can I merge this? |
* refactor all machines * fix unit test * fix python legacy and jupyter notebook
* refactor all machines * fix unit test * fix python legacy and jupyter notebook
* refactor all machines * fix unit test * fix python legacy and jupyter notebook
* refactor all machines * fix unit test * fix python legacy and jupyter notebook
* refactor all machines * fix unit test * fix python legacy and jupyter notebook
* refactor all machines * fix unit test * fix python legacy and jupyter notebook
* refactor all machines * fix unit test * fix python legacy and jupyter notebook
* refactor all machines * fix unit test * fix python legacy and jupyter notebook
* refactor all machines * fix unit test * fix python legacy and jupyter notebook
* refactor all machines * fix unit test * fix python legacy and jupyter notebook
No description provided.