{"id":4739,"date":"2017-04-10T12:03:42","date_gmt":"2017-04-10T12:03:42","guid":{"rendered":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/"},"modified":"2024-08-09T16:07:02","modified_gmt":"2024-08-09T14:07:02","slug":"trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps","status":"publish","type":"post","link":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/","title":{"rendered":"Trend Prediction with LSTM RNNs using Keras (Tensorflow) in 3 Steps"},"content":{"rendered":"\n<p><strong>Understanding the up or downward trend in statistical data holds vital importance. It helps in estimation, prediction, and forecasting things ahead of time. Its potential application is predicting stock markets, prediction of faults and estimation of remaining useful life of systems, forecasting weather, etc. <\/strong><\/p>\n\n\n\n<p>This article covers the implementation of <strong>LSTM Recurrent Neural Networks<\/strong> to predict the trend in the data.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-src=\"https:\/\/freelancermap.s3.amazonaws.com\/channel_incl1\/trend-prediction-with-lstm-rnns-using-keras--tensorflow--in-3-steps-4739.jpg\" alt=\"\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<p>We have been using different machine learning algorithms for classification, clustering, detection, and estimation purposes. Presently <strong>Convolutional Neural Networks (CNNs)<\/strong> is considered as the best machine learning algorithm that implements Deep Learning concept, it learns more like the way, human learns. But even CNNs don\u2019t perform well on the data that are time-dependent or hold sequential information.<\/p>\n\n\n\n<div class=\"wp-block-group has-background\" style=\"background-color:#b1c3b7\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"has-text-align-center has-background\" style=\"background-color:#b1c3b7;font-size:18px\">Join our freelancer community today! <br>Create your profile in just 2 minutes and start attracting new clients.<\/p>\n\n\n<div class=\"su-button-center\"><a href=\"https:\/\/www.freelancermap.com\/registration?ref=blog-com-lstm\" class=\"su-button su-button-style-default\" style=\"color:#222222;background-color:#FCF2DB;border-color:#cac2b0;border-radius:20px\" target=\"_self\"><span style=\"color:#222222;padding:0px 20px;font-size:16px;line-height:32px;border-color:#fdf6e6;border-radius:20px;text-shadow:none\"> <strong>Sign up for free<\/strong><\/span><\/a><\/div><\/br><\/p>\n<\/div><\/div>\n\n\n\n<p><strong>Recurrent Neural Networks (RNNs)<\/strong> is a vital candidate for solving that kind of problem. RNNs have shown excellent performance in different problems such as <em><strong>machine translations, image captioning, speech recognition, character and word prediction<\/strong> <\/em>in a sentence, etc. But still knowledge in sequential and time series problems is something hard to keep track of. Conventional RNNs fall short of memory while holding the information back in time.<\/p>\n\n\n\n<p>In this article, onwards RNNs and LSTMs will be used interchangeably. I will not go in detail of explaining how LSTMs work and solve the issue of vanishing gradient, because there are so many blogs available over the internet about that. The thing, which lacks is a candid programmatic implementation of LSTMs for prediction of a trend in the data. In this article, I will try to cover the implementation of LSTMs for sequence prediction purposes.<\/p>\n\n\n\n<p>I am hopeful; you will understand it and find it very helpful. Steps involved in the process starting from data preparation to classifier training and making predictions are given as follows:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Data preparation<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Convert an array of values into a dataset matrix\n def dataset_generate(data, step_size=1):\n    dataX, dataY = &#091;], &#091;]\n    for i in range(len(data)- step_size -1):\n       a = data&#091;i:(i+ step_size), 0]\n       dataX.append(a)\n       dataY.append(data&#091;i + step_size, 0])\n    return numpy.array(dataX), numpy.array(dataY)\n \n Fix random seed for reproducibility\n numpy.random.seed(7)\n \n Load the dataset\n dataframe = pandas.read_csv('sample_var.csv', usecols=&#091;0], engine='python', skipfooter=3)\n dataset = dataframe.values\n dataset = dataset.astype('float32')\n \n Normalize the dataset\n scaler = MinMaxScaler(feature_range=(0, 1))\n dataset = scaler.fit_transform(dataset)\n \n Split into train and test sets\n train_size = int(len(dataset) * 0.75)\n test_size = len(dataset) - train_size\n train, test = dataset&#091;0:train_size,:], dataset&#091;train_size:len(dataset),:]\n \n Reshape into X=t and Y=t+1\n step_size = 1\n trainX, trainY = dataset_generate(train, step_size)\n testX, testY = dataset_generate(test, step_size)\n \n Reshape input to be &#091;samples, time steps, features]\n trainX = numpy.reshape(trainX, (trainX.shape&#091;0], 1, trainX.shape&#091;1]))\n testX = numpy.reshape(testX, (testX.shape&#091;0], 1, testX.shape&#091;1]))<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. Training LSTMs Network<\/h2>\n\n\n\n<p><strong>Create a fit the LSTM network:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>model = Sequential()\n model.add(LSTM(4, input_dim= step_size))\n model.add(Dense(1))\n model.compile(loss='mean_squared_error', optimizer='adam')\n model.fit(trainX, trainY, nb_epoch=1000, batch_size=1, verbose=2)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3. Testing LSTMs Network<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>trainPredict = model.predict(trainX)\n \n testPredict = &#091;]\n \n input = trainY&#091;-1]\n temp = &#091;&#091;input]]\n predX = &#091;temp]\n \n a = model.predict(numpy.array(predX))\n b = a.tolist ()\n predX = &#091;b]\n testPredict.append(b&#091;0])<\/code><\/pre>\n\n\n\n<p><strong>Make predictions with the updated models<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for i in range(test_size - 3):\n     print ('Iteration %d: Done' % i)\n     trainX = numpy.concatenate(&#091;trainX, &#091;b]])\n     trainY = numpy.concatenate (&#091;trainY, b&#091;0]])\n     model.fit (trainX, trainY, nb_epoch=1000, batch_size=1, verbose=2)\n \n     a = model.predict (numpy.array (&#091;b]))\n     b = a.tolist ()\n     testPredict.append (b&#091;0])\n \n     print ('Prediction %d:'%i, b)\n testPredict = numpy.array(testPredict)<\/code><\/pre>\n\n\n\n<p>LSTM RNNs are implemented in order to estimate the future sequence and predict the trend in the data. It does predict unseen data really well within the range of training data. But outside the boundaries of training data, it does not make the estimation as expected. You will notice it after implementing the given code. Further improvement needs to be incurred to predict the trend accurately similar to regression techniques.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.freelancermap.com\/registration?ref=blog-com-lstm\"><img decoding=\"async\" width=\"1024\" height=\"297\" data-src=\"https:\/\/www.freelancermap.com\/blog\/wp-content\/uploads\/2024\/07\/cta-blog-freelancermap-sign-up.png\" alt=\"Looking for freelance projects? Register for free on freelancermap and land new clients a 0% commission fees\" class=\"wp-image-42927 lazyload\" data-srcset=\"https:\/\/www.freelancermap.com\/blog\/wp-content\/uploads\/2024\/07\/cta-blog-freelancermap-sign-up.png 1024w, https:\/\/www.freelancermap.com\/blog\/wp-content\/uploads\/2024\/07\/cta-blog-freelancermap-sign-up-300x87.png 300w, https:\/\/www.freelancermap.com\/blog\/wp-content\/uploads\/2024\/07\/cta-blog-freelancermap-sign-up-768x223.png 768w, https:\/\/www.freelancermap.com\/blog\/wp-content\/uploads\/2024\/07\/cta-blog-freelancermap-sign-up-720x209.png 720w, https:\/\/www.freelancermap.com\/blog\/wp-content\/uploads\/2024\/07\/cta-blog-freelancermap-sign-up-580x168.png 580w, https:\/\/www.freelancermap.com\/blog\/wp-content\/uploads\/2024\/07\/cta-blog-freelancermap-sign-up-320x93.png 320w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/297;\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Understanding the up or downward trend in statistical data holds vital importance. It helps in estimation, prediction and forecasting things ahead of time. Its potential application are predicting stock markets, prediction of faults and estimation of remaining useful life of systems, forecasting weather etc. This article covers implementation of LSTM Recurrent Neural Networks to predict the trend in the data.<\/p>\n","protected":false},"author":3063,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","footnotes":""},"categories":[2993],"tags":[3581],"class_list":["post-4739","post","type-post","status-publish","format-standard","hentry","category-careers","tag-technical-posts"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Trend Prediction with LSTM RNNs using Keras (Tensorflow) in 3 Steps<\/title>\n<meta name=\"description\" content=\"Understanding the up or downward trend in statistical data holds vital importance. It helps in estimation, prediction, and forecasting things ahead of time.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Trend Prediction with LSTM RNNs using Keras (Tensorflow) in 3 Steps\" \/>\n<meta property=\"og:description\" content=\"Understanding the up or downward trend in statistical data holds vital importance. It helps in estimation, prediction, and forecasting things ahead of time.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/\" \/>\n<meta property=\"og:site_name\" content=\"Freelancer Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/freelancermapInternational\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-10T12:03:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-09T14:07:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/freelancermap.s3.amazonaws.com\/channel_incl1\/trend-prediction-with-lstm-rnns-using-keras--tensorflow--in-3-steps-4739.jpg\" \/>\n<meta name=\"author\" content=\"Wasim Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@freelancer_INT\" \/>\n<meta name=\"twitter:site\" content=\"@freelancer_INT\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Wasim Ahmad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/\"},\"author\":{\"name\":\"Wasim Ahmad\",\"@id\":\"https:\/\/www.freelancermap.com\/blog\/#\/schema\/person\/604db37f16a6b26a1355e2c90fd34d55\"},\"headline\":\"Trend Prediction with LSTM RNNs using Keras (Tensorflow) in 3 Steps\",\"datePublished\":\"2017-04-10T12:03:42+00:00\",\"dateModified\":\"2024-08-09T14:07:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/\"},\"wordCount\":437,\"publisher\":{\"@id\":\"https:\/\/www.freelancermap.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/freelancermap.s3.amazonaws.com\/channel_incl1\/trend-prediction-with-lstm-rnns-using-keras--tensorflow--in-3-steps-4739.jpg\",\"keywords\":[\"Technical posts\"],\"articleSection\":[\"Careers\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/\",\"url\":\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/\",\"name\":\"Trend Prediction with LSTM RNNs using Keras (Tensorflow) in 3 Steps\",\"isPartOf\":{\"@id\":\"https:\/\/www.freelancermap.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/freelancermap.s3.amazonaws.com\/channel_incl1\/trend-prediction-with-lstm-rnns-using-keras--tensorflow--in-3-steps-4739.jpg\",\"datePublished\":\"2017-04-10T12:03:42+00:00\",\"dateModified\":\"2024-08-09T14:07:02+00:00\",\"description\":\"Understanding the up or downward trend in statistical data holds vital importance. It helps in estimation, prediction, and forecasting things ahead of time.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#primaryimage\",\"url\":\"https:\/\/freelancermap.s3.amazonaws.com\/channel_incl1\/trend-prediction-with-lstm-rnns-using-keras--tensorflow--in-3-steps-4739.jpg\",\"contentUrl\":\"https:\/\/freelancermap.s3.amazonaws.com\/channel_incl1\/trend-prediction-with-lstm-rnns-using-keras--tensorflow--in-3-steps-4739.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.freelancermap.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Trend Prediction with LSTM RNNs using Keras (Tensorflow) in 3 Steps\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.freelancermap.com\/blog\/#website\",\"url\":\"https:\/\/www.freelancermap.com\/blog\/\",\"name\":\"Freelancer Blog\",\"description\":\"Tips &amp; Practical Advice for Freelancers and IT professionals\",\"publisher\":{\"@id\":\"https:\/\/www.freelancermap.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.freelancermap.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.freelancermap.com\/blog\/#organization\",\"name\":\"freelancermap.com\",\"url\":\"https:\/\/www.freelancermap.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.freelancermap.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.freelancermap.com\/blog\/wp-content\/uploads\/2025\/02\/freelancermap-black-logo@4x.png\",\"contentUrl\":\"https:\/\/www.freelancermap.com\/blog\/wp-content\/uploads\/2025\/02\/freelancermap-black-logo@4x.png\",\"width\":1044,\"height\":145,\"caption\":\"freelancermap.com\"},\"image\":{\"@id\":\"https:\/\/www.freelancermap.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/freelancermapInternational\/\",\"https:\/\/x.com\/freelancer_INT\",\"https:\/\/www.linkedin.com\/company\/freelancermap-gmbh\/\",\"https:\/\/www.instagram.com\/freelancermap_int\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.freelancermap.com\/blog\/#\/schema\/person\/604db37f16a6b26a1355e2c90fd34d55\",\"name\":\"Wasim Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.freelancermap.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0e41d4f63bf9da66919099fb25d4c64d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0e41d4f63bf9da66919099fb25d4c64d?s=96&d=mm&r=g\",\"caption\":\"Wasim Ahmad\"},\"description\":\"Wasim has been involved in Android Application Development since 2011. Currently, he is working as a Graduate Researcher at the University of Ulsan. Wasim's is related to Fault Prediction and Estimation of Remaining Useful Life (RUL) of Mechanical and Electronic systems using Matlab, Python (Tensorflow), R.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/wasim-ahmad-73293767\/\"],\"url\":\"https:\/\/www.freelancermap.com\/blog\/author\/wasim-ahmad\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Trend Prediction with LSTM RNNs using Keras (Tensorflow) in 3 Steps","description":"Understanding the up or downward trend in statistical data holds vital importance. It helps in estimation, prediction, and forecasting things ahead of time.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/","og_locale":"en_US","og_type":"article","og_title":"Trend Prediction with LSTM RNNs using Keras (Tensorflow) in 3 Steps","og_description":"Understanding the up or downward trend in statistical data holds vital importance. It helps in estimation, prediction, and forecasting things ahead of time.","og_url":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/","og_site_name":"Freelancer Blog","article_publisher":"https:\/\/www.facebook.com\/freelancermapInternational\/","article_published_time":"2017-04-10T12:03:42+00:00","article_modified_time":"2024-08-09T14:07:02+00:00","og_image":[{"url":"https:\/\/freelancermap.s3.amazonaws.com\/channel_incl1\/trend-prediction-with-lstm-rnns-using-keras--tensorflow--in-3-steps-4739.jpg"}],"author":"Wasim Ahmad","twitter_card":"summary_large_image","twitter_creator":"@freelancer_INT","twitter_site":"@freelancer_INT","twitter_misc":{"Written by":"Wasim Ahmad","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#article","isPartOf":{"@id":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/"},"author":{"name":"Wasim Ahmad","@id":"https:\/\/www.freelancermap.com\/blog\/#\/schema\/person\/604db37f16a6b26a1355e2c90fd34d55"},"headline":"Trend Prediction with LSTM RNNs using Keras (Tensorflow) in 3 Steps","datePublished":"2017-04-10T12:03:42+00:00","dateModified":"2024-08-09T14:07:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/"},"wordCount":437,"publisher":{"@id":"https:\/\/www.freelancermap.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#primaryimage"},"thumbnailUrl":"https:\/\/freelancermap.s3.amazonaws.com\/channel_incl1\/trend-prediction-with-lstm-rnns-using-keras--tensorflow--in-3-steps-4739.jpg","keywords":["Technical posts"],"articleSection":["Careers"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/","url":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/","name":"Trend Prediction with LSTM RNNs using Keras (Tensorflow) in 3 Steps","isPartOf":{"@id":"https:\/\/www.freelancermap.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#primaryimage"},"image":{"@id":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#primaryimage"},"thumbnailUrl":"https:\/\/freelancermap.s3.amazonaws.com\/channel_incl1\/trend-prediction-with-lstm-rnns-using-keras--tensorflow--in-3-steps-4739.jpg","datePublished":"2017-04-10T12:03:42+00:00","dateModified":"2024-08-09T14:07:02+00:00","description":"Understanding the up or downward trend in statistical data holds vital importance. It helps in estimation, prediction, and forecasting things ahead of time.","breadcrumb":{"@id":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#primaryimage","url":"https:\/\/freelancermap.s3.amazonaws.com\/channel_incl1\/trend-prediction-with-lstm-rnns-using-keras--tensorflow--in-3-steps-4739.jpg","contentUrl":"https:\/\/freelancermap.s3.amazonaws.com\/channel_incl1\/trend-prediction-with-lstm-rnns-using-keras--tensorflow--in-3-steps-4739.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.freelancermap.com\/blog\/trend-prediction-with-lstm-rnns-using-keras-tensorflow-in-3-steps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.freelancermap.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Trend Prediction with LSTM RNNs using Keras (Tensorflow) in 3 Steps"}]},{"@type":"WebSite","@id":"https:\/\/www.freelancermap.com\/blog\/#website","url":"https:\/\/www.freelancermap.com\/blog\/","name":"Freelancer Blog","description":"Tips &amp; Practical Advice for Freelancers and IT professionals","publisher":{"@id":"https:\/\/www.freelancermap.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.freelancermap.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.freelancermap.com\/blog\/#organization","name":"freelancermap.com","url":"https:\/\/www.freelancermap.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.freelancermap.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.freelancermap.com\/blog\/wp-content\/uploads\/2025\/02\/freelancermap-black-logo@4x.png","contentUrl":"https:\/\/www.freelancermap.com\/blog\/wp-content\/uploads\/2025\/02\/freelancermap-black-logo@4x.png","width":1044,"height":145,"caption":"freelancermap.com"},"image":{"@id":"https:\/\/www.freelancermap.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/freelancermapInternational\/","https:\/\/x.com\/freelancer_INT","https:\/\/www.linkedin.com\/company\/freelancermap-gmbh\/","https:\/\/www.instagram.com\/freelancermap_int\/"]},{"@type":"Person","@id":"https:\/\/www.freelancermap.com\/blog\/#\/schema\/person\/604db37f16a6b26a1355e2c90fd34d55","name":"Wasim Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.freelancermap.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0e41d4f63bf9da66919099fb25d4c64d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0e41d4f63bf9da66919099fb25d4c64d?s=96&d=mm&r=g","caption":"Wasim Ahmad"},"description":"Wasim has been involved in Android Application Development since 2011. Currently, he is working as a Graduate Researcher at the University of Ulsan. Wasim's is related to Fault Prediction and Estimation of Remaining Useful Life (RUL) of Mechanical and Electronic systems using Matlab, Python (Tensorflow), R.","sameAs":["https:\/\/www.linkedin.com\/in\/wasim-ahmad-73293767\/"],"url":"https:\/\/www.freelancermap.com\/blog\/author\/wasim-ahmad\/"}]}},"taxonomy_info":{"category":[{"value":2993,"label":"Careers"}],"post_tag":[{"value":3581,"label":"Technical posts"}]},"featured_image_src_large":false,"author_info":{"display_name":"Wasim Ahmad","author_link":"https:\/\/www.freelancermap.com\/blog\/author\/wasim-ahmad\/"},"comment_info":0,"category_info":[{"term_id":2993,"name":"Careers","slug":"careers","term_group":0,"term_taxonomy_id":2993,"taxonomy":"category","description":"<span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;The economy is changing and new job roles are being created thanks to the digitalization. We introduce you to the most demanded positions in the IT field and offer technical guides and other career guiandance.&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4865,&quot;3&quot;:{&quot;1&quot;:0},&quot;11&quot;:4,&quot;12&quot;:0,&quot;15&quot;:&quot;Roboto&quot;}\">The economy is changing and new job roles are being created thanks to the digitalization. We introduce you to the most demanded positions in the IT field and offer technical guides and other career guidance.<\/span>","parent":0,"count":278,"filter":"raw","cat_ID":2993,"category_count":278,"category_description":"<span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;The economy is changing and new job roles are being created thanks to the digitalization. We introduce you to the most demanded positions in the IT field and offer technical guides and other career guiandance.&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4865,&quot;3&quot;:{&quot;1&quot;:0},&quot;11&quot;:4,&quot;12&quot;:0,&quot;15&quot;:&quot;Roboto&quot;}\">The economy is changing and new job roles are being created thanks to the digitalization. We introduce you to the most demanded positions in the IT field and offer technical guides and other career guidance.<\/span>","cat_name":"Careers","category_nicename":"careers","category_parent":0}],"tag_info":[{"term_id":3581,"name":"Technical posts","slug":"technical-posts","term_group":0,"term_taxonomy_id":3581,"taxonomy":"post_tag","description":"","parent":0,"count":4,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/www.freelancermap.com\/blog\/wp-json\/wp\/v2\/posts\/4739"}],"collection":[{"href":"https:\/\/www.freelancermap.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.freelancermap.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.freelancermap.com\/blog\/wp-json\/wp\/v2\/users\/3063"}],"replies":[{"embeddable":true,"href":"https:\/\/www.freelancermap.com\/blog\/wp-json\/wp\/v2\/comments?post=4739"}],"version-history":[{"count":2,"href":"https:\/\/www.freelancermap.com\/blog\/wp-json\/wp\/v2\/posts\/4739\/revisions"}],"predecessor-version":[{"id":43493,"href":"https:\/\/www.freelancermap.com\/blog\/wp-json\/wp\/v2\/posts\/4739\/revisions\/43493"}],"wp:attachment":[{"href":"https:\/\/www.freelancermap.com\/blog\/wp-json\/wp\/v2\/media?parent=4739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.freelancermap.com\/blog\/wp-json\/wp\/v2\/categories?post=4739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.freelancermap.com\/blog\/wp-json\/wp\/v2\/tags?post=4739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}