This is the code for "Vectors - The Math of Intelligence #3" By Siraj Raval on Youtube
This week's challenge is to use either the L1 or L2 norm to regularize a linear regression model. You can use this repositiory as a guide. Use any any dataset you'd like except for 'housing prices'. Kaggle is a pretty good place to find datasets. By doing this challenge you'll witness the 3 main ways vectors are used in ML (to represent input data, to represent our model weights, and to regularize our model). Bonus points if your code is well-documented. Good luck!
This is the code for this video on Youtube by Siraj Raval as part of The Math of Intelligence series. Basically, its just 2 pieces of code that I used to show an example. One compares the dot product operation to standard multiplication to show how linear algebra is faster when we have several numbers to calculate simultaneously. The other is just a simple neural network to show that vectors don't just represent data, they represent our model's learnings.
- numpy
Install missing dependencies with pip
Run python name_of_file.py
in terminal and it will run.
Credits go to trask for the code. I've merely created a wrapper to get people started.