Comments (3)
I just realize, this might be connected to #13.
from pdpbox.
Please upgrade, the bug has already been fixed.
# center the plot
if center:
pdp_y -= pdp_y[0]
for col in feature_grids[1:]:
ice_lines[col] -= ice_lines[feature_grids[0]]
ice_lines[feature_grids[0]] = 0
from pdpbox.
There is still problem with this line. See this error stack:
File "/usr/local/lib/python3.6/site-packages/pdpbox/pdp.py", line 416, in pdp_plot
count_ax=_count_ax, **pdp_plot_params)
File "/usr/local/lib/python3.6/site-packages/pdpbox/pdp_plot_utils.py", line 137, in _pdp_plot
ice_lines[col] -= ice_lines[feature_grids[0]]
File "/usr/local/lib/python3.6/site-packages/pandas/core/ops.py", line 1390, in f
result = method(self, other)
File "/usr/local/lib/python3.6/site-packages/pandas/core/ops.py", line 1583, in wrapper
result = safe_na_op(lvalues, rvalues)
File "/usr/local/lib/python3.6/site-packages/pandas/core/ops.py", line 1529, in safe_na_op
return na_op(lvalues, rvalues)
File "/usr/local/lib/python3.6/site-packages/pandas/core/ops.py", line 1507, in na_op
result = masked_arith_op(x, y, op)
File "/usr/local/lib/python3.6/site-packages/pandas/core/ops.py", line 1009, in masked_arith_op
com.values_from_object(yrav[mask]))
TypeError: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead.
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.