{"id":76436,"date":"2024-12-04T03:56:53","date_gmt":"2024-12-04T03:56:53","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=76436"},"modified":"2025-11-03T02:19:40","modified_gmt":"2025-11-03T02:19:40","slug":"1-libraries-used-for-the-project-predict-future-stock-price-using-graph-theory-machine-learning-and-deep-learning","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=76436","title":{"rendered":"1. Libraries used for the project: Predict Future Stock Price using Graph Theory, Machine Learning and Deep Learning)"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">#import libraries<\/h1>\n\n\n\n<p>import os<br>import pandas as pd<br>import math<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">#Import Libraries for Graph, GNN, and GCN<\/h1>\n\n\n\n<p>import stellargraph as sg<br>from stellargraph import StellarGraph<br>from stellargraph.layer import DeepGraphCNN<br>from stellargraph.mapper import FullBatchNodeGenerator<br>from stellargraph.mapper import PaddedGraphGenerator<br>from stellargraph.layer import GCN<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">#Machine Learnig related library Imports<\/h1>\n\n\n\n<p>from tensorflow.keras import layers, optimizers, losses, metrics, Model<br>from sklearn import preprocessing, model_selection<br>from IPython.display import display, HTML<br>import matplotlib.pyplot as plt<br>%matplotlib inline<br>from tensorflow.keras.layers import Dense, Conv1D, MaxPool1D, Dropout, Flatten<br>from tensorflow import keras<\/p>\n\n\n\n<p>import numpy as np<\/p>\n\n\n\n<p>import networkx as nx<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#import libraries import osimport pandas as pdimport math #Import Libraries for Graph, GNN, and GCN import stellargraph as sgfrom stellargraph import StellarGraphfrom stellargraph.layer import DeepGraphCNNfrom stellargraph.mapper import FullBatchNodeGeneratorfrom stellargraph.mapper import PaddedGraphGeneratorfrom stellargraph.layer import GCN #Machine Learnig related library Imports from tensorflow.keras import layers, optimizers, losses, metrics, Modelfrom sklearn import preprocessing, model_selectionfrom IPython.display import display, HTMLimport &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=76436\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1969,50,1],"tags":[],"class_list":["post-76436","post","type-post","status-publish","format-standard","hentry","category-code-predict-future-stock-price-using-graph-theory-machine-learning-and-deep-learning","category-finance","category-root","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":76086,"url":"http:\/\/bangla.sitestree.com\/?p=76086","url_meta":{"origin":76436,"position":0},"title":"Library Import in Python for ML\/Graph ML","author":"Sayed","date":"May 19, 2024","format":false,"excerpt":"import libraries import os import pandas as pd import math Import Libraries for Graph, GNN (Graph Neural Network), and GCN (Graph Convolutional Network) import stellargraph as sg from stellargraph import StellarGraph from stellargraph.layer import DeepGraphCNN from stellargraph.mapper import FullBatchNodeGenerator from stellargraph.mapper import PaddedGraphGenerator from stellargraph.layer import GCN Machine Learning related\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":76091,"url":"http:\/\/bangla.sitestree.com\/?p=76091","url_meta":{"origin":76436,"position":1},"title":"Spearman Correlation Coefficient and Graph Mining","author":"Sayed","date":"May 19, 2024","format":false,"excerpt":"#!\/usr\/bin\/env python coding: utf-8 # 3rd Model: Deepgraph CNN: Stock Price Prediction using DeepGraphCNN Neural Networks. It includes GCN layers and CNN layers. I have added an MLP at the last layer to predict stock prices. # # Input graphs were created for spearman, Spearman, and Kendal Tau correlations\/coefficients from\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16923,"url":"http:\/\/bangla.sitestree.com\/?p=16923","url_meta":{"origin":76436,"position":2},"title":"Python Libraries for Data Science esp. for NLP &#8211; Natural Language Processing","author":"Sayed","date":"February 14, 2020","format":false,"excerpt":"For NLP tasks, either you will come across these libraries or you will have to use many of these Python libraries. import nltk # tokenizer nltk.download(\"punkt\") # stop words nltk.download(\"stopwords\") from nltk.tokenize import TreebankWordTokenizer from nltk.tokenize import WordPunctTokenizer from nltk.tokenize import RegexpTokenizer from nltk.tokenize import sent_tokenize from nltk.corpus import stopwords\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65938,"url":"http:\/\/bangla.sitestree.com\/?p=65938","url_meta":{"origin":76436,"position":3},"title":"EJB 3: Entity Bean Basic #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 18, 2021","format":false,"excerpt":"Plain Java objects with persistence storage. They are not remotable and must be accessed through the new javax.persistence.EntityManager service. An entity bean implementation is provided in the following three files\/classesBeansOrder.javaLineItem.javaEntity ManagerShoppingCartBean.java\/\/Order.javaimport javax.persistence.CascadeType;import javax.persistence.Entity;import javax.persistence.FetchType;import javax.persistence.GeneratedValue; import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.OneToMany;import javax.persistence.Table;import javax.persistence.Id;import javax.persistence.CascadeType;import javax.persistence.FetchType;import java.util.ArrayList;import java.util.Collection;@Entity@Table(name = \"PURCHASE_ORDER\")public class Order implements\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26814,"url":"http:\/\/bangla.sitestree.com\/?p=26814","url_meta":{"origin":76436,"position":4},"title":"ImportAttribute.jsp  Page that demonstrates the import attribute of the page directive. Uses the ServletUtilities class #Programming Code Examples #Java\/J2EE\/J2ME #JSP","author":"Author-Check- Article-or-Video","date":"May 2, 2021","format":false,"excerpt":"ImportAttribute.jsp Page that demonstrates the import attribute of the page directive. Uses the ServletUtilities class (Check Servlet Section) <!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"> <!-- Example of the import attribute of the page directive. Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press,\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":76087,"url":"http:\/\/bangla.sitestree.com\/?p=76087","url_meta":{"origin":76436,"position":5},"title":"Python\/ML Correlation Coefficients","author":"Sayed","date":"May 19, 2024","format":false,"excerpt":"df_s_transpose_pearson = df_s_transpose.corr(method = 'pearson', numeric_only = True) df_s_transpose_pearson # Pearson Correlation Coefficient df_s_transpose_pearson = df_s_transpose.corr(method = 'pearson', numeric_only = True) df_s_transpose_pearson Pearson Correlation Coefficient based Adjacency Graph Matrix df_s_transpose_pearson[df_s_transpose_pearson >= 0.5] = 1 df_s_transpose_pearson[df_s_transpose_pearson < 0.5] = 0 df_s_transpose_pearson Create a Graph import networkx as nx Graph_pearson = nx.Graph(df_s_transpose_pearson)\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/05\/image-44.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/05\/image-44.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/05\/image-44.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/05\/image-44.png?resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/76436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=76436"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/76436\/revisions"}],"predecessor-version":[{"id":76437,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/76436\/revisions\/76437"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=76436"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=76436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}