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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

__init__() got an unexpected keyword argument 'pairwise_func'

aresBlues opened this issue · comments

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'

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

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

Thank you for the response. btw great package