Spaces:
Runtime error
Runtime error
Commit
·
f05d85e
1
Parent(s):
bdc6991
upload test
Browse files
app.py
CHANGED
|
@@ -65,6 +65,18 @@ def make_r_plot(libraries, sd,cd,dd,ld,rc,rd,rl,rn,rf):
|
|
| 65 |
plt.xlabel("No. Cross Validation")
|
| 66 |
return fig
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
def download_clf():
|
| 69 |
joblib.dump(clf,"dtc_model.m")
|
| 70 |
return "./dtc_model.m"
|
|
|
|
| 65 |
plt.xlabel("No. Cross Validation")
|
| 66 |
return fig
|
| 67 |
|
| 68 |
+
def make_clf_t_plot():
|
| 69 |
+
fig = plt.figure(figsize=(16,8))
|
| 70 |
+
index = np.arange(0, 2 * 0.2, 0.2) * 2.5
|
| 71 |
+
index = index[0:2]
|
| 72 |
+
bar = plt.bar(index, [0.860465,0.883721], 0.2, label="Testing Score", color="crimson")
|
| 73 |
+
plt.xticks( index, ['DecisioTree Score','RandomForest Score'])
|
| 74 |
+
plt.yticks(np.arange(0, 1, 0.05))
|
| 75 |
+
# plt.grid(True)
|
| 76 |
+
plt.xlabel("Model")
|
| 77 |
+
plt.ylabel("Test score")
|
| 78 |
+
return fig
|
| 79 |
+
|
| 80 |
def download_clf():
|
| 81 |
joblib.dump(clf,"dtc_model.m")
|
| 82 |
return "./dtc_model.m"
|