Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,7 +106,7 @@ def KNN_predict(train_features, train_labels, test_feature, K):
|
|
| 106 |
neighbor_imgs.append(neighbor_feature)
|
| 107 |
|
| 108 |
### get final prediction
|
| 109 |
-
final_prediction = scipy.stats.mode(major_class)
|
| 110 |
|
| 111 |
### get frequency of classes
|
| 112 |
class_freq = {}
|
|
|
|
| 106 |
neighbor_imgs.append(neighbor_feature)
|
| 107 |
|
| 108 |
### get final prediction
|
| 109 |
+
final_prediction = scipy.stats.mode(major_class)
|
| 110 |
|
| 111 |
### get frequency of classes
|
| 112 |
class_freq = {}
|