generated from LufsX/Experiment-kNN
This commit is contained in:
@@ -155,6 +155,13 @@ if __name__ == "__main__":
|
||||
train_data,
|
||||
train_labels,
|
||||
)
|
||||
|
||||
try:
|
||||
import numpy as np
|
||||
print("NumPy is properly installed and working.")
|
||||
except ImportError:
|
||||
print("NumPy is not installed. Please install it using 'pip install numpy'.")
|
||||
|
||||
|
||||
print(f"预测的标签: {predicted_label}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user