πŸ“Week 4 - Lab Intro#

In this lab introduction we will briefly visit the topic of Machine Learning

Machine learning#

  • Have you ever heard of machine learning?

  • What is machine learning in your own words?

  • How can machine learning be used or how have you seen it be used?

Machine learning is a field of study in artificial intelligence concerned with the development and study of statistical algorithms that can learn from data and generalize to unseen data, and thus perform tasks without explicit instructions

Importing packages into python#

To import a package you want to use the import keyword. There are lots of packages that exist in python that allow us to program and do things more easily. Here are some examples of common packages in python:

import numpy as np
import matplotlib as plt
import statistics
from scipy import stats
#from scipy import *
  • as lets you give a package a nickname

  • The from keyword is used to import only a specified section from a module

  • The * is a statement used to import all the public names (functions, classes, and variables) from a module into the current namespace

Using packages you import#

print(np.pi)
3.141592653589793

Training a Neural Network Classifier in Python#

We will now go over a brief introduction to training a neural network classifier in Python, which can be found at the top of today’s lab assignment. We will be using google colab for this lab.