zonova commited on
Commit
e6f657c
1 Parent(s): 66383a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -1,4 +1,17 @@
1
  import gradio as gr
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
 
1
  import gradio as gr
2
+ import xgboost
3
+ import pandas as pd
4
+ import numpy as np
5
+
6
+ xgb_reg = xgboost.XGBClassifier(tree_method = 'approx',
7
+ enable_categorical = True,
8
+ learning_rate=.1,
9
+ max_depth=2,
10
+ n_estimators=70,
11
+ early_stopping_rounds = 0,
12
+ scale_pos_weight=1)
13
+
14
+ xgb_reg.load_model('classifier_fewer_features_HH.json')
15
 
16
  def greet(name):
17
  return "Hello " + name + "!!"