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

          Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

          Luettelo Yhdysvaltain laivaston lentotukialuksista Lähteet | Navigointivalikko

          Gary (muusikko) Sisällysluettelo Historia | Rockin' High | Lähteet | Aiheesta muualla | NavigointivalikkoInfobox OKTuomas "Gary" Keskinen Ancaran kitaristiksiProjekti Rockin' High