Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add predict_fn_accept_dense_only to explain_instance when input is sparse but model takes dense #705

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 11, 2022

  1. Add predict_fn_accept_dense_only

    Add predict_fn_accept_dense_only to explain_instance.
    When data_row is scipy.sparse.matrix but the model was not trained with scipy.sparse.matrix, the predict_fn_accept_dense_only convert inverse to dense before call predict_fn (and then back to sparse after call predict_fn)
    Bin dbin@lbl.gov
    BinDong314 authored Nov 11, 2022
    Configuration menu
    Copy the full SHA
    1782a41 View commit details
    Browse the repository at this point in the history