Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,3 @@
|
|
1 |
-
import warnings
|
2 |
-
warnings.filterwarnings('ignore')
|
3 |
-
|
4 |
import numpy as np
|
5 |
import pandas as pd
|
6 |
import matplotlib.pyplot as plt
|
@@ -25,9 +22,7 @@ plt.rcParams['figure.dpi'] = 200
|
|
25 |
# Configure Seaborn plot styles: Set background color and use dark grid
|
26 |
sns.set(rc={'axes.facecolor': '#faded9'}, style='darkgrid')
|
27 |
|
28 |
-
df = pd.read_csv("
|
29 |
-
df
|
30 |
-
df.info()
|
31 |
|
32 |
# Define the continuous features
|
33 |
continuous_features = ['age', 'trestbps', 'chol', 'thalach', 'oldpeak']
|
@@ -423,12 +418,6 @@ ax.set_yticks([])
|
|
423 |
# Set x-axis limit
|
424 |
ax.set_xlim([0, 1.2])
|
425 |
|
426 |
-
# Add title and xlabel
|
427 |
-
plt.title("Recall for Positive Class across Models", fontweight='bold', fontsize=22)
|
428 |
-
plt.xlabel('Recall Value', fontsize=16)
|
429 |
-
plt.show()
|
430 |
-
|
431 |
-
!pip install gradio
|
432 |
import gradio as gr
|
433 |
import numpy as np
|
434 |
from sklearn.ensemble import RandomForestClassifier
|
|
|
|
|
|
|
|
|
1 |
import numpy as np
|
2 |
import pandas as pd
|
3 |
import matplotlib.pyplot as plt
|
|
|
22 |
# Configure Seaborn plot styles: Set background color and use dark grid
|
23 |
sns.set(rc={'axes.facecolor': '#faded9'}, style='darkgrid')
|
24 |
|
25 |
+
df = pd.read_csv("heart.csv")
|
|
|
|
|
26 |
|
27 |
# Define the continuous features
|
28 |
continuous_features = ['age', 'trestbps', 'chol', 'thalach', 'oldpeak']
|
|
|
418 |
# Set x-axis limit
|
419 |
ax.set_xlim([0, 1.2])
|
420 |
|
|
|
|
|
|
|
|
|
|
|
|
|
421 |
import gradio as gr
|
422 |
import numpy as np
|
423 |
from sklearn.ensemble import RandomForestClassifier
|