카테고리 없음
KNeighborsClassifier P parameter 설명
벤치마킹
2024. 6. 12. 01:50

P=1 은 Manhattan
P=2 는 유클리드
p : integer, optional (default = 2)
Power parameter for the Minkowski metric. When p = 1, this is
equivalent to using manhattan_distance (l1), and euclidean_distance
(l2) for p = 2. For arbitrary p, minkowski_distance (l_p) is used.
