Skip to main content

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

# ayx-learn

A foundation of [scikit-learn](https://scikit-learn.org/stable/) compatible data science tools, such as Transformers, that both Alteryx Assisted Modeling and Code Fee Tools are built on.

## Source code organization

` . ├── README.md ├── ayx_learn: Source code for the ayx_learn package. │   ├── cmd: CLI commands that enable transformers and other functions to be used directly from the command-line. │   ├── transformers: Transformer source code. │   └── utils: Utility functions, such as validation. ├── docs: Sphinx documentation. ├── examples: CLI examples that use ayx_learn/cmd and DVC. ├── notebooks: Jupyter notebooks. ├── requirements-dev.txt: Requirements for development env. ├── requirements.txt: Requirements for building and running in a production env. ├── setup.py ├── tests │   └── unit: pytest unit tests. └── tox.ini: Ini file for tox. `

## Code standards

ayx-learn follows the [Alteryx Python Code Standards](https://alteryx.quip.com/qR3kAG4OA32X/Python-Code-Standards)

## Error handling and Logging

Errors/exceptions in ayx-learn follow the Message and Raise and Transformer patterns described in the blog at [Exceptional logging of exceptions in Python](https://www.loggly.com/blog/exceptional-logging-of-exceptions-in-python/).

Following the recommendations at, [Configuring Logging for a Library](https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library), a NullHandler has been initialized at ayx_learn module scope. Clients of ayx-learn can easily provide a logging handler that will override the NullHandler by initializing a handler in the client. E.g.

` import logging logging.basicConfig(filename='example.log',level=logging.DEBUG) `

## Testing

Unit tests are written using [pytest](https://docs.pytest.org/) and are located in ./tests/unit.

[tox](https://tox.readthedocs.io/) can be used for creating a virtualenv and automatically running the pytest unit tests.

## Examples

A set of CLI examples based on ayx_learn/cmd that use [DVC](https://dvc.org/) for managing data, creating, and running pipelines.

Usage

` cd examples/titanic dvc pull dvc repro step_2.csv.dvc `

To clean-up data files

` dvc remove -o *.dvc `

## Documentation

ayx-learn follows the [Alteryx Python Documentation Standards](https://alteryx.quip.com/bFgiAZThHaJv/Python-Documentation-Standards).

See [README](docs/README.md).

Metadata

Release files for ayx-learn 0.0.1.134996

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

Source distribution (sdist)

Source distribution for ayx-learn 0.0.1.134996
File Size Uploaded
ayx_learn-0.0.1.134996.tar.gz 12.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ayx-learn 0.0.1.134996
File Interpreter ABI Platform
ayx_learn-0.0.1.134996-py3-none-any.whl Python 3 none any Details

Total release size: 43.4 kB

Release files / ayx_learn-0.0.1.134996.tar.gz

Download URL ayx_learn-0.0.1.134996.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cbdf3a438375a917701fea2fb8d6351844ab9d726138a1f04fd671057cdd1465
BLAKE2b-256 checksum
How to use checksums
de8e64037a5e1f372616d34bd746e8a30bb5194c66a0d68b54905bda04fc3f68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/35.0.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2

Release files / ayx_learn-0.0.1.134996-py3-none-any.whl

Download URL ayx_learn-0.0.1.134996-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0a5013dbb7ee3ce433cd68099bdb1d51abbffe36d7b0579276cd1ba13079ee1
BLAKE2b-256 checksum
How to use checksums
691579827a40ebd3ad66ade5862c09d5242e4754f3d4803cbba16e5832140331
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/35.0.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2
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