Skip to main content

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`

Metadata

Release files for td-ml-probabilistic-unification 0.0.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for td-ml-probabilistic-unification 0.0.24
File Size Uploaded
td_ml_probabilistic_unification-0.0.24.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for td-ml-probabilistic-unification 0.0.24
File Interpreter ABI Platform
td_ml_probabilistic_unification-0.0.24-py3-none-any.whl Python 3 none any Details

Total release size: 27.2 kB

Release files / td_ml_probabilistic_unification-0.0.24.tar.gz

Download URL td_ml_probabilistic_unification-0.0.24.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f2a0d10aeb1fbacda66dbe03da3a6708812feb61812efe646955acac5c790a93
BLAKE2b-256 checksum
How to use checksums
36d046ca9f39d39aadce10dda08e338640d2a9bfaaf8182c863e083b82fbada5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / td_ml_probabilistic_unification-0.0.24-py3-none-any.whl

Download URL td_ml_probabilistic_unification-0.0.24-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17d12cf0c62e06db042333b06f5f5544c64a597446e6a2c568808dfab489439a
BLAKE2b-256 checksum
How to use checksums
efd5ab90f288dc143841efb2718f81b81ca7ce65c623527534dbb83642d9f037
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.0.24 This release

2 release files

0.0.23

2 release files

0.0.22

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page