Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,26 +1,11 @@
|
|
1 |
-
import
|
2 |
-
import pandas as pd
|
3 |
-
import
|
4 |
-
from
|
5 |
-
from sklearn.metrics import * # Importing function that can be used to calculate different metrics
|
6 |
-
from sklearn.model_selection import train_test_split # Importing function that can split a dataset into training and testing set
|
7 |
-
from sklearn.preprocessing import LabelEncoder, MinMaxScaler, StandardScaler # Importing functions for scaling the data
|
8 |
-
from sklearn.ensemble import AdaBoostClassifier, RandomForestClassifier, GradientBoostingClassifier, HistGradientBoostingClassifier
|
9 |
-
from sklearn.model_selection import GridSearchCV, RandomizedSearchCV # Importing GridSearchCV and RandomSearchCV
|
10 |
-
from sklearn.pipeline import make_pipeline
|
11 |
-
from sklearn.neighbors import KNeighborsClassifier
|
12 |
-
from sklearn.linear_model import LogisticRegression
|
13 |
-
from xgboost import XGBClassifier # Importing the XGBoost Classifier
|
14 |
-
from sklearn.neural_network import MLPClassifier
|
15 |
-
|
16 |
-
import matplotlib.pyplot as plt # Importing the package for plotting
|
17 |
-
plt.style.use('fivethirtyeight') # Use the styling from FiveThirtyEight Website
|
18 |
-
import seaborn as sns # Importing another package for plotting
|
19 |
-
|
20 |
-
plt.rcParams['figure.figsize'] = [10, 6] ## plot size
|
21 |
-
plt.rcParams['axes.linewidth'] = 2.0 #set the value globally
|
22 |
-
|
23 |
import gradio as gr
|
|
|
|
|
|
|
24 |
|
25 |
def greet (name):
|
26 |
return "Hello" + name + "!"
|
|
|
1 |
+
import pickle
|
2 |
+
import pandas as pd
|
3 |
+
import shap
|
4 |
+
from shap.plots._force_matplotlib import draw_additive_plot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
import gradio as gr
|
6 |
+
import numpy as np
|
7 |
+
import matplotlib.pyplot as plt
|
8 |
+
|
9 |
|
10 |
def greet (name):
|
11 |
return "Hello" + name + "!"
|