Predicting when features are time-dependent2019 Community Moderator ElectionRegression coefficient(s) when explanatory & response variables are time seriesUsing LSTMs for modelling and forecasting several time series generated by the same processLSTM: How to deal with nonstationarity when predicting a time seriesImproving LSTM Time-series PredictionsPredicting with multiple time seriesMultivariate Time-Series forecasting using LSTMHow to learn from time series with multiple values for each time pointsUsing LSTM's on Multivariate Input AND Multivariate OutputArchitecture for multivariate multi-time-series model where some features are TS specific and some features are globalModel for classifying time-series data with distinct features?

Banach space and Hilbert space topology

Prevent a directory in /tmp from being deleted

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

N.B. ligature in Latex

least quadratic residue under GRH: an EXPLICIT bound

How is this relation reflexive?

Is there a minimum number of transactions in a block?

Why is an old chain unsafe?

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

Why is "Reports" in sentence down without "The"

Circuitry of TV splitters

What is the meaning of "of trouble" in the following sentence?

How to calculate implied correlation via observed market price (Margrabe option)

How do I create uniquely male characters?

What would happen to a modern skyscraper if it rains micro blackholes?

Can I make popcorn with any corn?

What are these boxed doors outside store fronts in New York?

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

Copenhagen passport control - US citizen

Are white and non-white police officers equally likely to kill black suspects?

I probably found a bug with the sudo apt install function

What do you call a Matrix-like slowdown and camera movement effect?



Predicting when features are time-dependent



2019 Community Moderator ElectionRegression coefficient(s) when explanatory & response variables are time seriesUsing LSTMs for modelling and forecasting several time series generated by the same processLSTM: How to deal with nonstationarity when predicting a time seriesImproving LSTM Time-series PredictionsPredicting with multiple time seriesMultivariate Time-Series forecasting using LSTMHow to learn from time series with multiple values for each time pointsUsing LSTM's on Multivariate Input AND Multivariate OutputArchitecture for multivariate multi-time-series model where some features are TS specific and some features are globalModel for classifying time-series data with distinct features?










1












$begingroup$


How to predict data with time-dependent features?



For example, I have to predict the result of a Mortal Combat game:



X(i) = [player1_id, player2_id, hero_of_player1, hero_of_player2]

Y(i) = 1 if player1 wins or 0 if player2 wins


I have a dataset, containing games from large period of time. And, of course, performance of each player can variate during that time. Second, there were a lot of game patches, and they tuned some heroes' abilities. As a result overall hero strength can also variate through time as well as certain hero-vs-hero match-ups.



How to track that changes considering also overall and time-dependent impact of player+hero, hero-vs-hero, player-vs-player features?



So far I'm using simple LSTM network on whole game history. So my data has a single sample and total number of steps equal to game history length:



