Skip to content

Conversation

@BinDong314
Copy link

Add predict_fn_accept_dense_only to explain_instance.

When data_row (of explain_instance) 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 [email protected]

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 [email protected]
@BinDong314
Copy link
Author

@marcotcr since this only involves a few lines of code change.
Would you mind help to review and merge it?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant