MCPcopy Create free account
hub / github.com/codewithzichao/Machine_Learning_Code / cal_distance

Method cal_distance

KNN/KNN_python.py:48–55  ·  view source on GitHub ↗

计算两个样本之间的距离,使用欧式距离 :param x1: 第一个样本 :param x2: 第二步样本 :return: 样本之间的距离

(self,x1,x2)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

get_KMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected