Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For LSTMTimeStep, how can I train data in the form of tensor (a, b, c)? #839

Open
aweiu opened this issue Aug 25, 2022 · 0 comments
Open

Comments

@aweiu
Copy link

aweiu commented Aug 25, 2022

tensor(a, b, c):

  • a: samples
  • b: time steps
  • c: features

For example tensor(3, 4, 2):
image

image

So, How can I process them as input parameters of LSTMTimeStep?

net.train([
  { input: [11, 12], output: [1] },
  { input: [13, 14], output: [2] },
  { input: [15, 16], output: [3] },
  { input: [17, 18], output: [4] },
])

net.train([
  { input: [21, 22], output: [5] },
  { input: [23, 24], output: [6] },
  ...
])

...net.train(...)

OR:

net.train([
  { input: [
      [11, 12],
      [13, 14],
      [15, 16],
      [17, 18]
   ], 
   output: [4]},
])

net.train([
  { input: [
      [21, 22],
      [23, 24],
      ...
   ], 
   output: [8]},
])

...net.train(...)

The question may be quite simple. Looking forward to your answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant