This release is a pre-release and may not be stable for production use.
Curators
A package for action selection and optimization.
Action types currently supported are context-naive, contextual, and sequential.
- Context-naive actions, which we'll call simply "naive" assumes the expected return is simply a function of the action itself. This is commonly referred to as a multi-armed bandit.
- Contextual actions enable use of observable variables to further improve the accuracy of the expected return of actions. For now, we enabled integration of clustering algorithms with a traditional bandit. Longer term, this will grow into more broad support for contextual bandits.
- Sequential algorithms extend the previous optimizations of single actions into the optimization of multiple ordered actions.
To facilitate maintaining the mathematical purity of classic models while maintaining practical interfaces for real world actions, objects are categorized into three object types: models, agents, and applications.
- Model - distinct and mathematically pure units of learning.
- Agent - integration of identically shaped models into a single interface.
- Application - tooling around connecting an agent to some real-world medium.
Installation
Pip
pip install curators
Package Build and Install
We use Python's setuptools to handle installation.
You can build the wheel and install it elsewhere manually using:
# from within this repo's root:
python setup.py bdist_wheel
# from within your other project that you're installing this wheel into:
pip install curators-0.0.1-py3-none-any.whl
Or you can install it directly from Github usisng the library name
git+ssh://git@github.com/BellwethrInc/curators.git as you would
install any other library through either a pip install [x] or including it
directly in your requirements.txt file.
Or if you prefer using https rather than ssh to connect to github,
git+https://github.com/BellwethrInc/curators.git works as well.
After we get proper releases set up, you'll be able to do
git+ssh://git@github.com/BellwethrInc/curators.git@v0.0.0#egg=curators
to specify a release as well.
Coming soon:
- proper versioning
As a Developer
Within this repo's root, create a virtualenv (or your conda equivalent) and install the dependencies.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Testing
Within a developer's environment, run all tests simply with
python -m unittest
Coverage
To see testing coverage, run
coverage run -m unittest discover # to generate coverage data
coverage report # to render the coverage data to console
coverage-badge -o docs/images/coverage.svg # update the coverage badge
Docs
To build docs
- within your venv
- pip install -r requirements.txt
cd docsmake html
Or if you're within pycharm:
- be sure your current environment also has the docs requirements installed
pip install -r docs/requirements.txt
- Create and configure a new "Spinx Task" configuration:
- Be sure
htmlis the command selected - select
docs/sourceas the source directory - select
docs/builddirectory.- Make this directory yourself or let sphinx make it for you.
- this path is within
.gitignoreso don't worry about stepping on toes within your build dir.
- Be sure
- rerun docs build as needed
docs/build/index.htmlis the file you want to open in your browswer
Notebooks
When running the notebooks, you need to either be working within a virtualenv with curators installed or have the root of this repo within your environment's PATH or PYTHONPATH. For example,
PYTHONPATH="${PYTHONPATH}:path/to/this/repos/root" jupyter notebook
will leave the rest of your environments unaffected while giving python access to this repo directly.
Release files for curators 0.0.0b4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| curators-0.0.0b4.tar.gz | 15.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| curators-0.0.0b4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:32.9 kB
Release files / curators-0.0.0b4.tar.gz
| Download URL | curators-0.0.0b4.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c7a4ca7641ccdc5de99c82e039a637d0af167dcda469a46a8f22b49a71bbe03
|
|
BLAKE2b-256 checksum How to use checksums |
185f3abd922c35e7dfaff203e1a8562c249eeac14d638301d72fa0319d3ec0e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8
|
Release files / curators-0.0.0b4-py3-none-any.whl
| Download URL | curators-0.0.0b4-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2dd0c6ed361c8ff1f2498a7d51be926f1ddc3e95378662ceab361b5981c4ce1c
|
|
BLAKE2b-256 checksum How to use checksums |
08285e8abaededa37e35e9973fe6dbacd005aa712900c27e8f06c8022f7bc9f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8
|