Skip to main content

Teradata Feature Store Client

Installation

You can install via pip. The minimum python version required is 3.6+

pip install tdfs

Usage

First, you'll need teradataml context:

from teradataml.context.context import *
import getpass
create_context('mycluster.teradata.com', 'my_user', getpass.getpass())

Next, use this context to get connection and instantiate Feature Store client:

from tdfs import FeatureStore
fs = FeatureStore(get_connection(), metadata_table = 'my_database.fs_metadata')

It will create metadata table if it doesn't exist.

Register feature groups

fs.register_feature_group(entity = 'patient', table = 'dm.cust_profile', entity_key_column = 'cust_id', features = {'Age':'Age'}, date_column = 'snapshot_dt')

Discover registered features

fs.list_entities()

fs.list_features('patient')

fs.get_feature_details('patient', 'Age')

Get feature set for training/evaluation/scoring

train_df = fs.get_featureset_df('patient','2021-07-12',['Age','DiPedFunc', 'TwoHourSerIns'])

train_pdf = train_df.to_pandas()

Metadata

Release files for tdfs 0.0.4

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

Source distribution (sdist)

Source distribution for tdfs 0.0.4
File Size Uploaded
tdfs-0.0.4.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tdfs 0.0.4
File Interpreter ABI Platform
tdfs-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / tdfs-0.0.4.tar.gz

Download URL tdfs-0.0.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3b01bcf4d7c70d28f579275f1fe7124a47a6440eb2592ece35a91b30bb746a33
BLAKE2b-256 checksum
How to use checksums
6e03696d55a923a3565c7eccad1251b424a177f169811a9b2c714b4a263df35b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release files / tdfs-0.0.4-py3-none-any.whl

Download URL tdfs-0.0.4-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1c78fc43c416bf39941f90be20b7066d0737a780396e70d9485f59a8b804243
BLAKE2b-256 checksum
How to use checksums
12623e7da9c760ba408904b577192bf02099448e4f68f0a20e4a5a672e2668f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

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