Skip to main content

Probabilistic Unification

Project description

td-ml-probabilistic-unification

Introduction

The td-ml-probabilistic-unification is a Python package designed for Scalable Probabilistic Unification within the Treasure Data environment. It provides functionality to unify and cluster records probabilistically based on various attributes, making it useful for a wide range of data integration and analysis tasks.

In order to perform probabilistic unification using this package, you should have an input table containing the data you want to unify. The package will use the specified configuration parameters to perform probabilistic unification and generate an output table with clustered records.

Configuration

Before using this package, you need to set the following environment variables:

# Configuration variables
TD_SINK_DATABASE = os.environ.get('TD_SINK_DATABASE')
TD_API_KEY = os.environ.get('TD_API_KEY')
TD_API_SERVER = os.environ.get('TD_API_SERVER')

## Profiles id column name
id_col = os.environ.get('id_col')
## cluster id column name by default : cluster_id
cluster_col_name = os.environ.get('cluster_col_name')

## convergence threshold for SoftImpute in case of missing values

convergence_threshold = float(os.environ.get('convergence_threshold'))

## The cluster threshold is a parameter that determines the similarity level required for two entities to be considered part of the same cluster. When performing hierarchical clustering, entities are merged into clusters based on their similarity. The cluster threshold sets a limit on how similar two entities must be to belong to the same cluster.

## Example: If set to 0.9, entities with a similarity level of 0.9 or higher will be grouped into the same cluster.
cluster_threshold = float(os.environ.get('cluster_threshold'))

## Type of string matching technique used.
string_type = os.environ.get('string_type')

## Binary variables to fill missing values or not in adjacency matrix
fill_missing = os.environ.get('fill_missing')

## it is fetched column dictionary with weightage which are being used in Unification
feature_dict = json.loads(os.environ.get('feature_dict'))

## blocking and output table name
blocking_table = os.environ.get('blocking_table')
output_table = os.environ.get('output_table')

## number of records to be used for a single docker image , below parms are being used for wf optimisation
record_limit = int(os.environ.get('record_limit'))
lower_limit = int(os.environ.get('lower_limit'))
upper_limit = int(os.environ.get('upper_limit'))
range_index = os.environ.get('range_index')
paralelism = os.environ.get('paralelism')
input_table = blocking_table

'''python




Thank you for choosing td-ml-probabilistic-unification for your probabilistic unification needs! 📊🚀

`Copyright © 2022 Treasure Data, Inc. (or its affiliates). All rights reserved`

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

td_ml_probabilistic_unification-0.0.22.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file td_ml_probabilistic_unification-0.0.22.tar.gz.

File metadata

File hashes

Hashes for td_ml_probabilistic_unification-0.0.22.tar.gz
Algorithm Hash digest
SHA256 0a7a058c796c000c4219f51332ec92594bc0ee2ea725de394d690b5ab43d7ff4
MD5 c0b51923e37cb554e2db78370d883558
BLAKE2b-256 6a004a71bea75e66d54c3c3d6ba43b4e802fe4a7cc2d47418b1dd32b8a805e2f

See more details on using hashes here.

File details

Details for the file td_ml_probabilistic_unification-0.0.22-py3-none-any.whl.

File metadata

File hashes

Hashes for td_ml_probabilistic_unification-0.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 3af85bf4c83f06efee1af34ee146df50336c087de6567a8805c094dac1fe17d1
MD5 f9a4ff6f978dda20c01a6083718522b6
BLAKE2b-256 aa1c53b49bddf2d7968151605f5b759e16dd41fabbf450a8c5a4626c9942d5af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page