From ff0ad89d010414aabe8f099eab3f4a75b286d259 Mon Sep 17 00:00:00 2001
From: Muniz Silva Samuel <samuel.muniz-silva@ecl21.ec-lyon.fr>
Date: Thu, 27 Oct 2022 17:39:27 +0000
Subject: [PATCH] Upload New File

---
 mlp.py | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 mlp.py

diff --git a/mlp.py b/mlp.py
new file mode 100644
index 0000000..160c3d2
--- /dev/null
+++ b/mlp.py
@@ -0,0 +1,26 @@
+import numpy as np
+import tensorflow as tf
+import pandas as pd
+
+def sigm(x):
+  y = 1 / (1 + np.exp(-x))
+  return y
+
+def learn_once_mse(w1,b1,w2,b2,data,targests,learning_rate):
+
+  return w1,b1,w2,b2,loss
+
+def one_hot(labels):
+  oneHotMat = np.zeros((labels.size,labels.size),dtype=int)
+  for index,values in enumerate(labels):
+    oneHotMat[index,values] = 1
+
+  return oneHotMat
+
+def learn_once_cross_entropy():
+
+  return
+
+
+
+print(one_hot(np.array([1,2,0,4,3])))
\ No newline at end of file
-- 
GitLab