Skip to content
Snippets Groups Projects
Commit a0233e5f authored by corentin's avatar corentin
Browse files

comments

parent 2f975669
Branches
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ def run_mlp_training(data_train, labels_train, data_test, labels_test, d_h, lear
d_in = data_train.shape[1]
d_out = 10 #we can hard code it here or len(np.unique(label_train))
#Random initialisation of weights
#Random initialisation of weights Xavier initialisation
w1 = np.random.randn(d_in, d_h) / np.sqrt(d_in)
b1 = np.zeros((1, d_h))
w2 = np.random.randn(d_h, d_out) / np.sqrt(d_h)
......@@ -175,7 +175,7 @@ if __name__ == '__main__':
X_train, X_test, y_train, y_test = read_cifar.split_dataset(data, labels, 0.9)
d_in, d_h, d_out = 3072, 64, 10
learning_rate = 0.1
num_epoch = 100
num_epoch = 300
# #Initialisation
# w1 = np.random.randn(d_in, d_h) / np.sqrt(d_in)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment