Spaces:
Sleeping
Sleeping
eaglelandsonce
commited on
Commit
•
2ca977e
1
Parent(s):
3f8eceb
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
# app.py
|
2 |
-
|
3 |
import streamlit as st
|
4 |
import pandas as pd
|
5 |
import numpy as np
|
6 |
-
from
|
7 |
-
from
|
8 |
-
from
|
9 |
-
from
|
10 |
import matplotlib.pyplot as plt
|
11 |
import seaborn as sns
|
12 |
|
@@ -22,7 +22,7 @@ This Streamlit app simulates a precision medicine system that predicts the effec
|
|
22 |
**Disclaimer:** This is a simulation using synthetic data and is intended for educational purposes only. It should not be used for clinical decision-making.
|
23 |
""")
|
24 |
|
25 |
-
# --- Data Simulation
|
26 |
|
27 |
st.header('1. Data Simulation')
|
28 |
|
|
|
1 |
# app.py
|
2 |
+
import sklearn as sk
|
3 |
import streamlit as st
|
4 |
import pandas as pd
|
5 |
import numpy as np
|
6 |
+
from sk.ensemble import RandomForestClassifier
|
7 |
+
from sk.model_selection import train_test_split
|
8 |
+
from sk.metrics import accuracy_score, roc_curve, auc
|
9 |
+
from sk.decomposition import PCA
|
10 |
import matplotlib.pyplot as plt
|
11 |
import seaborn as sns
|
12 |
|
|
|
22 |
**Disclaimer:** This is a simulation using synthetic data and is intended for educational purposes only. It should not be used for clinical decision-making.
|
23 |
""")
|
24 |
|
25 |
+
# --- Data Simulation --
|
26 |
|
27 |
st.header('1. Data Simulation')
|
28 |
|