Skip to content

Commit

Permalink
Major Revisions
Browse files Browse the repository at this point in the history
Changes made to the requirements file to be compatible with Python 3.8. Unused imports removed. Inference page removed
  • Loading branch information
prakharrathi25 committed Jun 21, 2021
1 parent 97b5a21 commit 0a53f1f
Show file tree
Hide file tree
Showing 10 changed files with 419 additions and 319 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Custom imports
from multipage import MultiPage
from pages import data_upload, machine_learning, metadata, data_visualize, redundant, inference # import your pages here
from pages import data_upload, machine_learning, metadata, data_visualize, redundant # import your pages here

# Create an instance of the app
app = MultiPage()
Expand Down
561 changes: 402 additions & 159 deletions data/main_data.csv

Large diffs are not rendered by default.

21 changes: 9 additions & 12 deletions data/metadata/column_type_desc.csv
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
column_name,type
Country,object
Region,categorical
Happiness Rank,numerical
Happiness Score,numerical
Standard Error,numerical
Economy (GDP per Capita),numerical
Family,numerical
Health (Life Expectancy),numerical
Freedom,numerical
Trust (Government Corruption),numerical
Generosity,numerical
Dystopia Residual,numerical
_id,numerical
ags2,categorical
bundesland,categorical
ags5,numerical
kreis,object
kr_to_be,numerical
kr_to_bett,numerical
kr_to_ga,numerical
kr_to_gue,numerical
2 changes: 1 addition & 1 deletion data/metadata/model_params.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"X": ["Happiness Rank"], "y": "Happiness Score", "pred_type": "Regression"}
{"X": ["bundesland", "ags5", "kr_to_ga", "kr_to_bett"], "y": "kr_to_be", "pred_type": "Regression"}
Binary file modified data/metadata/model_reg.sav
Binary file not shown.
3 changes: 0 additions & 3 deletions pages/data_upload.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import collections
from numpy.core.defchararray import lower
import streamlit as st
import numpy as np
import pandas as pd
from pages import utils
import streamlit.components.v1 as components

# @st.cache
def app():
Expand Down
2 changes: 0 additions & 2 deletions pages/data_visualize.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from numpy.core.defchararray import index
import streamlit as st
import numpy as np
import pandas as pd
from pages import utils
import matplotlib.pyplot as plt
import seaborn as sns
import altair as alt
import os

def app():
Expand Down
50 changes: 0 additions & 50 deletions pages/inference.py

This file was deleted.

6 changes: 3 additions & 3 deletions pages/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ def isCategorical(col):
return True
return False

def getProfile(data):
report = ProfileReport(data)
report.to_file(output_file = 'data/output.html')
# def getProfile(data):
# report = ProfileReport(data)
# report.to_file(output_file = 'data/output.html')

def getColumnTypes(cols):
Categorical=[]
Expand Down
91 changes: 3 additions & 88 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,89 +1,4 @@
altair==4.1.0
argon2-cffi==20.1.0
astor==0.8.1
async-generator==1.10
attrs==21.2.0
backcall==0.2.0
base58==2.1.0
bleach==3.3.0
blinker==1.4
cachetools==4.2.2
certifi==2020.12.5
cffi==1.14.5
chardet==4.0.0
click==8.0.0
colorama==0.4.4
cycler==0.10.0
decorator==5.0.9
defusedxml==0.7.1
entrypoints==0.3
gitdb==4.0.7
GitPython==3.1.17
idna==2.10
importlib-metadata==4.0.1
ipykernel==5.5.5
ipython==7.16.1
ipython-genutils==0.2.0
ipywidgets==7.6.3
jedi==0.18.0
Jinja2==3.0.0
joblib==1.0.1
jsonschema==3.2.0
jupyter-client==6.1.12
jupyter-core==4.7.1
jupyterlab-pygments==0.1.2
jupyterlab-widgets==1.0.0
kiwisolver==1.3.1
MarkupSafe==2.0.0
matplotlib==3.3.2
mistune==0.8.4
nbclient==0.5.3
nbconvert==6.0.7
nbformat==5.1.3
nest-asyncio==1.5.1
notebook==6.3.0
numpy==1.19.5
packaging==20.9
pandas==1.1.5
pandocfilters==1.4.3
parso==0.8.2
pickleshare==0.7.5
Pillow==8.2.0
prometheus-client==0.10.1
prompt-toolkit==3.0.18
protobuf==3.17.0
pyarrow==4.0.0
pycparser==2.20
pydeck==0.6.2
Pygments==2.9.0
pyparsing==2.4.7
pyrsistent==0.17.3
python-dateutil==2.8.1
pytz==2021.1
pywin32==300
pywinpty==0.5.7
pyzmq==22.0.3
requests==2.25.1
scikit-learn==0.24.2
scipy==1.5.4
seaborn==0.11.1
Send2Trash==1.5.0
six==1.16.0
smmap==4.0.0
streamlit==0.80.0
terminado==0.9.5
testpath==0.4.4
threadpoolctl==2.1.0
toml==0.10.2
toolz==0.11.1
tornado==6.1
traitlets==4.3.3
typing-extensions==3.10.0.0
tzlocal==2.1
urllib3==1.26.4
validators==0.18.2
watchdog==2.1.1
wcwidth==0.2.5
webencodings==0.5.1
widgetsnbextension==3.5.1
zipp==3.4.1
pandas==1.2.4
streamlit==0.83.0
matplotlib==3.4.2

0 comments on commit 0a53f1f

Please sign in to comment.