Skip to content

About tensor_scenario() Method #845

Answered by highclef
highclef asked this question in Q&A
Discussion options

You must be logged in to vote

Update

I resolved this by myself and here is what I did:

  • I reshaped my x_data and y_data tensors as [67475, 1, 18] and [67475, 6] for each.
    -> The second index of x_data due to one of the input parameter (sequence length) of my RNN, because this is a LSTM.
    -> I reduced the dimension of my y_data because otherwise I got an error (I am not quite sure why).
  • I changed the task_labels parameters according to the number of experiences that I used (see below).
  • I changed the method from tensor_scenario() to tensors_scenario()

And here are two different versions of the code:

1. Using only one experience

# create scenario instance
generic_scenario = tensors_scenario(
    train_tensors=[(x_train, y…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@MagicHealer
Comment options

@highclef
Comment options

@MagicHealer
Comment options

Answer selected by highclef
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants