Skip to main content

Miscellaneous Statistical/Machine Learning tools

Project description

mlsauce


Miscellaneous Statistical/Machine learning stuff.

PyPI PyPI - License Downloads Conda Downloads
Documentation

Contents

Installation for Python and R | Package description | Quick start | Contributing | Tests | Dependencies | Citing mlsauce | API Documentation | References | License

Installation (for Python and R)

Python

  • 1st method
pip install mlsauce --verbose
  • 2nd method: from Github, for the development version
pip install git+https://github.com/Techtonique/mlsauce.git --verbose
  • 3r method: using conda
conda install -c conda-forge mlsauce 

(Note to self or developers: https://github.com/conda-forge/mlsauce-feedstock and https://conda-forge.org/docs/maintainer/adding_pkgs.html#step-by-step-instructions)

R

Only for Linux, for now. Windows users can envisage using WSL, the Windows Subsystem for Linux.

From GitHub

remotes::install_github("Techtonique/mlsauce_r") # the repo is in this organization

From R-universe

install.packages('mlsauce', repos = c('https://techtonique.r-universe.dev',
'https://cloud.r-project.org'))

General rule for using the package in R: object accesses with .'s are replaced by $'s. R Examples can be found in the package, once installed, by typing (in R console):

?mlsauce::AdaOpt

For a list of available models, visit https://techtonique.github.io/mlsauce/.

Docker

make docker-build ## Build Docker image for mlsauce
make docker-run-examples  # test thoroughly
make docker-pypi-release  # Run an interactive shell inside the mlsauce Docker container

Package description

Miscellaneous Statistical/Machine learning stuff. See next section.

Quick start

Examples can be found here on GitHub. You can also read about this package here, and in particular for LSBoost: https://thierrymoudiki.github.io/blog/#LSBoost.

Contributing

Your contributions are welcome, and valuable. Please, make sure to read the Code of Conduct first. If you're not comfortable with Git/Version Control yet, please use this form to provide a feedback.

In Pull Requests, let's strive to use black for formatting files:

pip install black
black --line-length=80 file_submitted_for_pr.py

A few things that we could explore are:

  • Enrich the tests
  • Continue to make mlsauce available to R users --> here
  • Any benchmarking of mlsauce models can be stored in demo (notebooks) or examples (flat files), with the following naming convention: yourgithubname_ddmmyy_shortdescriptionofdemo.[py|ipynb|R|Rmd]

Tests

Ultimately, tests for mlsauce's features will be located here. In order to run them and obtain tests' coverage (using nose2), you'll do:

  • Install packages required for testing:
pip install nose2
pip install coverage
  • Run tests and print coverage:
git clone https://github.com/thierrymoudiki/mlsauce.git
cd mlsauce
nose2 --with-coverage
  • Obtain coverage reports:

At the command line:

coverage report -m

or an html report:

coverage html

Note to self and developpers: https://conda-forge.org/docs/maintainer/adding_pkgs.html#step-by-step-instructions

API Documentation

Dependencies

  • Numpy
  • Scipy
  • scikit-learn
  • querier

Citation

@misc{moudiki2019mlsauce,
author={Moudiki, Thierry},
title={\code{mlsauce}, {M}iscellaneous {S}tatistical/{M}achine {L}earning stuff},
howpublished={\url{https://github.com/thierrymoudiki/mlsauce}},
note={BSD 3-Clause Clear License. Version 0.x.x.},
year={2019--2020}
}

References

License

BSD 3-Clause © Thierry Moudiki, 2019.

Credits

This package was created with Cookiecutter and the project template.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlsauce-0.38.0.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlsauce-0.38.0-cp311-cp311-macosx_10_9_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

Details for the file mlsauce-0.38.0.tar.gz.

File metadata

  • Download URL: mlsauce-0.38.0.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for mlsauce-0.38.0.tar.gz
Algorithm Hash digest
SHA256 43af35e1f09ba6a70ca042d1dd4061a40c5660ad35ca299f5d5629227ea00c64
MD5 c97993b636605c203bd9355a2247e5f4
BLAKE2b-256 b907481174fb2d64edbbb57c3632975b49973510a61ca2a93d82f33419d42c96

See more details on using hashes here.

File details

Details for the file mlsauce-0.38.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mlsauce-0.38.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f4d45ecb115229a9fc3f2351429063d9e71b41f9d157468bbe30bf78f513b499
MD5 8c5a905593fbf2dcb55dec8457deab6a
BLAKE2b-256 d94335829241204429bb65978207e606c4bcab607dffbd01d443d7d948809b06

See more details on using hashes here.

Supported by

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