Looking for a python developer
Budget: ₹600 – ₹1,500 INR
Hi,
I am trying to run the below code on my Mac using PyCharm and getting a lot of errors. I am referring to this blog (https://towardsdatascience.com/fuzzy-name-matching-with-machine-learning-f09895dce7b4) and their Github page (https://github.com/Christopher-Thornton/hmni).
I am trying to run below code
import hmni
matcher = hmni.Matcher(model='latin')
matcher.similarity('Alan', 'Al')
matcher.similarity('Alan', 'Al', prob=False)
matcher.similarity('Alan Turing', 'Al Turing', surname_first=False)
and getting below errors
Traceback (most recent call last):
File "/Users/user/folder/main.py", line 8, in <module>
matcher.similarity('Alan', 'Al')
File "/Users/user/folder/venv/lib/python3.8/site-packages/hmni/matcher.py", line 266, in similarity
sim = self.meta_inf(pair, features)
File "/Users/user/folder/venv/lib/python3.8/site-packages/hmni/matcher.py", line 418, in meta_inf
meta_features[0] = self.base_model_inf(base_features)
File "/Users/user/folder/venv/lib/python3.8/site-packages/hmni/matcher.py", line 413, in base_model_inf
y_pred = self.baseModel.predict_proba(x.reshape(1, -1))[0, 1]
File "/Users/user/folder/venv/lib/python3.8/site-packages/sklearn/utils/metaestimators.py", line 113, in <lambda>
out = lambda *args, **kwargs: self.fn(obj, *args, **kwargs) # noqa
File "/Users/user/folder/venv/lib/python3.8/site-packages/sklearn/pipeline.py", line 535, in predict_proba
Xt = transform.transform(Xt)
File "/Users/user/folder/venv/lib/python3.8/site-packages/sklearn/preprocessing/_data.py", line 506, in transform
if self.clip:
AttributeError: 'MinMaxScaler' object has no attribute 'clip'
I am trying to run the below code on my Mac using PyCharm and getting a lot of errors. I am referring to this blog (https://towardsdatascience.com/fuzzy-name-matching-with-machine-learning-f09895dce7b4) and their Github page (https://github.com/Christopher-Thornton/hmni).
I am trying to run below code
import hmni
matcher = hmni.Matcher(model='latin')
matcher.similarity('Alan', 'Al')
matcher.similarity('Alan', 'Al', prob=False)
matcher.similarity('Alan Turing', 'Al Turing', surname_first=False)
and getting below errors
Traceback (most recent call last):
File "/Users/user/folder/main.py", line 8, in <module>
matcher.similarity('Alan', 'Al')
File "/Users/user/folder/venv/lib/python3.8/site-packages/hmni/matcher.py", line 266, in similarity
sim = self.meta_inf(pair, features)
File "/Users/user/folder/venv/lib/python3.8/site-packages/hmni/matcher.py", line 418, in meta_inf
meta_features[0] = self.base_model_inf(base_features)
File "/Users/user/folder/venv/lib/python3.8/site-packages/hmni/matcher.py", line 413, in base_model_inf
y_pred = self.baseModel.predict_proba(x.reshape(1, -1))[0, 1]
File "/Users/user/folder/venv/lib/python3.8/site-packages/sklearn/utils/metaestimators.py", line 113, in <lambda>
out = lambda *args, **kwargs: self.fn(obj, *args, **kwargs) # noqa
File "/Users/user/folder/venv/lib/python3.8/site-packages/sklearn/pipeline.py", line 535, in predict_proba
Xt = transform.transform(Xt)
File "/Users/user/folder/venv/lib/python3.8/site-packages/sklearn/preprocessing/_data.py", line 506, in transform
if self.clip:
AttributeError: 'MinMaxScaler' object has no attribute 'clip'