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

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

Closed
aresBlues opened this issue Aug 1, 2021 · 3 comments
Closed

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

aresBlues opened this issue Aug 1, 2021 · 3 comments

Comments

@aresBlues
Copy link

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
Copy link
Author

aresBlues commented Aug 1, 2021

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

@jmschrei
Copy link
Owner

jmschrei commented Aug 2, 2021

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

@aresBlues
Copy link
Author

Thank you for the response. btw great package

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

No branches or pull requests

2 participants