This repository contains Jupyter Notebooks explaining various concepts in Mathematics used for Machine learning.
This repository covers following concepts in mathematics used for Machine Learning:
- Python - Programming language (version >= 3.11).
Editor and their related libraries:
- jupyterlab - Jupyter lab editor (http://localhost:8888/lab)
- notebook - Jupyter Notebook editor (http://localhost:8888/tree)
- black - Code Formatter
- isort - import package formatting and sorting
- ipywidgets - Jupyter Lab widgets
- matplotlib
- seaborn
- wordcloud
- numpy
- scipy
- pandas
- statsmodels
- scikit-learn
Steps to setup mathematics-for-machine-learning on your local machine.
Clone this repository and traverse to the project folder using below commands:
git clone https://github.com/dheemanth-bhat/mathematics-for-machine-learning.git
cd mathematics-for-machine-learningCreate virtual environment.
python -m venv .venvActivate virtual environment.
.venv\Scripts\activatepip install -r requirements.txtstart_jupyter_lab.batClick below link to open Jupyter lab on the browser (RECOMMENDED):
Click below link to open Jupyter notebook on the browser (NOT RECOMMENDED):
Steps to generate PDF file from .ipynb file.
First navigate to the IPython file for which PDF file needs to be generated:
To generate PDF file for mathematics-for-machine-learning/3_Linear_Algebra_and_Calculus/Math_for_ML_Handbook_v2.ipynb
cd 3_Linear_Algebra_and_Calculusjupyter nbconvert Math_for_ML_Handbook_v2.ipynb --to html --no-prompt --template=templatesThis generates Math_for_ML_Handbook_v2.html file is the same location as Math_for_ML_Handbook_v2.ipynb
- Open the
Math_for_ML_Handbook_v2.htmlfile in a browser (Google Chrome browser is recommended). - Press
Ctrl + Pto preview the HTML file as PDF in the browser. - (Optional) customize the print settings if required.
- Click on
Savebutton to download the HTML file as PDF. Math_for_ML_Handbook_v2.pdffile will get downloaded in your chosen location.