jmschrei / apricot

apricot implements submodular optimization for the purpose of selecting subsets of massive data sets to train machine learning models quickly. See the documentation page: https://apricot-select.readthedocs.io/en/latest/index.html
MIT License
497 stars 48 forks source link

__init__() got an unexpected keyword argument 'pairwise_func' #26

Closed aresBlues closed 3 years ago

aresBlues commented 3 years ago

Getting the following error while calling the FacilityLocationSelection function

1 from apricot import FacilityLocationSelection 2 ----> 3 model = FacilityLocationSelection(6, pairwise_func='precomputed') 4 model.fit(route_map) 5

TypeError: init() got an unexpected keyword argument 'pairwise_func'

aresBlues commented 3 years ago

I faced this issue when I tested the Example B ipynb , during the FacilityLocationSelection(., pairwise_func='precomputed') step

jmschrei commented 3 years ago

That should be updated to be metric='precomputed'. Sorry about the inconvenience.

aresBlues commented 3 years ago

Thank you for the response. btw great package