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

missing value is not working and it is default to 0 even if we change the value. #180

Open
selva221724 opened this issue Aug 18, 2022 · 1 comment

Comments

@selva221724
Copy link

compareModule = rl.Compare()
compareModule.string('FullName', 'FullName', method='jarowinkler', threshold=0.95,
                     label='FullName')
compareModule.string('FullAddress', 'FullAddress', threshold=0.85, label='FullAddress',
                     method='jarowinkler')

compareModule.exact('DOB', 'DOB', label='DOB', missing_value=0.5)
compareModule.exact('Phone', 'Phone', label='Phone', missing_value=0.5)
compareModule.exact('Email', 'Email', label='Email', missing_value=0.5)

I am trying to use the missing_value, but it is returning 0 when there is a missing value in the comparison. I am using the latest version 0.15, no improvements still? any help will be appreciated !!

image

@selva221724
Copy link
Author

selva221724 commented Aug 18, 2022

Found a solution !!!

find the compare.py in your python environment \Lib\site-packages\recordlinkage\compare.py and edit the following with your desired value, it is a temp fix, not long-term. I needed 0.5

replace missing_value=0.0 with missing_value=0.5

Again it is a temp fix, not the correct one please
image

For the best correction, remove the default value of missing_value and declare the missing value every time when you use the string, exact..etc.

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

1 participant