[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Tensorflow neural network

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 1
Thread images: 1

File: IMG_1093.jpg (82KB, 587x662px) Image search: [Google]
IMG_1093.jpg
82KB, 587x662px
Hello, I'm new to machine learning and I've been trying to build my first recurrent neural network with tensorflow. What I've been trying to do is make this model predict me one step forward (basically just return me one number). The problem I have is the shapes of my tensors.

I have formatted the X data so it would be a list of around 2000 numpy arrays with 5 featues each.

Example:
[
array(1,2,3,4,5),
...
array(3,4,5,6,7)
]

My placeholder for the X data looks like this:

data = tf.placeholder (tf.float32, [None, 5])

My Y data is around 2000 elements in a single list:
[
1,
...
2000
]

My Y data placeholder:

target = tf.placeholder (tf.float32)

My cell:

cell = tf.contrib.rnn.BasicRNNCell (num_units = 100)

My weights and biases:

weight = tf.Variable (tf.random_normal ([100, 1]))
bias = tf.Variable (tf.random_normal([1, 1]))

I tried playing around with the numbers that describe the shapes of the tensors but I can't seem to get it right. Whenever I run the code I get an error that tensor shapes are in some way incorrect (either it was expecting something else or it can't multiply with weights because of the incompatible shapes). Can you please help me find where am I wrong or how should I format the data to make it work?

No replies in the DB for this post!
Thread posts: 1
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.