Comments (3)
Hey @cerlymarco , as you can see this issue was mentioned in a few places. Just to add some description/context to each one of those:
GroupedPredictor
refactoring was a first attempt to fix the issue reported here, as well as expanding the functionalities. Since this was getting a bit messy we decided to follow another approach, which led us to the next two points.GroupedPredictor
patch follows your suggestion to raise an error if shrinkage is used in combination with a classification task. This is a somewhat breaking change which is already in themain
branch.- In
HierarchicalPredictor
andHierarchicalTransformer
we set up the discussion for how to deal with that as well as adding other features to meta estimators that are somewhat similar toGrouped*
ones.I don't want to make promises, but you could expectHierarchicalPredictor
(or even better aHierarchicalClassifier
) that works with classification tasks and shrinkage to come fairly soon- Available since 0.8.0 release
from scikit-lego.
Hi @FBruzzesi, thanks for your reply! That seems reasonable. If that is the case, an error/warning may be raised when a classifier (an estimator with predict_proba method) is provided with shrinkage enabled. Otherwise, a proper shrinkage method for probabilities could be implemented
from scikit-lego.
Hey @cerlymarco, thanks for reporting this bug. I can replicate the issue and will take a closer look.
My first impression is that shrinkage was intended for regression problems only, as running .predict(...)
with the same data you provided will yield values that are not classes and that shouldn't be the expected output.
from scikit-lego.
Related Issues (20)
- [FEATURE] VarianceThresholdClassifier HOT 1
- `HierarchicalPredictor` and `HierarchicalTransformer` HOT 2
- [DOCS] Separate page for each meta feature HOT 2
- [DOCS] Document KlusterFoldValidation HOT 3
- [DOCS] Broken links on Home page to installation and user guide sections
- [DOCS] Remove netlify docs HOT 2
- [DOCS] Proposed addition: Adding a Quickstart or Overall User Guide Landing Page
- [DOCS] Latex markdown mixup HOT 1
- [DOCS] Missing explanation on how to run the documentation locally HOT 1
- [BUG] Rename `transform_train` to `resample`. HOT 8
- `linear_model.LowessRegression`
- `decomposition.pca_reconstruction.PCAOutlierDetection` HOT 1
- `decomposition.umap_reconstruction.UMAPOutlierDetection` HOT 5
- Delegate Missing Values and Categorical Handling in `GrouperTransformer` and `GrouperPredictor` HOT 6
- [FEATURE] Narwhals migration for dataframe-agnostic codebase HOT 23
- [BUG] zero_inflated_regressor.py HOT 1
- [FEATURE] equivalent to sklearn discovery module HOT 7
- [BUG] Fairness regularization HOT 1
- ModuleNotFoundError: No module named 'narwhals' when using RepeatingBasisFunction HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikit-lego.