Skip to content

Commit

Permalink
created custom neuron
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSomen committed Oct 13, 2018
1 parent 132976d commit 297181b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion AAN/arti_neural_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import tensorflow as tf

(X_train , Y_train) , (X_test,Y_test) = tf.keras.datasets.mnist.load_data()
print(X_test)
print(X_train.shape,X_test.shape)
X_train = X_train.astype(np.float32).reshape(-1,28*28)/255.0
X_test = X_test.astype(np.float32).reshape(-1,28*28)/255.0
Expand All @@ -32,6 +33,11 @@
#%%
feature_cols = [tf.feature_column.numeric_column(
"X",shape=[28*28])]

print(feature_cols)

#%%

dnn_clf = tf.estimator.DNNClassifier(hidden_units=
[300,100],n_classes = 10,feature_columns = feature_cols)

Expand All @@ -50,7 +56,6 @@
print(eval_results)

#%%
import tensorflow as tf
n_inputs = 28*28
n_hidden1 = 300
n_hidden2 = 100
Expand Down

0 comments on commit 297181b

Please sign in to comment.