-
Notifications
You must be signed in to change notification settings - Fork 197
Add ClassificationKriging #165
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
Add ClassificationKriging #165
Conversation
…into classification-kriging
|
Hey @mralbu! Sorry for the late reply. Quite busy with my PhD these days. I got some remarks:
If you don't want to care about the refactor, just leave Hope you are ok with these remarks. I will do a review in addition. Cheers, Sebastian |
MuellerSeb
left a comment
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.
Got some ideas for vectorization. Overall looks good to me. I just need some explanations for the eps hack. 😉
| @@ -0,0 +1,49 @@ | |||
| """ | |||
| Classification kriging | |||
| ------------------ | |||
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.
Too few "-" to create a headline.
| from pykrige.ok import OrdinaryKriging | ||
| from pykrige.compat import validate_sklearn | ||
|
|
||
| validate_sklearn() |
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.
This is tricky. validate_sklearn was called before all sklearn import in order to raise a specific Error if it was not installed. But as I said: I can care about that later.
Hi, Sebastian! Completely understand the delay.. I've recently finished my masters and, though much simpler, it did require my full attention for quite some time. |
3be4999 to
c47df3d
Compare
|
Haven't figured out a good plot yet for example 10_classification_kriging2d.py. |
c47df3d to
d30c718
Compare
d30c718 to
5dd5df1
Compare
|
@mralbu Lost track of this again. Sorry. Let's get this merged. I will just do some cleanup. I am fine with no plot (other examples also don't have one). I like the more explicit description for the README more. Will add it with a link for the ilr transform. |
|
Is this feature still going to be merged? Just wondering. |
|
Will add these changes to a new branch, so I can take over. Thanks again @mralbu for your work! |
Adds ClassificationKriging class adapting RegressionKriging to work with categorical variables. It maps the scikit-learn classifiers predict_proba simplexes to an isometric space using the ilr transform, and kriges/interpolates the residuals of the (also ilr transformed) observed data.
I am far from being an expert on geostatistics or compositional data analysis, but I believe this method corresponds to the Simplicial Indicator Kriging method.