generated from LufsX/Challenge-kNN
This commit is contained in:
+1
-1
@@ -58,4 +58,4 @@ if __name__ == "__main__":
|
||||
# 示例测试样本,确保维度与训练数据一致
|
||||
test_sample = np.array([65915, 3.868359, 0.128078])
|
||||
prediction = classify0(test_sample, train_data, train_labels)
|
||||
print(f"预测的分类标签: {prediction}")、
|
||||
print(f"预测的分类标签: {prediction}")
|
||||
Reference in New Issue
Block a user