Polo123 commited on
Commit
4c8efc5
1 Parent(s): b0a49cf

Update logic2.py

Browse files
Files changed (1) hide show
  1. logic2.py +30 -0
logic2.py CHANGED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+ from arango import ArangoClient
3
+ from tqdm import tqdm
4
+ import numpy as np
5
+ import itertools
6
+ import requests
7
+ import sys
8
+ import oasis
9
+ from arango import ArangoClient
10
+
11
+ import torch
12
+ import torch.nn.functional as F
13
+ from torch.nn import Linear
14
+ from arango import ArangoClient
15
+ import torch_geometric.transforms as T
16
+ from torch_geometric.nn import SAGEConv, to_hetero
17
+ from torch_geometric.transforms import RandomLinkSplit, ToUndirected
18
+ from sentence_transformers import SentenceTransformer
19
+ from torch_geometric.data import HeteroData
20
+ import yaml
21
+
22
+
23
+ import pickle
24
+ #----------------------------------------------
25
+
26
+ def load_hetero_data():
27
+ with open('Hgraph.pkl', 'rb') as file:
28
+ data = pickle.load(file)
29
+ return data
30
+