Neural Networks

Creating a document that contains live code, equations, visualizations and narrative text can be done with interactive python notebook. Just create a file with the ipynb extension.

NumPy is the fundamental package for scientific computing in Python. The NumPy library contains multidimensional array and matrix data structures. It can be used to perform a wide variety of mathematical operations on arrays.

The difference between a Python list and a NumPy array: While Python lists can contain data types within a single list, all of the elements in the array should be the same. The mathematical operations that are meant to be performed on arrays would be extremely inefficient if the arrays weren’t homogeneous.

import numpy as np
a = np.array([1, 2, 3])

If you installed numpy and when running this get a "No module named 'numpy'" but "Requirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages, that’s because the location where it was installed is different from where you’re running this code. You can fix this by creating virtual envs and installing everything there. Or you can also select a different interpreter in the code editor that is the same as the location where the package got installed (pictured in the top right, version 3.10.12)

Untitled


Neural network: A form of machine learning that uses a layered representation of data. Each layer is made up of neurons.

Tensor flow - a free and open-source software library for machine learning and artificial intelligence. It can be used across a range of tasks but has a particular focus on training and inference of deep neural networks. Developed by Google brain team and most commonly used with Python but can be used with JS.

A tensor is a multilinear relationship between sets of algebraic objects within a vector space, think of it as a Rubik’s cube

Untitled

Video on neural networks from Algoexpert.io :

Project