Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rasbt
GitHub Repository: rasbt/machine-learning-book
Path: blob/main/ch01/ch01.ipynb
1247 views
Kernel: Python 3 (ipykernel)

Machine Learning with PyTorch and Scikit-Learn

-- Code Examples

Package version checks

Add folder to path in order to load from the check_packages.py script:

import sys sys.path.insert(0, '..')

Check recommended package versions:

from python_environment_check import check_packages d = { 'numpy': '1.21.2', 'scipy': '1.7.0', 'matplotlib': '3.4.3', 'sklearn': '1.0', 'pandas': '1.3.2' } check_packages(d)
[OK] Your Python version is 3.9.6 | packaged by conda-forge | (default, Jul 11 2021, 03:35:11) [Clang 11.1.0 ] [OK] numpy 1.21.2 [OK] scipy 1.7.0 [OK] matplotlib 3.4.3 [OK] sklearn 1.0 [OK] pandas 1.3.2

Chapter 1 - Giving Computers the Ability to Learn from Data

Overview



from IPython.display import Image

Building intelligent machines to transform data into knowledge

...

The three different types of machine learning

Image(filename='./figures/01_01.png', width=500)
Image in a Jupyter notebook


Making predictions about the future with supervised learning

Image(filename='./figures/01_02.png', width=500)
Image in a Jupyter notebook


Classification for predicting class labels

Image(filename='./figures/01_03.png', width=300)
Image in a Jupyter notebook


Regression for predicting continuous outcomes

Image(filename='./figures/01_04.png', width=300)
Image in a Jupyter notebook


Solving interactive problems with reinforcement learning

Image(filename='./figures/01_05.png', width=300)
Image in a Jupyter notebook


Discovering hidden structures with unsupervised learning

...

Finding subgroups with clustering

Image(filename='./figures/01_06.png', width=300)
Image in a Jupyter notebook


Dimensionality reduction for data compression

Image(filename='./figures/01_07.png', width=500)
Image in a Jupyter notebook


An introduction to the basic terminology and notations

Image(filename='./figures/01_08.png', width=500)
Image in a Jupyter notebook


A roadmap for building machine learning systems

Image(filename='./figures/01_09.png', width=700)
Image in a Jupyter notebook


Preprocessing - getting data into shape

...

Training and selecting a predictive model

...

Evaluating models and predicting unseen data instances

...

Using Python for machine learning

...

Installing Python packages

...

Summary

...