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

Enable multiclass classification with plsdaCaret #2621

Merged
merged 4 commits into from
Jul 18, 2019
Merged

Enable multiclass classification with plsdaCaret #2621

merged 4 commits into from
Jul 18, 2019

Conversation

GegznaV
Copy link
Contributor

@GegznaV GegznaV commented Jul 16, 2019

Solves #2620.

Locally the new tests pass:
image

@@ -36,3 +36,41 @@ test_that("classif_plsdaCaret", {
testProbParsets("classif.plsdaCaret", binaryclass.df, binaryclass.target, binaryclass.train.inds,
old.probs.list, parset.list)
})

Copy link
Member

Choose a reason for hiding this comment

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

Please remove the unnecessary empty lines below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed one line.

old.predicts.list, parset.list)
testProbParsets("classif.plsdaCaret", multiclass.df, multiclass.target, multiclass.train.inds,
old.probs.list, parset.list)

Copy link
Member

Choose a reason for hiding this comment

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

This line is also not not needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed two lines.

Copy link
Member

@pat-s pat-s left a comment

Choose a reason for hiding this comment

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

Thanks! I haven't used plsda myself yet so I am not aware if there are theoretical issues fir multiclass tasks.

If tests are working, I see no point why we should not add the multiclass property.

Providing a screenshot of your local tests is nice but not really needed since Travis will do the work :)

Could you add an entry to NEWS.md?

@GegznaV GegznaV requested a review from pat-s July 16, 2019 10:54
@GegznaV
Copy link
Contributor Author

GegznaV commented Jul 16, 2019

I removed 3 lines and applied mlr_style. Then added a line to NEWS.md.
Still, I'm not sure if one more line should be removed?

@pat-s
Copy link
Member

pat-s commented Jul 18, 2019

Thanks for contributing!

@pat-s pat-s merged commit 78a96eb into mlr-org:master Jul 18, 2019
vrodriguezf pushed a commit to vrodriguezf/mlr that referenced this pull request Jan 16, 2021
* Property "multiclass" added to learner plsdaCaret

* Test for multiclass classif_plsdaCaret

* Empty lines removed

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

Successfully merging this pull request may close these issues.

None yet

2 participants