GithubHelp home page GithubHelp logo

Comments (3)

jmoberreuter avatar jmoberreuter commented on August 13, 2024

I just realize, this might be connected to #13.

from pdpbox.

SauceCat avatar SauceCat commented on August 13, 2024

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.

basaks avatar basaks commented on August 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.