This file contains 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
""" | |
Course: Applications of NN (CpE - 520) | |
Homework Assignment 9 | |
""" | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import torch |
This file contains 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
# solving parity-3 problems using numpy only | |
from os import error | |
import numpy as np | |
import math | |
np.random.seed(1) | |
def relu(x): | |
return np.maximum(0, x) |