The code should run with no issues using Python versions 3.6 and 3.7.
Matplotlib package must be installed.
Purpose of this Udacity Data Science Nanodegree project is to learn how to built a multi-class (and multi-module) package based on Object Oriented programming.
And to upload a self built 'distributions_dirkkadijk' package to PyPi (pypi.org) which is now available on:
https://pypi.org/project/distributions-dirkkadijk/0.1/#files
You can find the lessons, functionality and used data files in the data scientist nanodegree term 2 GitHub repo: https://github.com/udacity/DSND_Term2/tree/master/lessons/ObjectOrientedProgramming.
In folder you'll find three files:
-
Generaldistribution.py
: Generic distribution class for calculating and visualizing a probability distribution. -
Gaussiandistribution.py
: Gaussian distribution class for calculating and visualizing a Gaussian distribution. -
Binomialdistribution.py
: The 3rd package in the distributions_dirkkadijk package is with a new class called Binomial distribution class for calculating and visualizing a Binomial distribution.
You can click on the package py-files to look at how the 'Distribution class' and 'Gaussian class' are modularized into different files. E.g. the Gaussiandistribution.py imports Distribution class from the Generaldistribution.py file. The line of code:
from Generaldistribution import Distribution
essentially pastes the Distribution code to the top of the Gaussiandistribution file when you run the code.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. Please refer to Udacity Terms of Service for further information.