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?

What are the advantages and disadvantages of running one shots compared to campaigns?

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

Is a vector space a subspace of itself?

Why do UK politicians seemingly ignore opinion polls on Brexit?

Short story: alien planet where slow students are executed

Prime joint compound before latex paint?

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

Can I legally use front facing blue light in the UK?

Information to fellow intern about hiring?

How would photo IDs work for shapeshifters?

How to move the player while also allowing forces to affect it

What causes the sudden spool-up sound from an F-16 when enabling afterburner?

How to manage monthly salary

extract characters between two commas?

Email Account under attack (really) - anything I can do?

Is it wise to hold on to stock that has plummeted and then stabilized?

A poker game description that does not feel gimmicky

What do the Banks children have against barley water?

Does a dangling wire really electrocute me if I'm standing in water?

What is the command to reset a PC without deleting any files

"listening to me about as much as you're listening to this pole here"

Patience, young "Padovan"

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

How to make payment on the internet without leaving a money trail?



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