Skip to main content

An internal Quantile development kit for making working with data easier

Project description

Quantile Data Kit 🔍

Publish to pypi

How to deploy a new version of the QDK?

  1. Update the package version in setup.py.
  2. Run the Makefile make publish

Components

There are four types of base components in the QDK.

  1. LoadComponent. Takes nothing as input and outputs a DataFrame.
  2. TransformComponent. Takes a DataFrame as input and outputs a DataFrame.
  3. TrainingComponent. Takes data and a model as input and outputs a trained model.
  4. InferenceComponent. Takes data and a model as input and ouputs prediction data.

Adding a new component?

Adding a new component to the QDK requires the following steps:

  1. Type of component: Decide which type of the four components above you are adding.
  2. Add component: Once you decide which type of component you are adding, add in the corresponding folder (e.g. qdk/loader) a new Python file that inherits from the parent component. In this file you can optionally overwrite input_defs, output_defs and config_schema. When adding a new component, you are required to add a classmethod with the same name as the compute_function attribute on the parent class. The keys in the config_schema are injected into the parameters of the compute function. Lastly, you need to import the new component to qdk/__init__.py. This allows you to import it from top-level.
  3. Write tests: To continuously check the robustness of the components, we highly encourage you to add tests using pytest. The tests can be added at qdk/tests. Reminder to prefix the folder, files and functions with test_. One is able to test the components using either VScode testing or the terminal (e.g. with pytest -s qdk/tests/test_loaders).

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

quantile-data-kit-0.0.48.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

quantile_data_kit-0.0.48-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

Details for the file quantile-data-kit-0.0.48.tar.gz.

File metadata

  • Download URL: quantile-data-kit-0.0.48.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for quantile-data-kit-0.0.48.tar.gz
Algorithm Hash digest
SHA256 cd38b360ff2b2ec62e2f8298bae1b8b5a239a5caa7b51ff4266de116f5b428d2
MD5 2a6dd9287a90e708303dfcbfd6cbe871
BLAKE2b-256 768bc4f62e5cf5f004297e045c7b0954d92cd73006457c929439a9f11093d0a1

See more details on using hashes here.

File details

Details for the file quantile_data_kit-0.0.48-py3-none-any.whl.

File metadata

File hashes

Hashes for quantile_data_kit-0.0.48-py3-none-any.whl
Algorithm Hash digest
SHA256 24539afe70ff512da32356642084d97130d3c36eb6808e41773611f8b09a6820
MD5 67a6c5b1bf2a3ee43266bde74dcc68e2
BLAKE2b-256 40e7bfb09bda85a2c584e5351a778206367b71d98c70c2fdffcd95db79619358

See more details on using hashes here.

Supported by

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