Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from sklearn.metrics import log_loss
|
|
8 |
def sigmoid(z):
|
9 |
return 1.0/(1.0+ np.exp(-z))
|
10 |
|
11 |
-
|
12 |
return sigmoid(z)*(1.0-sigmoid(z))
|
13 |
|
14 |
def cross_entropy(weights,bias,X_train,y_train):
|
@@ -87,8 +87,6 @@ def visualize_neural(a):
|
|
87 |
else:
|
88 |
return image_array,"palindrom"
|
89 |
|
90 |
-
def greet(name):
|
91 |
-
return "Hello " + name
|
92 |
|
93 |
|
94 |
demo = gr.Interface(fn=visualize_neural, inputs="text", outputs=[gr.Image(label="Neural network visualization"),gr.Textbox(label="output")])
|
|
|
8 |
def sigmoid(z):
|
9 |
return 1.0/(1.0+ np.exp(-z))
|
10 |
|
11 |
+
def sigmoid_prime(z):
|
12 |
return sigmoid(z)*(1.0-sigmoid(z))
|
13 |
|
14 |
def cross_entropy(weights,bias,X_train,y_train):
|
|
|
87 |
else:
|
88 |
return image_array,"palindrom"
|
89 |
|
|
|
|
|
90 |
|
91 |
|
92 |
demo = gr.Interface(fn=visualize_neural, inputs="text", outputs=[gr.Image(label="Neural network visualization"),gr.Textbox(label="output")])
|