kgauvin603 commited on
Commit
aaf0caa
1 Parent(s): 20a7dec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +37 -1
app.py CHANGED
@@ -1,15 +1,51 @@
1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  import os
3
  import gradio as gr
4
  import joblib
5
  import subprocess
6
  import pandas as pd
7
  import json
 
 
 
 
 
 
 
 
 
 
 
 
8
  from pathlib import Path
9
  from threading import Lock
10
  from huggingface_hub import CommitScheduler
11
- import uuid
12
  from huggingface_hub import HfApi
 
 
 
 
 
13
 
14
  # Download the dataset
15
  url = "http://www.ulb.ac.be/di/map/adalpozz/data/creditcard.Rdata"
 
1
 
2
+ #import os
3
+ #import gradio as gr
4
+ #import joblib
5
+ #import subprocess
6
+ #import pandas as pd
7
+ #import json
8
+ #from pathlib import Path
9
+ #from threading import Lock
10
+ #from huggingface_hub import CommitScheduler
11
+ #import uuid
12
+ #from huggingface_hub import HfApi
13
+
14
+ import seaborn as sns
15
+ import pandas as pd
16
+ import numpy as np
17
+ import pyod
18
+ import pyreadr
19
+ import urllib
20
+ import rdata
21
+ import wget
22
  import os
23
  import gradio as gr
24
  import joblib
25
  import subprocess
26
  import pandas as pd
27
  import json
28
+ import uuid
29
+ from sklearn.metrics import f1_score, confusion_matrix
30
+ from pyod.models.mcd import MCD
31
+ from pyod.utils.data import generate_data
32
+ from pyod.utils.data import evaluate_print
33
+ from sklearn.datasets import fetch_openml
34
+ from sklearn.preprocessing import StandardScaler, OneHotEncoder
35
+ from sklearn.compose import make_column_transformer
36
+ from sklearn.pipeline import make_pipeline
37
+ from sklearn.model_selection import train_test_split
38
+ from sklearn.linear_model import LinearRegression
39
+ from sklearn.metrics import mean_squared_error, r2_score
40
  from pathlib import Path
41
  from threading import Lock
42
  from huggingface_hub import CommitScheduler
 
43
  from huggingface_hub import HfApi
44
+ from IPython.display import display, HTML
45
+ import warnings
46
+
47
+ # Ignore all warnings
48
+ warnings.filterwarnings("ignore")
49
 
50
  # Download the dataset
51
  url = "http://www.ulb.ac.be/di/map/adalpozz/data/creditcard.Rdata"