Package pyvision :: Package ml :: Module knn :: Class RobustPNorm
[hide private]
[frames] | no frames]

Class RobustPNorm

source code

Instance Methods [hide private]
 
__init__(self, p, scale=1.0)
Distances along axes are transformed by a sigmoid such that they are locally linear but not allowed to grow too large in the case of a large distance.
source code
 
__call__(self, points, data) source code
Method Details [hide private]

__init__(self, p, scale=1.0)
(Constructor)

source code 

Distances along axes are transformed by a sigmoid such that they are locally linear but not allowed to grow too large in the case of a large distance.

Parameters:
  • scale - adjust the size of the robust bins