X = data.reshape(1,len(data),len(data[0]) #len(data[0]) corresponds to 4 features for a single record in dataset, but it is onehot-encoded.

m = Sequential()
m.add(LSTM(25, input_shape=(None, len(data[0])), return_sequences=True)
m.add(TimeDistirbuted(Dense(1))


I've got about 60% performance on the real problem. And I think it might be better and I can tune layer sizes, regularize, add stacking LSTMs. But did I choose an adequate NN-structure? What are the most suitable NN-structures for that kind of problems? Sliding-windows and Convolutional LSTMs sounds promising, but I don't have enough intuition about them.










share|improve this question











$endgroup$
















    1












    $begingroup$


    How to predict data with time-dependent features?



    For example, I have to predict the result of a Mortal Combat game:



    X(i) = [player1_id, player2_id, hero_of_player1, hero_of_player2]

    Y(i) = 1 if player1 wins or 0 if player2 wins


    I have a dataset, containing games from large period of time. And, of course, performance of each player can variate during that time. Second, there were a lot of game patches, and they tuned some heroes' abilities. As a result overall hero strength can also variate through time as well as certain hero-vs-hero match-ups.



    How to track that changes considering also overall and time-dependent impact of player+hero, hero-vs-hero, player-vs-player features?



    So far I'm using simple LSTM network on whole game history. So my data has a single sample and total number of steps equal to game history length:



    X = data.reshape(1,len(data),len(data[0]) #len(data[0]) corresponds to 4 features for a single record in dataset, but it is onehot-encoded.

    m = Sequential()
    m.add(LSTM(25, input_shape=(None, len(data[0])), return_sequences=True)
    m.add(TimeDistirbuted(Dense(1))


    I've got about 60% performance on the real problem. And I think it might be better and I can tune layer sizes, regularize, add stacking LSTMs. But did I choose an adequate NN-structure? What are the most suitable NN-structures for that kind of problems? Sliding-windows and Convolutional LSTMs sounds promising, but I don't have enough intuition about them.










    share|improve this question











    $endgroup$














      1












      1








      1





      $begingroup$


      How to predict data with time-dependent features?



      For example, I have to predict the result of a Mortal Combat game:



      X(i) = [player1_id, player2_id, hero_of_player1, hero_of_player2]

      Y(i) = 1 if player1 wins or 0 if player2 wins


      I have a dataset, containing games from large period of time. And, of course, performance of each player can variate during that time. Second, there were a lot of game patches, and they tuned some heroes' abilities. As a result overall hero strength can also variate through time as well as certain hero-vs-hero match-ups.



      How to track that changes considering also overall and time-dependent impact of player+hero, hero-vs-hero, player-vs-player features?



      So far I'm using simple LSTM network on whole game history. So my data has a single sample and total number of steps equal to game history length:



      X = data.reshape(1,len(data),len(data[0]) #len(data[0]) corresponds to 4 features for a single record in dataset, but it is onehot-encoded.

      m = Sequential()
      m.add(LSTM(25, input_shape=(None, len(data[0])), return_sequences=True)
      m.add(TimeDistirbuted(Dense(1))


      I've got about 60% performance on the real problem. And I think it might be better and I can tune layer sizes, regularize, add stacking LSTMs. But did I choose an adequate NN-structure? What are the most suitable NN-structures for that kind of problems? Sliding-windows and Convolutional LSTMs sounds promising, but I don't have enough intuition about them.










      share|improve this question











      $endgroup$




      How to predict data with time-dependent features?



      For example, I have to predict the result of a Mortal Combat game:



      X(i) = [player1_id, player2_id, hero_of_player1, hero_of_player2]

      Y(i) = 1 if player1 wins or 0 if player2 wins


      I have a dataset, containing games from large period of time. And, of course, performance of each player can variate during that time. Second, there were a lot of game patches, and they tuned some heroes' abilities. As a result overall hero strength can also variate through time as well as certain hero-vs-hero match-ups.



      How to track that changes considering also overall and time-dependent impact of player+hero, hero-vs-hero, player-vs-player features?



      So far I'm using simple LSTM network on whole game history. So my data has a single sample and total number of steps equal to game history length:



      X = data.reshape(1,len(data),len(data[0]) #len(data[0]) corresponds to 4 features for a single record in dataset, but it is onehot-encoded.

      m = Sequential()
      m.add(LSTM(25, input_shape=(None, len(data[0])), return_sequences=True)
      m.add(TimeDistirbuted(Dense(1))


      I've got about 60% performance on the real problem. And I think it might be better and I can tune layer sizes, regularize, add stacking LSTMs. But did I choose an adequate NN-structure? What are the most suitable NN-structures for that kind of problems? Sliding-windows and Convolutional LSTMs sounds promising, but I don't have enough intuition about them.







      deep-learning keras time-series lstm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 29 at 13:11









      Glorfindel

      1511210




      1511210










      asked Mar 29 at 7:27









      farynaafarynaa

      62




      62




















          0






          active

          oldest

          votes












          Your Answer





          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "557"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48193%2fpredicting-when-features-are-time-dependent%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Data Science Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48193%2fpredicting-when-features-are-time-dependent%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Marja Vauras Lähteet | Aiheesta muualla | NavigointivalikkoMarja Vauras Turun yliopiston tutkimusportaalissaInfobox OKSuomalaisen Tiedeakatemian varsinaiset jäsenetKasvatustieteiden tiedekunnan dekaanit ja muu johtoMarja VaurasKoulutusvienti on kestävyys- ja ketteryyslaji (2.5.2017)laajentamallaWorldCat Identities0000 0001 0855 9405n86069603utb201588738523620927

          Which is better: GPT or RelGAN for text generation?2019 Community Moderator ElectionWhat is the difference between TextGAN and LM for text generation?GANs (generative adversarial networks) possible for text as well?Generator loss not decreasing- text to image synthesisChoosing a right algorithm for template-based text generationHow should I format input and output for text generation with LSTMsGumbel Softmax vs Vanilla Softmax for GAN trainingWhich neural network to choose for classification from text/speech?NLP text autoencoder that generates text in poetic meterWhat is the interpretation of the expectation notation in the GAN formulation?What is the difference between TextGAN and LM for text generation?How to prepare the data for text generation task

          Is this part of the description of the Archfey warlock's Misty Escape feature redundant?When is entropic ward considered “used”?How does the reaction timing work for Wrath of the Storm? Can it potentially prevent the damage from the triggering attack?Does the Dark Arts Archlich warlock patrons's Arcane Invisibility activate every time you cast a level 1+ spell?When attacking while invisible, when exactly does invisibility break?Can I cast Hellish Rebuke on my turn?Do I have to “pre-cast” a reaction spell in order for it to be triggered?What happens if a Player Misty Escapes into an Invisible CreatureCan a reaction interrupt multiattack?Does the Fiend-patron warlock's Hurl Through Hell feature dispel effects that require the target to be on the same plane as the caster?What are you allowed to do while using the Warlock's Eldritch Master feature?