Skip to content

Latest commit

 

History

History
50 lines (43 loc) · 2.21 KB

File metadata and controls

50 lines (43 loc) · 2.21 KB

Tools And Libraries

  • Jupyter
    • Integrated development environment (IDE) where you type your code https://jupyter.org/
    • It lets you execute partial lines of the code which is useful for ML
pip install notebook
  • Scikit-learn library
    • Provides common algorithms
  • Numpy library
    • NumPy is an open source mathematical and scientific computing library for Python programming tasks. The name NumPy is shorthand for Numerical Python. The NumPy library offers a collection of high-level mathematical functions including support for multi-dimensional arrays, masked arrays and matrices. - techtarget.com
  • Pandas library
    • Data analysis which provides a concept called data frame, simliar to an Excel spreadsheet with rows and columns
  • MatPlotLib library
    • Two dimentional library for creating graphs and plots
  • Anaconda
  • Kaggle.com

Prerequisites

  • Install Anaconda, I still needed to manually install Jupyter and required libraries
--- text classification
pip install notebook pandas sklearn

--- image recognition
pip install tensorflow       (this installed keras)
pip install split-folders opencv-python 
pip install matplotlib
jupyter notebook
  • Create Jupyter notebook, by default it will open to your users directory, I created the folder ml-notebooks, from the GUI selected New -> Python 3 ipykernal
  • Rename the notebook from Untitled to be something related to your model, as always naming things is hard so I used HelloWorld like Mosh's example :D

Jupyter Shortcuts

Command mode (press ESC to enable)

  • b, insert new cell below
  • a, insert a new cell above
  • d d, delete cell
  • SHIFT TAB on a method to show its tooltip
  • CTRL ENTER with cell active, runs just that cell and doesnt add a new cell below