Spaces:
Sleeping
Sleeping
Update app.py
Browse files80 unmodified lines81828384858687888990919280 unmodified lineslabel_record = []for i in range(len(train_features)):train_point_feature = train_features[i]test_point_feature = test_feature### (1) calculate distance between test feature and each of training data points# get distance for data point iprint("train_point_feature: ",train_point_feature.shape)print("test_point_feature: ",test_point_feature.shape)dis = scipy.spatial.distance.euclidean(train_point_feature, test_point_feature)# collect lable for datapoint i80 unmodified lines8182838485868788899080 unmodified lineslabel_record = []for i in range(len(train_features)):train_point_feature = train_features[i]test_point_feature = test_feature.flatten()### (1) calculate distance between test feature and each of training data points# get distance for data point idis = scipy.spatial.distance.euclidean(train_point_feature, test_point_feature)# collect lable for datapoint i
app.py+2-4