Spaces:
Sleeping
Sleeping
Commit
·
5a94297
1
Parent(s):
275da78
Initial commit with data
Browse files- .gitignore +6 -0
- app.py +24 -0
- data/kg_nodes.csv +0 -0
- pages/1_Input.py +3 -0
- project_config.py +17 -0
- requirements.txt +8 -0
.gitignore
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Ignore Mac temporary files
|
2 |
+
*.DS_Store
|
3 |
+
.DS_Store
|
4 |
+
|
5 |
+
# Ignore python cache files
|
6 |
+
__pycache__/
|
app.py
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
# Standard imports
|
4 |
+
import numpy as np
|
5 |
+
import pandas as pd
|
6 |
+
from datetime import datetime
|
7 |
+
import os
|
8 |
+
import random
|
9 |
+
|
10 |
+
# Import torch
|
11 |
+
import torch
|
12 |
+
|
13 |
+
# Data visualization
|
14 |
+
import matplotlib.pyplot as plt
|
15 |
+
import seaborn as sns
|
16 |
+
|
17 |
+
# Path manipulation
|
18 |
+
from pathlib import Path
|
19 |
+
|
20 |
+
# Custom imports
|
21 |
+
import project_config
|
22 |
+
|
23 |
+
# Page title
|
24 |
+
st.title("GRAVITY")
|
data/kg_nodes.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pages/1_Input.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
st.title("Input")
|
project_config.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
'''
|
2 |
+
PROJECT CONFIGURATION FILE
|
3 |
+
This file contains the configuration variables for the project. The variables are used
|
4 |
+
in the other scripts to define the paths to the data and results directories. The variables
|
5 |
+
are also used to set the random seed for reproducibility.
|
6 |
+
'''
|
7 |
+
|
8 |
+
# import libraries
|
9 |
+
import os
|
10 |
+
from pathlib import Path
|
11 |
+
|
12 |
+
# define project configuration variables
|
13 |
+
PROJECT_DIR = Path(os.getcwd())
|
14 |
+
DATA_DIR = PROJECT_DIR / 'data'
|
15 |
+
MODEL_DIR = PROJECT_DIR / 'models'
|
16 |
+
MEDIA_DIR = PROJECT_DIR / 'media'
|
17 |
+
SEED = 42
|
requirements.txt
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
numpy
|
2 |
+
pandas
|
3 |
+
scikit-learn
|
4 |
+
matplotlib
|
5 |
+
seaborn
|
6 |
+
pathlib
|
7 |
+
torch
|
8 |
+
altair<5
|