-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Thanks for this great library. I followed the instruction in readme.md file and run the setup.
I get the following error when trying to test on the notebook "DataScope-Demo-1.ipynb":
...\datascope\importance\shapley.py in compute_shapley_1nn_mapfork(distances, utilities, provenance, units, world, null_scores, simple_provenance)
219 n_test = distances.shape[1]
220 null_scores = null_scores if null_scores is not None else np.zeros((1, n_test))
--> 221 all_importances = compute_all_importances_cy(unit_distances, unit_utilities, null_scores)
222
223 # Aggregate results.
datascope/importance/shapley_cy.pyx in datascope.importance.shapley_cy.compute_all_importances_cy()
ValueError: Buffer dtype mismatch, expected 'int_t' but got 'long long'
It seems there is an issue with type when calling the compute_all_importances_cy function. It expects integer but receives float(double?).
I tried to modify compute_all_importances_cy in shapley_cy.pyx but I had no luck to fix this bug.
Metadata
Metadata
Assignees
Labels
No labels