Spaces:
Sleeping
Sleeping
Commit
·
21cbf62
1
Parent(s):
060dcc2
Update app.py
Browse files
app.py
CHANGED
@@ -33,10 +33,11 @@ xgb = xgboost.XGBRegressor(
|
|
33 |
xgb.fit(X, Y)
|
34 |
|
35 |
predictions = list(xgb.predict(data))
|
|
|
36 |
|
37 |
output = pd.Series(data=predictions, index=data.index, name="XGB_Score")
|
38 |
df_total = pd.concat([data, output], axis=1)
|
39 |
-
df_total
|
40 |
|
41 |
df_total = df_total[['XGB_Score', 'mousescore_Exomiser',
|
42 |
'SDI', 'Liver_GTExTPM', 'pLI_ExAC',
|
|
|
33 |
xgb.fit(X, Y)
|
34 |
|
35 |
predictions = list(xgb.predict(data))
|
36 |
+
predictions = [round(item, 2) for item in predictions]
|
37 |
|
38 |
output = pd.Series(data=predictions, index=data.index, name="XGB_Score")
|
39 |
df_total = pd.concat([data, output], axis=1)
|
40 |
+
df_total.rename_axis('Gene').reset_index()
|
41 |
|
42 |
df_total = df_total[['XGB_Score', 'mousescore_Exomiser',
|
43 |
'SDI', 'Liver_GTExTPM', 'pLI_ExAC',
|