This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import warnings | |
| import matplotlib.pyplot as plt | |
| from sklearn.datasets import fetch_openml | |
| from sklearn.exceptions import ConvergenceWarning | |
| from sklearn.model_selection import train_test_split | |
| from sklearn.neural_network import MLPClassifier | |
| import numpy as np | |
| # Load data from https://www.openml.org/d/554 | |
| X, y = fetch_openml("mnist_784", version=1, return_X_y=True, as_frame=False) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| import matplotlib.pyplot as plt | |
| # Our matrix multiplication | |
| A = [[8,10],[4,6]] | |
| B = [6,10] | |
| c1_vals = [] | |
| c2_vals = [] |