{"id":7192,"date":"2020-05-30T15:31:11","date_gmt":"2020-05-30T11:01:11","guid":{"rendered":"https:\/\/shahaab-co.ir\/mag\/?p=7192"},"modified":"2020-08-15T17:29:03","modified_gmt":"2020-08-15T12:59:03","slug":"stock-price-prediction-machine-learning-project-in-python","status":"publish","type":"post","link":"https:\/\/shahaab-co.com\/mag\/edu\/ml\/stock-price-prediction-machine-learning-project-in-python\/","title":{"rendered":"\u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 &#8211; \u067e\u0631\u0648\u0698\u0647 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0645\u0627\u0634\u06cc\u0646 \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646"},"content":{"rendered":"<p style=\"text-align: justify;\">\u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0645\u0627\u0634\u06cc\u0646 \u06a9\u0627\u0631\u0628\u0631\u062f\u0647\u0627\u06cc \u0645\u0647\u0645\u06cc \u062f\u0631 \u067e\u06cc\u0634\u200c\u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u062f\u0627\u0631\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0645\u0627\u0634\u06cc\u0646\u060c \u062f\u0631 \u0645\u0648\u0631\u062f \u067e\u06cc\u0634\u200c\u0628\u06cc\u0646\u06cc \u0628\u0627\u0632\u062f\u0647 \u0633\u0647\u0627\u0645 \u0635\u062d\u0628\u062a \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u0627\u06cc\u0646 \u06cc\u06a9 \u06a9\u0627\u0631 \u0628\u0633\u06cc\u0627\u0631 \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0627\u0633\u062a \u0648 \u0628\u0627 \u0639\u062f\u0645 \u0642\u0637\u0639\u06cc\u062a \u0647\u0645\u0631\u0627\u0647 \u0627\u0633\u062a. \u0645\u0627 \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u0631\u0627 \u0628\u0647 \u062f\u0648 \u0628\u062e\u0634 \u0628\u0633\u0637 \u0645\u06cc\u200c\u062f\u0647\u06cc\u0645:<\/p>\n<ul>\n<li style=\"text-align: justify;\">\u0627\u0648\u0644\u060c \u0646\u062d\u0648\u0647 \u067e\u06cc\u0634\u200c\u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0634\u0628\u06a9\u0647 \u0639\u0635\u0628\u06cc LSTM \u0631\u0627 \u06cc\u0627\u062f \u0645\u06cc\u200c\u06af\u06cc\u0631\u06cc\u0645.<\/li>\n<li style=\"text-align: justify;\">\u0633\u067e\u0633 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Plotly Dash \u060c \u06cc\u06a9 \u062f\u0627\u0634\u0628\u0648\u0631\u062f \u0628\u0631\u0627\u06cc \u062a\u062d\u0644\u06cc\u0644 \u0633\u0647\u0627\u0645 \u0627\u06cc\u062c\u0627\u062f \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f.<\/li>\n<\/ul>\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" width=\"1024\" height=\"504\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/05\/\u062f\u0627\u0634\u0628\u0648\u0631\u062f-\u067e\u0631\u0648\u0698\u0647-\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062f\u0631-\u067e\u0627\u06cc\u062a\u0648\u0646.gif\" alt=\"\u062f\u0627\u0634\u0628\u0648\u0631\u062f \u067e\u0631\u0648\u0698\u0647 \u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646\" class=\"wp-image-7207\" title=\"\"><\/figure>\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter-rtl ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0622\u0646\u0686\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062e\u0648\u0627\u0646\u062f :<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #0044bf;color:#0044bf\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #0044bf;color:#0044bf\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/shahaab-co.com\/mag\/edu\/ml\/stock-price-prediction-machine-learning-project-in-python\/#%D9%BE%D8%B1%D9%88%DA%98%D9%87_%D9%BE%DB%8C%D8%B4%E2%80%8C%D8%A8%DB%8C%D9%86%DB%8C_%D9%82%DB%8C%D9%85%D8%AA_%D8%B3%D9%87%D8%A7%D9%85\" >\u067e\u0631\u0648\u0698\u0647 \u067e\u06cc\u0634\u200c\u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/shahaab-co.com\/mag\/edu\/ml\/stock-price-prediction-machine-learning-project-in-python\/#%D9%BE%DB%8C%D8%B4%E2%80%8C%D8%A8%DB%8C%D9%86%DB%8C_%D9%82%DB%8C%D9%85%D8%AA_%D8%B3%D9%87%D8%A7%D9%85_%D8%A8%D8%A7_%D8%A7%D8%B3%D8%AA%D9%81%D8%A7%D8%AF%D9%87_%D8%A7%D8%B2_LSTM\" >\u067e\u06cc\u0634\u200c\u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 LSTM<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/shahaab-co.com\/mag\/edu\/ml\/stock-price-prediction-machine-learning-project-in-python\/#%D8%B3%D8%A7%D8%AE%D8%AA_%D8%AF%D8%A7%D8%B4%D8%A8%D9%88%D8%B1%D8%AF_%D8%A8%D8%A7_%D8%A7%D8%B3%D8%AA%D9%81%D8%A7%D8%AF%D9%87_%D8%A7%D8%B2_Plotly_dash\" >\u0633\u0627\u062e\u062a \u062f\u0627\u0634\u0628\u0648\u0631\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Plotly dash<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/shahaab-co.com\/mag\/edu\/ml\/stock-price-prediction-machine-learning-project-in-python\/#%D8%AC%D9%85%D8%B9_%D8%A8%D9%86%D8%AF%DB%8C\" >\u062c\u0645\u0639 \u0628\u0646\u062f\u06cc<\/a><\/li><\/ul><\/nav><\/div>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"%D9%BE%D8%B1%D9%88%DA%98%D9%87_%D9%BE%DB%8C%D8%B4%E2%80%8C%D8%A8%DB%8C%D9%86%DB%8C_%D9%82%DB%8C%D9%85%D8%AA_%D8%B3%D9%87%D8%A7%D9%85\"><\/span><strong>\u067e\u0631\u0648\u0698\u0647 \u067e\u06cc\u0634\u200c\u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h4 style=\"text-align: justify;\"><strong>\u0645\u062c\u0645\u0648\u0639\u0647 \u062f\u0627\u062f\u0647 \u0647\u0627<\/strong><\/h4>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a \u0645\u062f\u0644 \u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u060c \u0627\u0632 \u0645\u062c\u0645\u0648\u0639\u0647 \u062f\u0627\u062f\u0647 NSE TATA GLOBAL \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u0627\u06cc\u0646 \u0645\u062c\u0645\u0648\u0639\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u060c \u0627\u0632 \u0646\u0648\u0634\u0627\u0628\u0647 \u0647\u0627\u06cc \u062a\u0627\u062a\u0627 \u0634\u0631\u06a9\u062a \u062c\u0647\u0627\u0646\u06cc \u062a\u0627\u062a\u0627\u060c \u0633\u0647\u0627\u0645 \u0645\u0644\u06cc \u0647\u0646\u062f \u0627\u0633\u062a: <a href=\"https:\/\/data-flair.training\/blogs\/download-tata-global-beverages-stocks-data\/\" target=\"_blank\" rel=\"noopener noreferrer\">Tata Global Dataset<\/a><\/p>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0627\u0634\u0628\u0648\u0631\u062f \u0628\u0631\u0627\u06cc \u062a\u062d\u0644\u06cc\u0644 \u0633\u0647\u0627\u0645\u060c \u0645\u0627 \u0627\u0632 \u0645\u062c\u0645\u0648\u0639\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u062f\u06cc\u06af\u0631 \u0633\u0647\u0627\u0645 \u0647\u0627 \u0645\u0627\u0646\u0646\u062f \u0627\u067e\u0644\u060c \u0645\u0627\u06cc\u06a9\u0631\u0648\u0633\u0627\u0641\u062a\u060c \u0641\u06cc\u0633 \u0628\u0648\u06a9 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f: <a href=\"https:\/\/data-flair.training\/blogs\/download-stocks-price-data\/\" target=\"_blank\" rel=\"noopener noreferrer\">Stocks Dataset<\/a><\/p>\n<h4 style=\"text-align: justify;\"><strong>\u06a9\u062f \u0645\u0646\u0628\u0639<\/strong><\/h4>\n<p style=\"text-align: justify;\">\u0642\u0628\u0644 \u0627\u0632 \u0627\u062f\u0627\u0645\u0647 \u06a9\u0627\u0631 \u060c \u0644\u0637\u0641\u0627\u064b \u06a9\u062f \u0645\u0646\u0628\u0639 \u0631\u0627 \u062f\u0627\u0646\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/07\/Stock-Price-Prediction-Project-Code.zip\" target=\"_blank\" class=\"shortc-button medium green \" rel=\"noopener\">\u062f\u0627\u0646\u0644\u0648\u062f \u067e\u0631\u0648\u0698\u0647 \u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645<\/a>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"%D9%BE%DB%8C%D8%B4%E2%80%8C%D8%A8%DB%8C%D9%86%DB%8C_%D9%82%DB%8C%D9%85%D8%AA_%D8%B3%D9%87%D8%A7%D9%85_%D8%A8%D8%A7_%D8%A7%D8%B3%D8%AA%D9%81%D8%A7%D8%AF%D9%87_%D8%A7%D8%B2_LSTM\"><\/span><strong>\u067e\u06cc\u0634\u200c\u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <\/strong><strong>LSTM<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">\u06f1. \u0648\u0631\u0648\u0631\u062f\u06cc \u0647\u0627 :<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">import pandas as pd\nimport numpy as np\nimport matplotlib.pyplot as plt\n%matplotlib inline\nfrom matplotlib.pylab import rcParams\nrcParams['figure.figsize']=20,10\nfrom keras.models import Sequential\nfrom keras.layers import LSTM,Dropout,Dense\nfrom sklearn.preprocessing import MinMaxScaler\n<\/pre>\n<p style=\"text-align: justify;\">\u06f2. \u0645\u062c\u0645\u0648\u0639\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0628\u062e\u0648\u0627\u0646\u06cc\u062f:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">df=pd.read_csv(\"NSE-TATA.csv\")\ndf.head()<\/pre>\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062e\u0648\u0627\u0646\u062f\u0646-\u062f\u0627\u062f\u0647-\u0647\u0627.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"1024\" height=\"818\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062e\u0648\u0627\u0646\u062f\u0646-\u062f\u0627\u062f\u0647-\u0647\u0627-1024x818.png\" alt=\"\u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u062e\u0648\u0627\u0646\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\" class=\"wp-image-7195\" title=\"\" srcset=\"https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062e\u0648\u0627\u0646\u062f\u0646-\u062f\u0627\u062f\u0647-\u0647\u0627-1024x818.png 1024w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062e\u0648\u0627\u0646\u062f\u0646-\u062f\u0627\u062f\u0647-\u0647\u0627-300x240.png 300w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062e\u0648\u0627\u0646\u062f\u0646-\u062f\u0627\u062f\u0647-\u0647\u0627-768x614.png 768w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062e\u0648\u0627\u0646\u062f\u0646-\u062f\u0627\u062f\u0647-\u0647\u0627.png 1140w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u06f3.&nbsp; \u0642\u06cc\u0645\u062a \u0646\u0647\u0627\u06cc\u06cc \u0631\u0627 \u0627\u0632 \u0642\u0627\u0628 \u062f\u0627\u062f\u0647 ( dataframe ) \u062a\u062d\u0644\u06cc\u0644 \u06a9\u0646\u06cc\u062f :<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">df[\"Date\"]=pd.to_datetime(df.Date,format=\"%Y-%m-%d\")\ndf.index=df['Date']\nplt.figure(figsize=(16,8))\nplt.plot(df[\"Close\"],label='Close Price history')<\/pre>\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062a\u062d\u0644\u06cc\u0644-\u0646\u0645\u0648\u062f\u0627\u0631.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"1024\" height=\"819\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062a\u062d\u0644\u06cc\u0644-\u0646\u0645\u0648\u062f\u0627\u0631-1024x819.png\" alt=\"\u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u062a\u062d\u0644\u06cc\u0644 \u0646\u0645\u0648\u062f\u0627\u0631\" class=\"wp-image-7196\" title=\"\" srcset=\"https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062a\u062d\u0644\u06cc\u0644-\u0646\u0645\u0648\u062f\u0627\u0631-1024x819.png 1024w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062a\u062d\u0644\u06cc\u0644-\u0646\u0645\u0648\u062f\u0627\u0631-300x240.png 300w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062a\u062d\u0644\u06cc\u0644-\u0646\u0645\u0648\u062f\u0627\u0631-768x614.png 768w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-\u062a\u062d\u0644\u06cc\u0644-\u0646\u0645\u0648\u062f\u0627\u0631.png 1140w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p style=\"text-align: justify;\">\u06f4. \u0645\u062c\u0645\u0648\u0639\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0628\u0631\u0627\u0633\u0627\u0633 \u062a\u0627\u0631\u06cc\u062e \u0645\u0631\u062a\u0628\u200c \u06a9\u0631\u062f\u0647 \u0648 \u0633\u062a\u0648\u0646 \u0647\u0627\u06cc &#8221; \u062a\u0627\u0631\u06cc\u062e ( Date ) &#8221; \u0648 &#8221; \u0646\u0647\u0627\u06cc\u06cc ( close ) &#8221; \u0631\u0627 \u0641\u06cc\u0644\u062a\u0631 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">data=df.sort_index(ascending=True,axis=0)\nnew_dataset=pd.DataFrame(index=range(0,len(df)),columns=['Date','Close'])\nfor i in range(0,len(data)):\n    new_dataset[\"Date\"][i]=data['Date'][i]\n    new_dataset[\"Close\"][i]=data[\"Close\"][i]<\/pre>\n<ol style=\"text-align: justify;\" start=\"5\">\n<li>\u0645\u062c\u0645\u0648\u0639\u0647 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0641\u06cc\u0644\u062a\u0631 \u0634\u062f\u0647 \u062c\u062f\u06cc\u062f \u0631\u0627 \u0646\u0631\u0645\u0627\u0644 \u06a9\u0646\u06cc\u062f:<\/li>\n<\/ol>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">scaler=MinMaxScaler(feature_range=(0,1))\nfinal_dataset=new_dataset.values\ntrain_data=final_dataset[0:987,:]\nvalid_data=final_dataset[987:,:]\nnew_dataset.index=new_dataset.Date\nnew_dataset.drop(\"Date\",axis=1,inplace=True)\nscaler=MinMaxScaler(feature_range=(0,1))\nscaled_data=scaler.fit_transform(final_dataset)\nx_train_data,y_train_data=[],[]\nfor i in range(60,len(train_data)):\n    x_train_data.append(scaled_data[i-60:i,0])\n    y_train_data.append(scaled_data[i,0])\n    \nx_train_data,y_train_data=np.array(x_train_data),np.array(y_train_data)\nx_train_data=np.reshape(x_train_data,(x_train_data.shape[0],x_train_data.shape[1],1))<\/pre>\n<p style=\"text-align: justify;\">\u06f6. \u0645\u062f\u0644 LSTM \u0631\u0627 \u0633\u0627\u062e\u062a\u0647 \u0648 \u0622\u0645\u0648\u0632\u0634 \u062f\u0647\u06cc\u062f:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">lstm_model=Sequential()\nlstm_model.add(LSTM(units=50,return_sequences=True,input_shape=(x_train_data.shape[1],1)))\nlstm_model.add(LSTM(units=50))\nlstm_model.add(Dense(1))\ninputs_data=new_dataset[len(new_dataset)-len(valid_data)-60:].values\ninputs_data=inputs_data.reshape(-1,1)\ninputs_data=scaler.transform(inputs_data)\nlstm_model.compile(loss='mean_squared_error',optimizer='adam')\nlstm_model.fit(x_train_data,y_train_data,epochs=1,batch_size=1,verbose=2)<\/pre>\n<p style=\"text-align: justify;\">\u06f7. \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 \u0627\u0632 \u0645\u062c\u0645\u0648\u0639\u0647 \u062f\u0627\u062f\u0647&nbsp; \u0647\u0627 \u0631\u0627 \u0628\u0631\u062f\u0627\u0631\u06cc\u062f \u062a\u0627 \u067e\u06cc\u0634&nbsp; \u0628\u06cc\u0646\u06cc&nbsp; \u0647\u0627\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u062f\u0644 LSTM \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">X_test=[]\nfor i in range(60,inputs_data.shape[0]):\n    X_test.append(inputs_data[i-60:i,0])\nX_test=np.array(X_test)\nX_test=np.reshape(X_test,(X_test.shape[0],X_test.shape[1],1))\npredicted_closing_price=lstm_model.predict(X_test)\npredicted_closing_price=scaler.inverse_transform(predicted_closing_price)<\/pre>\n<ol style=\"text-align: justify;\" start=\"8\">\n<li>\u0645\u062f\u0644 LSTM \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f.<\/li>\n<\/ol>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">lstm_model.save(\"saved_model.h5\")\n<\/pre>\n<ol style=\"text-align: justify;\" start=\"9\">\n<li>\u0647\u0632\u06cc\u0646\u0647 \u0647\u0627\u06cc \u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0634\u062f\u0647 \u0633\u0647\u0627\u0645 \u0631\u0627 \u0628\u0627 \u0647\u0632\u06cc\u0646\u0647 \u0647\u0627\u06cc \u0648\u0627\u0642\u0639\u06cc \u0633\u0647\u0627\u0645 \u060c \u0646\u0645\u0648\u062f\u0627\u0631 \u06a9\u0646\u06cc\u062f:<\/li>\n<\/ol>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">train_data=new_dataset[:987]\nvalid_data=new_dataset[987:]\nvalid_data['Predictions']=predicted_closing_price\nplt.plot(train_data[\"Close\"])\nplt.plot(valid_data[['Close',\"Predictions\"]])<\/pre>\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"1024\" height=\"711\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-1024x711.png\" alt=\"\u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645\" class=\"wp-image-7197\" title=\"\" srcset=\"https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-1024x711.png 1024w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-300x208.png 300w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-768x533.png 768w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645-110x75.png 110w, https:\/\/shahaab-co.com\/mag\/wp-content\/uploads\/2020\/05\/\u067e\u06cc\u0634-\u0628\u06cc\u0646\u06cc-\u0642\u06cc\u0645\u062a-\u0633\u0647\u0627\u0645.png 1140w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p style=\"text-align: justify;\">\u0645\u06cc&nbsp; \u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u0644\u0627\u062d\u0638\u0647 \u06a9\u0646\u06cc\u062f\u060c LSTM \u0633\u0647\u0627\u0645 \u0631\u0627 \u062a\u0642\u0631\u06cc\u0628\u0627 \u0645\u0634\u0627\u0628\u0647 \u0633\u0647\u0627\u0645 \u0648\u0627\u0642\u0639\u06cc \u067e\u06cc\u0634&nbsp; \u0628\u06cc\u0646\u06cc \u06a9\u0631\u062f\u0647&nbsp; \u0627\u0633\u062a.<\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"%D8%B3%D8%A7%D8%AE%D8%AA_%D8%AF%D8%A7%D8%B4%D8%A8%D9%88%D8%B1%D8%AF_%D8%A8%D8%A7_%D8%A7%D8%B3%D8%AA%D9%81%D8%A7%D8%AF%D9%87_%D8%A7%D8%B2_Plotly_dash\"><\/span><strong>\u0633\u0627\u062e\u062a \u062f\u0627\u0634\u0628\u0648\u0631\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Plotly dash<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">\u062f\u0631 \u0627\u06cc\u0646 \u0628\u062e\u0634 \u06cc\u06a9 \u062f\u0627\u0634\u0628\u0648\u0631\u062f \u0628\u0631\u0627\u06cc \u062a\u062d\u0644\u06cc\u0644 \u0633\u0647\u0627\u0645 \u062e\u0648\u0627\u0647\u06cc\u0645 \u0633\u0627\u062e\u062a. Dash \u06cc\u06a9 \u0686\u0627\u0631\u0686\u0648\u0628 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0627\u0633\u062a \u06a9\u0647 \u06cc\u06a9 \u0627\u0646\u062a\u0632\u0627\u0639 \u0628\u0631 \u0631\u0648\u06cc Flask ( \u06cc\u06a9 \u067e\u0627\u0631\u0686\u0648\u0628 \u0642\u062f\u0631\u062a\u0645\u0646\u062f \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 ) \u0648 react.js \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0628\u0647 \u0633\u0627\u062e\u062a \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0648\u0628 \u062a\u062d\u0644\u06cc\u0644\u06cc \u0648\u0627\u06a9\u0646\u0634 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0642\u0628\u0644 \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u062c\u0644\u0648\u062a\u0631 \u0628\u0631\u0648\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u062f\u0627\u0634\u0628\u0648\u0631\u062f \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f. \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u06a9\u0627\u062f\u0631 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">pip3 install dash\npip3 install dash-html-components\npip3 install dash-core-components\n<\/pre>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u06cc\u06a9 \u067e\u0631\u0648\u0646\u062f\u0647 \u062c\u062f\u06cc\u062f \u067e\u0627\u06cc\u062a\u0648\u0646 \u0628\u0647 \u0646\u0627\u0645 stock_app.py \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u0648 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0622\u0646 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">import dash\nimport dash_core_components as dcc\nimport dash_html_components as html\nimport pandas as pd\nimport plotly.graph_objs as go\nfrom dash.dependencies import Input, Output\nfrom keras.models import load_model\nfrom sklearn.preprocessing import MinMaxScaler\nimport numpy as np\napp = dash.Dash()\nserver = app.server\nscaler=MinMaxScaler(feature_range=(0,1))\ndf_nse = pd.read_csv(\".\/NSE-TATA.csv\")\ndf_nse[\"Date\"]=pd.to_datetime(df_nse.Date,format=\"%Y-%m-%d\")\ndf_nse.index=df_nse['Date']\ndata=df_nse.sort_index(ascending=True,axis=0)\nnew_data=pd.DataFrame(index=range(0,len(df_nse)),columns=['Date','Close'])\nfor i in range(0,len(data)):\n    new_data[\"Date\"][i]=data['Date'][i]\n    new_data[\"Close\"][i]=data[\"Close\"][i]\nnew_data.index=new_data.Date\nnew_data.drop(\"Date\",axis=1,inplace=True)\ndataset=new_data.values\ntrain=dataset[0:987,:]\nvalid=dataset[987:,:]\nscaler=MinMaxScaler(feature_range=(0,1))\nscaled_data=scaler.fit_transform(dataset)\nx_train,y_train=[],[]\nfor i in range(60,len(train)):\n    x_train.append(scaled_data[i-60:i,0])\n    y_train.append(scaled_data[i,0])\n    \nx_train,y_train=np.array(x_train),np.array(y_train)\nx_train=np.reshape(x_train,(x_train.shape[0],x_train.shape[1],1))\nmodel=load_model(\"saved_model.h5\")\ninputs=new_data[len(new_data)-len(valid)-60:].values\ninputs=inputs.reshape(-1,1)\ninputs=scaler.transform(inputs)\nX_test=[]\nfor i in range(60,inputs.shape[0]):\n    X_test.append(inputs[i-60:i,0])\nX_test=np.array(X_test)\nX_test=np.reshape(X_test,(X_test.shape[0],X_test.shape[1],1))\nclosing_price=model.predict(X_test)\nclosing_price=scaler.inverse_transform(closing_price)\ntrain=new_data[:987]\nvalid=new_data[987:]\nvalid['Predictions']=closing_price\ndf= pd.read_csv(\".\/stock_data.csv\")\napp.layout = html.Div([\n   \n    html.H1(\"Stock Price Analysis Dashboard\", style={\"textAlign\": \"center\"}),\n   \n    dcc.Tabs(id=\"tabs\", children=[\n       \n        dcc.Tab(label='NSE-TATAGLOBAL Stock Data',children=[\n            html.Div([\n                html.H2(\"Actual closing price\",style={\"textAlign\": \"center\"}),\n                dcc.Graph(\n                    id=\"Actual Data\",\n                    figure={\n                        \"data\":[\n                            go.Scatter(\n                                x=train.index,\n                                y=valid[\"Close\"],\n                                mode='markers'\n                            )\n                        ],\n                        \"layout\":go.Layout(\n                            title='scatter plot',\n                            xaxis={'title':'Date'},\n                            yaxis={'title':'Closing Rate'}\n                        )\n                    }\n                ),\n                html.H2(\"LSTM Predicted closing price\",style={\"textAlign\": \"center\"}),\n                dcc.Graph(\n                    id=\"Predicted Data\",\n                    figure={\n                        \"data\":[\n                            go.Scatter(\n                                x=valid.index,\n                                y=valid[\"Predictions\"],\n                                mode='markers'\n                            )\n                        ],\n                        \"layout\":go.Layout(\n                            title='scatter plot',\n                            xaxis={'title':'Date'},\n                            yaxis={'title':'Closing Rate'}\n                        )\n                    }\n                )                \n            ])                \n        ]),\n        dcc.Tab(label='Facebook Stock Data', children=[\n            html.Div([\n                html.H1(\"Facebook Stocks High vs Lows\", \n                        style={'textAlign': 'center'}),\n              \n                dcc.Dropdown(id='my-dropdown',\n                             options=[{'label': 'Tesla', 'value': 'TSLA'},\n                                      {'label': 'Apple','value': 'AAPL'}, \n                                      {'label': 'Facebook', 'value': 'FB'}, \n                                      {'label': 'Microsoft','value': 'MSFT'}], \n                             multi=True,value=['FB'],\n                             style={\"display\": \"block\", \"margin-left\": \"auto\", \n                                    \"margin-right\": \"auto\", \"width\": \"60%\"}),\n                dcc.Graph(id='highlow'),\n                html.H1(\"Facebook Market Volume\", style={'textAlign': 'center'}),\n         \n                dcc.Dropdown(id='my-dropdown2',\n                             options=[{'label': 'Tesla', 'value': 'TSLA'},\n                                      {'label': 'Apple','value': 'AAPL'}, \n                                      {'label': 'Facebook', 'value': 'FB'},\n                                      {'label': 'Microsoft','value': 'MSFT'}], \n                             multi=True,value=['FB'],\n                             style={\"display\": \"block\", \"margin-left\": \"auto\", \n                                    \"margin-right\": \"auto\", \"width\": \"60%\"}),\n                dcc.Graph(id='volume')\n            ], className=\"container\"),\n        ])\n    ])\n])\n@app.callback(Output('highlow', 'figure'),\n              [Input('my-dropdown', 'value')])\ndef update_graph(selected_dropdown):\n    dropdown = {\"TSLA\": \"Tesla\",\"AAPL\": \"Apple\",\"FB\": \"Facebook\",\"MSFT\": \"Microsoft\",}\n    trace1 = []\n    trace2 = []\n    for stock in selected_dropdown:\n        trace1.append(\n          go.Scatter(x=df[df[\"Stock\"] == stock][\"Date\"],\n                     y=df[df[\"Stock\"] == stock][\"High\"],\n                     mode='lines', opacity=0.7, \n                     name=f'High {dropdown[stock]}',textposition='bottom center'))\n        trace2.append(\n          go.Scatter(x=df[df[\"Stock\"] == stock][\"Date\"],\n                     y=df[df[\"Stock\"] == stock][\"Low\"],\n                     mode='lines', opacity=0.6,\n                     name=f'Low {dropdown[stock]}',textposition='bottom center'))\n    traces = [trace1, trace2]\n    data = [val for sublist in traces for val in sublist]\n    figure = {'data': data,\n              'layout': go.Layout(colorway=[\"#5E0DAC\", '#FF4F00', '#375CB1', \n                                            '#FF7400', '#FFF400', '#FF0056'],\n            height=600,\n            title=f\"High and Low Prices for {', '.join(str(dropdown[i]) for i in selected_dropdown)} Over Time\",\n            xaxis={\"title\":\"Date\",\n                   'rangeselector': {'buttons': list([{'count': 1, 'label': '1M', \n                                                       'step': 'month', \n                                                       'stepmode': 'backward'},\n                                                      {'count': 6, 'label': '6M', \n                                                       'step': 'month', \n                                                       'stepmode': 'backward'},\n                                                      {'step': 'all'}])},\n                   'rangeslider': {'visible': True}, 'type': 'date'},\n             yaxis={\"title\":\"Price (USD)\"})}\n    return figure\n@app.callback(Output('volume', 'figure'),\n              [Input('my-dropdown2', 'value')])\ndef update_graph(selected_dropdown_value):\n    dropdown = {\"TSLA\": \"Tesla\",\"AAPL\": \"Apple\",\"FB\": \"Facebook\",\"MSFT\": \"Microsoft\",}\n    trace1 = []\n    for stock in selected_dropdown_value:\n        trace1.append(\n          go.Scatter(x=df[df[\"Stock\"] == stock][\"Date\"],\n                     y=df[df[\"Stock\"] == stock][\"Volume\"],\n                     mode='lines', opacity=0.7,\n                     name=f'Volume {dropdown[stock]}', textposition='bottom center'))\n    traces = [trace1]\n    data = [val for sublist in traces for val in sublist]\n    figure = {'data': data, \n              'layout': go.Layout(colorway=[\"#5E0DAC\", '#FF4F00', '#375CB1', \n                                            '#FF7400', '#FFF400', '#FF0056'],\n            height=600,\n            title=f\"Market Volume for {', '.join(str(dropdown[i]) for i in selected_dropdown_value)} Over Time\",\n            xaxis={\"title\":\"Date\",\n                   'rangeselector': {'buttons': list([{'count': 1, 'label': '1M', \n                                                       'step': 'month', \n                                                       'stepmode': 'backward'},\n                                                      {'count': 6, 'label': '6M',\n                                                       'step': 'month', \n                                                       'stepmode': 'backward'},\n                                                      {'step': 'all'}])},\n                   'rangeslider': {'visible': True}, 'type': 'date'},\n             yaxis={\"title\":\"Transactions Volume\"})}\n    return figure\nif __name__=='__main__':\n    app.run_server(debug=True)\n<\/pre>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u062f\u0631 \u0648\u0628 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"EnlighterJSWrapper eclipseEnlighterJSWrapper\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">python3 stock_app.py\n<\/pre>\n<\/div>\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/shahaab-co.ir\/mag\/wp-content\/uploads\/2020\/05\/%D9%BE%D8%B1%D9%88%DA%98%D9%87-%D9%BE%DB%8C%D8%B4-%D8%A8%DB%8C%D9%86%DB%8C-%D9%82%DB%8C%D9%85%D8%AA-%D8%B3%D9%87%D8%A7%D9%85-%D8%AF%D8%B1-%D9%BE%D8%A7%DB%8C%D8%AA%D9%88%D9%86.gif\" alt=\"\u067e\u0631\u0648\u0698\u0647 \u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646\" title=\"\"><\/figure>\n\n\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"%D8%AC%D9%85%D8%B9_%D8%A8%D9%86%D8%AF%DB%8C\"><\/span><b>\u062c\u0645\u0639 \u0628\u0646\u062f\u06cc<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">\u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u06cc\u06a9 \u067e\u0631\u0648\u0698\u0647 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0645\u0627\u0634\u06cc\u0646 \u0628\u0631\u0627\u06cc \u0645\u0628\u062a\u062f\u06cc\u0627\u0646 \u0627\u0633\u062a. \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0645\u0627 \u06cc\u0627\u062f \u06af\u0631\u0641\u062a\u06cc\u0645 \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u06cc\u06a9 \u0645\u062f\u0644 \u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0647\u0632\u06cc\u0646\u0647 \u0633\u0647\u0627\u0645 \u0648 \u0646\u062d\u0648\u0647 \u0633\u0627\u062e\u062a \u06cc\u06a9 \u062f\u0627\u0634\u0628\u0648\u0631\u062f \u062a\u0639\u0627\u0645\u0644\u06cc \u0628\u0631\u0627\u06cc \u062a\u062c\u0632\u06cc\u0647 \u0648 \u062a\u062d\u0644\u06cc\u0644 \u0633\u0647\u0627\u0645 \u0628\u0633\u0627\u0632\u06cc\u0645. \u0645\u0627 \u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0628\u0627\u0632\u0627\u0631 \u0633\u0647\u0627\u0645 \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u062f\u0644 LSTM \u067e\u06cc\u0627\u062f\u0647 \u0633\u0627\u0632\u06cc \u06a9\u0631\u062f\u06cc\u0645. \u0627\u0632 \u0637\u0631\u0641 \u062f\u06cc\u06af\u0631 \u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0686\u0627\u0631\u0686\u0648\u0628 \u067e\u0627\u06cc\u062a\u0648\u0646 Plotly Dash \u06cc\u06a9 \u062f\u0627\u0634\u0628\u0648\u0631\u062f \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u0698\u0647 \u0637\u0631\u0627\u062d\u06cc \u06a9\u0631\u062f\u06cc\u0645.<\/p>\n<p style=\"text-align: justify;\">\u0622\u06cc\u0627 \u0645\u0627\u06cc\u0644 \u0647\u0633\u062a\u06cc\u062f \u067e\u0631\u0648\u0698\u0647 \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u062f\u06cc\u06af\u0631\u06cc \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u06a9\u062f \u0647\u0627\u06cc \u0622\u0646 \u0647\u0627 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u0645\u061f \u0644\u0637\u0641\u0627 \u062f\u0631 \u0646\u0638\u0631\u0627\u062a \u062f\u06cc\u062f\u06af\u0627\u0647 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u0645\u0627 \u0628\u0647 \u0627\u0634\u062a\u0631\u0627\u06a9 \u0628\u06af\u0630\u0627\u0631\u06cc\u062f.<\/p>\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;7192&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u062f\u0647\u06cc\u062f!&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 \u0627\u0645\u062a\u06cc\u0627\u0632)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u067e\u06cc\u0634 \u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 - \u067e\u0631\u0648\u0698\u0647 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0645\u0627\u0634\u06cc\u0646 \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} \u0627\u0645\u062a\u06cc\u0627\u0632)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">\u0627\u0645\u062a\u06cc\u0627\u0632 \u062f\u0647\u06cc\u062f!<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0645\u0627\u0634\u06cc\u0646 \u06a9\u0627\u0631\u0628\u0631\u062f\u0647\u0627\u06cc \u0645\u0647\u0645\u06cc \u062f\u0631 \u067e\u06cc\u0634\u200c\u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u062f\u0627\u0631\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0645\u0627\u0634\u06cc\u0646\u060c \u062f\u0631 \u0645\u0648\u0631\u062f \u067e\u06cc\u0634\u200c\u0628\u06cc\u0646\u06cc \u0628\u0627\u0632\u062f\u0647 \u0633\u0647\u0627\u0645 \u0635\u062d\u0628\u062a \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u0627\u06cc\u0646 \u06cc\u06a9 \u06a9\u0627\u0631 \u0628\u0633\u06cc\u0627\u0631 \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0627\u0633\u062a \u0648 \u0628\u0627 \u0639\u062f\u0645 \u0642\u0637\u0639\u06cc\u062a \u0647\u0645\u0631\u0627\u0647 \u0627\u0633\u062a. \u0645\u0627 \u0627\u06cc\u0646 \u067e\u0631\u0648\u0698\u0647 \u0631\u0627 \u0628\u0647 \u062f\u0648 \u0628\u062e\u0634 \u0628\u0633\u0637 \u0645\u06cc\u200c\u062f\u0647\u06cc\u0645: \u0627\u0648\u0644\u060c \u0646\u062d\u0648\u0647 \u067e\u06cc\u0634\u200c\u0628\u06cc\u0646\u06cc \u0642\u06cc\u0645\u062a \u0633\u0647\u0627\u0645 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0634\u0628\u06a9\u0647 \u0639\u0635\u0628\u06cc LSTM \u0631\u0627 &hellip;<\/p>\n","protected":false},"author":17,"featured_media":7207,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","footnotes":""},"categories":[195,18],"tags":[96,84,147,126],"class_list":["post-7192","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-ml","category-edu","tag-jupyter-notebook","tag-84","tag-147","tag-126"],"_links":{"self":[{"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/posts\/7192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/comments?post=7192"}],"version-history":[{"count":0,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/posts\/7192\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/media\/7207"}],"wp:attachment":[{"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/media?parent=7192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/categories?post=7192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shahaab-co.com\/mag\/wp-json\/wp\/v2\/tags?post=7192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}