Back to Home

distributions_title

This package has functionality for different types of distribution frameworks. There is currently has functionality for Binomial and Guassian distributions.

Uploaded on pypi.org as part of an exercise for Udacity Machine Learning Engineer Nanodegree Program (Part 1).

Install:

pip install distributions_tl

pypi_distributions

Steps to upload to pypi

  1. Create all relevant files and folders
    • setup.py file
    • distributions_tl folder
    • Distribution.py
    • Binomial.py
    • Gaussian.py
    • __ init__.py (import Gaussian and Binomial)
    • license.txt (Opensource - MIT license)
    • README.md
    • setup.cfg (state name of README)
  2. In terminal go to relevant folder with setup.py
    cd Udacity_ML
    
  3. Create virtual environment and activate
    python -m venv ml_venv
    ./ml_venv/Scripts/activate
    
  4. Install package locally
    pip install .
    
  5. Check it runs in python terminal ((ANS: mean 10, standard deviation 7)
    python
    from distributions_tl import Gaussian, Binomial
    Gaussian(10,7)
    
  6. Upload to test.pypi cd Udacity_ML python setup.py sdist pip install twine twine upload --repository-url https://test.pypi.org/legacy/ dist/*

  7. Install locally and then repeat step 5
    pip install --index-url https://test.pypi.org/simple/ dsnd-probability
    
  8. Upload to pypi repository
    twine upload dist/*
    

About package

Distribution()

Attributes:

Methods:

Binomial(Distribution)

Attributes:

Methods:

Gaussian(Distribution)

Attributes:

Methods: