Comments (5)
Hello! I would like to mention that it would be nice to include this parameter for MCE just as you did for FAMD since it uses encodes categorical features aswell. It will have to be rewritten a little since as I see it uses pd.get_dummies instead of OneHotEncoder. I wish I could fork and rewrite it by myself, but I don't have so much time at the moment :(
from prince.
Hey! So you would essentially like to control the handle_unknown
parameter of the OneHotEncoder
? The parameters I see there are {‘error’, ‘ignore’, ‘infrequent_if_exist’}
, but not substitute
.
from prince.
Yes, it would make it easier when dealing with continuous streaming of data with high dimensionality (so new values for certain variables are coming infrequently, so they raise errors and exit the computations).
I hope this is clear
Thanks
from prince.
Ok I've added a handle_unknown
parameter to FAMD, that will be fed to OneHotEncoder
. It's available in version 0.10.4 :)
from prince.
Hey @TalkativeGuy. Actually, for MCA, it's valid to pass columns and column values which were not seen before. Do you have an example/usecase in mind?
from prince.
Related Issues (20)
- Unable to allocate memory HOT 4
- FAMD transform ValueError on qualitative data HOT 1
- 'MCA' object has no attribute '_check_is_fitted' with .transform HOT 2
- Not compatible with pandas 2.0.0 HOT 4
- Sklearn GridSearchCV: 'MCA' object has no attribute 'set_params' HOT 3
- Difficulty applying FMA with a group of categorical variables. HOT 1
- Information regarding Inverse MCA HOT 2
- MCA: plotting assumes raw dataset has already run get_dummies HOT 7
- prince.PCA vs. sklearn.decomposition.PCA? HOT 3
- UserWarning "pandas.DataFrame with sparse columns found" when running famd() HOT 1
- Feature idea: biplot HOT 2
- Compatibility with altair 5.0.x HOT 7
- Feature Idea: Weights HOT 3
- How to transform on new unseen test data? HOT 3
- CA.row_coordinates only works with pd.DataFrame HOT 5
- FAMD fit method not compatible with scikit-learn pipeline HOT 2
- MCA doesn't work with column transformers of sklearn HOT 2
- Bug in FAMD transform() HOT 1
- Support for sklearn Pipelines HOT 1
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 prince.