Skip to content

Add PLS family algorithms#95

Merged
bytesnake merged 21 commits intorust-ml:masterfrom
relf:ft-pls-regression
Mar 19, 2021
Merged

Add PLS family algorithms#95
bytesnake merged 21 commits intorust-ml:masterfrom
relf:ft-pls-regression

Conversation

@relf
Copy link
Member

@relf relf commented Mar 14, 2021

This PR implements PLS methods in a new workspace member linfa-pls.

This is a straightforward port of scikit-learn 0.24 cross decomposition PLS code.

  • PLS regression
  • PLS canonical
  • PLS cca
  • PLS svd
  • documentation & website

@relf relf marked this pull request as ready for review March 17, 2021 14:19
@relf relf changed the title [WIP] Add PLS family algorithms Add PLS family algorithms Mar 17, 2021
Copy link
Member

@bytesnake bytesnake left a comment

Choose a reason for hiding this comment

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

I did a first round of review on the PR 👍


#[cfg(test)]
mod test {
use super::*;
Copy link
Member

Choose a reason for hiding this comment

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

the tests are currently only checking that the fitting process runs without error

Copy link
Member Author

Choose a reason for hiding this comment

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

I think transform and predict were at least covered but I guess I can add some tests checking that we get the same results as scikit-learn.

@relf
Copy link
Member Author

relf commented Mar 18, 2021

Nothing to add on my side... Well, after this first round! 😅

};
}

// Prediction values were checked against scikit-learn 0.24.1
Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Member

@bytesnake bytesnake left a comment

Choose a reason for hiding this comment

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

thanks again for all the work! I will add a small example to the website as well

@bytesnake bytesnake merged commit b6f729a into rust-ml:master Mar 19, 2021
@bytesnake bytesnake mentioned this pull request Mar 19, 2021
24 tasks
@relf relf deleted the ft-pls-regression branch March 19, 2021 08:33
@relf relf mentioned this pull request Mar 19, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants