I am trying to implement a very basic neural network in TensorFlow, but I am having some problems. This is a very basic network that takes values (hours or sleep and training hours) as input and predicts points on the test (I found this example on your handset). So basically I only have one hidden layer with three units, each of which calculates an activation function (sigmoid), and the cost function is the sum of square errors, and I use gradient descent to minimize it. So the problem is that when I train the network with the training data and try to make some predictions using the same training data, the results do not quite match, and they also seem strange because they look the same to each other .
import tensorflow as tf import numpy as np import input_data sess = tf.InteractiveSession()
This gives:
[[0.51873487] [0.51874501] [0.51873082]]
and I believe that it should be similar to the results of training data.
I am completely new to neural networks and machine learning, so forgive me for any mistakes, thanks in advance.
tensorflow
Thalles
source share