Giter VIP home page Giter VIP logo

Comments (3)

RobRomijnders avatar RobRomijnders commented on July 17, 2024

from lstm_tsc.

carloandrea avatar carloandrea commented on July 17, 2024

Good evening Rob and thank you for your clear answer. I was thinking about the same, as the three rnn would know nothing about each other and that seems wrong to me.
The only doubt that I have left is if I have to concatenate the time series by column, so to have 3sl, or by rows, so to have 3N. And in the last case, should I also make y_train three times longer?
Thank you again!

from lstm_tsc.

RobRomijnders avatar RobRomijnders commented on July 17, 2024

This should help you

import tensorflow as tf
sl = 63
x1 = tf.placeholder(tf.float32, [None,sl],name="x1")
x2 = tf.placeholder(tf.float32, [None,sl],name="x2")
x3 = tf.placeholder(tf.float32, [None,sl],name="x3")
x123 = tf.stack([x1,x2,x3]) # Stacks on inner dimension
x123t = tf.transpose(x123,[1,0,2]) # transpose to whatever you need
print(x123)
print(x123t)
>>> Tensor("stack_1:0", shape=(3, ?, 63), dtype=float32)
>>> Tensor("transpose_1:0", shape=(?, 3, 63), dtype=float32)

from lstm_tsc.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.