Comments (3)
Hi @NMRobert,
Thanks for informing the issue!
I notice that you are using Python3, while I used Python2 when I built the package. So the issue might be, rules are stricter in Python3. For example, you can't compare None with an integer. And this is the reason why you got the error. Because when the model is not a classifier, I set n_classes equal to None. Now I have changed it to 0. So now everything should be fine. πΈ
It is so good to have someone help test PDPbox using Python3. If you find any issues in the further, feel free to open an issue.
from pdpbox.
Great - I suspected it might be a python 2/3 issue! Your fix resolves the issue on the call in question.
I have found at least 1 more python3 related issue, would you prefer I open individual tickets for them, or collate everything in one place once I've found a couple? Cheers.
from pdpbox.
@NMRobert,
I think it is great to collect everything in one place and I will try to fix them.
Thank you so much! π―
from pdpbox.
Related Issues (20)
- git clone https://github.com/SauceCat/PDPbox.git $ cd PDPbox $ python setup.py install
- PDP plot: use train or test set in pdp_isolate()? HOT 4
- pdp.pdp_plot for multiple features HOT 1
- The provided example do not work HOT 1
- Provided example actual_plot: TypeError: predict() argument after ** must be a mapping, not NoneType HOT 1
- How to save pdp and axis values in a list from pdp_isolsate. HOT 1
- Matplotlib version? HOT 8
- How to adjust the fontsize of xlabel, ylabel, xticks and yticks? HOT 1
- Replace the value grid calculation by removing nans HOT 1
- Failed building wheel for matplotlib HOT 5
- helpοΌ
- ValueError: train and valid dataset categorical_feature do not match. HOT 1
- How to get figures without actual drawing ?
- Use scikit-learn instead of sklearn HOT 5
- Making PDPplots work with XGBoost Distribution
- After I draw the image using the following methods, I want to change the name of the x-axis and y-axis separately.What should I do? HOT 1
- Request help in using the library HOT 2
- If the column label of the feature is Chinese, it cannot be displayed
- Is PDP visualization suitable for binary variables?
- get_dataset import error
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 pdpbox.