Concrete123 commited on
Commit
06c9e4d
·
1 Parent(s): 886d11d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -1,8 +1,5 @@
1
  import numpy as np
2
  import pandas as pd
3
- from sklearn.model_selection import train_test_split,cross_val_score
4
- from sklearn import datasets
5
- import scipy.stats as stats
6
  import xgboost as xgb
7
  import pandas as pd
8
 
@@ -12,12 +9,11 @@ import random
12
 
13
  x_strength=df_strength.iloc[:,:-1]
14
  y_strength=df_strength.iloc[:,-1]
15
- from sklearn.model_selection import train_test_split
16
- x_train, x_test, y_train, y_test=train_test_split(x_strength,y_strength, test_size=0.15, random_state=2)
17
 
18
 
19
  clf = XGBRegressor(learning_rate=0.1788, max_depth=27, subsample=0.5146, n_estimators=100)
20
- clf.fit(x_train, y_train)
21
 
22
 
23
 
 
1
  import numpy as np
2
  import pandas as pd
 
 
 
3
  import xgboost as xgb
4
  import pandas as pd
5
 
 
9
 
10
  x_strength=df_strength.iloc[:,:-1]
11
  y_strength=df_strength.iloc[:,-1]
12
+
 
13
 
14
 
15
  clf = XGBRegressor(learning_rate=0.1788, max_depth=27, subsample=0.5146, n_estimators=100)
16
+ clf.fit(x_strength, y_strength)
17
 
18
 
19