Comments (5)
Ideally this library should implement all of these: https://towardsdatascience.com/the-mathematics-of-decision-trees-random-forest-and-feature-importance-in-scikit-learn-and-spark-f2861df67e3
They're also not hard to do, you just need the time, which I don't really have at the moment. Feel free to submit a PR, there's a decent example here: https://github.com/Rambatino/CHAID/blob/master/CHAID/tree.py#L284
from chaid.
I don't think It's difficult to impl feature importance.
My understanding is that feature importance is calculated based on some index like gini or entropy.
Do you know which index CHAID in SPSS use?
from chaid.
I don't unfortunately, haven't looked at this stuff in a while since the repo hit maturity. There's a PDF somewhere that breaks down the calculations, I couldn't find it just now, but it shouldn't be too difficult to track down
from chaid.
chefboost uses chi-square values.
https://github.com/serengil/chefboost/blob/master/chefboost/training/Training.py#L164
from chaid.
yeah seems simple enough. Feel free to submit a PR
from chaid.
Related Issues (20)
- is it copy of https://github.com/codingblg/CHAID_phi HOT 1
- Not being able to visualize it in Colab HOT 18
- I got the path to work, but now I'm back to the initial problem I had with the invalid argument in trees. -_- HOT 2
- Documentation for library HOT 3
- Nominal Column is not defined HOT 1
- Issue exporting tree graph HOT 2
- Feature selection difference with SPSS HOT 1
- missing value in ordinal feature and bonferroni adjustment HOT 3
- Slow HOT 1
- Prior Nodes HOT 2
- Continuous Column name arg & Plotting Tree HOT 2
- Prediction HOT 4
- tree.render() throws error while working with data bricks azure HOT 3
- question about output HOT 1
- Error while running tree.render() HOT 3
- Failed to execute 'getPointAtLength' on 'SVGGeometryElement': The element's path is empty. HOT 8
- np.float is deprecated HOT 1
- RuntimeWarning: invalid value encountered in cast HOT 4
- to_graphviz() returns NoneType HOT 2
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 chaid.