gaglia88 / sparker Goto Github PK
View Code? Open in Web Editor NEWSparkER: an Entity Resolution framework for Apache Spark
License: GNU General Public License v3.0
SparkER: an Entity Resolution framework for Apache Spark
License: GNU General Public License v3.0
This library is pretty incredible, just have a bit of a concern I wanted to report.
My use case is as follows:
Take 2 CSV's containing customer data that should contain 1 or more fields that are matchable (an identifier for example)
customers1.csv:
id | name | random_field_1 | random_field_2 | random_field_3 | etc... |
---|---|---|---|---|---|
1 | 555-333-222 | ... | ... | ... | |
2 | 222-555-111 | ... | ... | ... | |
3 | microsoft | 333-111-888 | ... | ... | ... |
customers2.csv:
identifier | customer_name | random_field_1 | random_field_2 | random_field_3 | etc... |
---|---|---|---|---|---|
5 | google inc | 555 | ... | ... | ... |
10 | facebook corp | 111 | ... | ... | ... |
300 | microsoft industries | 555 | ... | ... | ... |
[
{'cluster_id': 1, 'keys': ['1_name', '2_customer_name'] 'entropy': 1.4},
{'cluster_id': 2, 'keys': ['1_id', '2_id', '1_random_field_1', '2_random_field_1', '1_random_field_2', '2_random_field_2', (etc...)], 'entropy': 9.5},
]
[
{'block_id': 0, 'profiles': [{0}, {0}], 'entropy': 1.4, 'cluster_id': -1, 'blocking_key': ''}
{'block_id': 1, 'profiles': [{1,2}, {1}], 'entropy': 9.5, 'cluster_id': -1, 'blocking_key': ''}
],
cluster_id
2 would be greater than cluster_id
1.[[0, 100, 10.5]
[1, 101, 10.5]
[2, 101, 20.8]]
You will notice that the higher weight goes to the match that has the higher entropy.
This doesn't seem correct to me since lower entropy should give higher weight.
Using standard library I was able to get around 80-90 perfect matches. Once I edited calc_weights
function in common_node_pruning.py
from calc_chi_square(...) * entropies[neighbor_id]
to calc_chi_square(...) / entropies[neighbor_id]
I was able to get 100 perfect 1to1 matches.
Does the division instead of multiplication here make sense, and is my assumption of lower entropy should be greater match correct?
Please let me know :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.