Comments (5)
Hi @ThomasBury,
I agree with leaving default parameters, except what you mentioned. Actually class_weight could be skipped by setting is_unbalance=True in the LGBMClassifier
from arfs.
Thank you for your kind words.
It is indeed a good idea to limit the depth, to avoid using "specific" models in the selection process. The idea is to avoid overfitting and keep the default parameters of lightGBM as is. The authors said that the default values guarantee sane but good behaviour in most cases.
For instance, the depth is not restricted (-1) but the max number of leaves is set to 31. In most cases, it avoids overfitting. The number of estimators is by default set to 100. You could decrease it a bit if you think it leads to overfitting.
The only parameters I'd change are:
- the
loss
(according to the task) - the
sample_weight
(if any) - the
class_weight
if dealing with unbalance classification.
You can also compare the results to GrootCV
which is more robust (cross-validated).
I'll try to add this in the doc, which is now live on ReadTheDocs btw ^^
from arfs.
Hi @ThomasBury,
I agree with leaving default parameters, except what you mentioned. Actually class_weight could be skipped by setting is_unbalance=True in the LGBMClassifier
Yes, both can be used for unbalanced classification. Whatever works best for your project 🙂
from arfs.
Hi @ThomasBury, class_weight is needed for multi-class classification, though.
from arfs.
Hi @ThomasBury, class_weight is needed for multi-class classification, though.
it is, you can use it without any problem for multi-class (Even for binary + imbalance, I'd personally use class_weight
, it often leads to better results with a custom weighting vs the class proportional weighting of is_unbalanced
)
from arfs.
Related Issues (20)
- Leshy works wrong with categorical features HOT 2
- potential to specify time series splitter HOT 7
- GrootCV is missing class_weight param for muticlass classification HOT 1
- Numba HOT 1
- Consider using FastTreeSHAP? HOT 5
- Ability to pass in a model to GrootCV HOT 7
- arfs.feature_selection module not found HOT 4
- Cannot suppress runtime warning HOT 1
- [BUG] - add a safeguard when there is a single categorical column
- LightGBM bump and folds var HOT 3
- [BUG] User-Specified Threshold for CollinearityThreshold is not Applied. HOT 1
- Leshy fit method always overwrites to importance==shap if fasttreeshap not installed HOT 3
- Issue with Custom Callable Implementation in CollinearityThreshold Class HOT 2
- Issue with Overly Aggressive Feature Removal in CollinearityThreshold Class
- Bug: MinRedundancyMaxRelevance Function Modifies Input DataFrame by Adding target Column HOT 2
- Possible bugs in `CollinearityThreshold` HOT 9
- CollinearityThreshold has the wrong default
- Duplicated feature importance columns in reduce_vars_sklearn HOT 2
- Max on the wrong axis in _reduce_vars_sklearn HOT 3
- Feature Selection Accuracy Comparison
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 arfs.