cc382e862d8be26f25ef7e639f0f74f229b1d3cd,geomstats/learning/radial_kernel_functions.py,,triangular_radial_kernel,#Any#Any#,40
Before Change
Array of non-negative real values of the same shape than
parameter "distance".
if gs.any(distance < 0):
raise ValueError("The distance should be a non-negative real number.")
if gs.any(bandwidth <= 0):
raise ValueError("The bandwidth should be a positive real number.")
scaled_distance = distance / bandwidth
weight = gs.where(
scaled_distance < 1,
1 - scaled_distance,
After Change
weight = gs.where(
scaled_distance < 1,
1 - scaled_distance,
gs.array([0], dtype=float))
return weight
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 13
Instances
Project Name: geomstats/geomstats
Commit Name: cc382e862d8be26f25ef7e639f0f74f229b1d3cd
Time: 2020-04-25
Author: yann.cabanes@u-bordeaux.fr
File Name: geomstats/learning/radial_kernel_functions.py
Class Name:
Method Name: triangular_radial_kernel
Project Name: geomstats/geomstats
Commit Name: cc382e862d8be26f25ef7e639f0f74f229b1d3cd
Time: 2020-04-25
Author: yann.cabanes@u-bordeaux.fr
File Name: geomstats/learning/radial_kernel_functions.py
Class Name:
Method Name: bump_radial_kernel
Project Name: geomstats/geomstats
Commit Name: cc382e862d8be26f25ef7e639f0f74f229b1d3cd
Time: 2020-04-25
Author: yann.cabanes@u-bordeaux.fr
File Name: geomstats/learning/radial_kernel_functions.py
Class Name:
Method Name: biweight_radial_kernel
Project Name: geomstats/geomstats
Commit Name: cc382e862d8be26f25ef7e639f0f74f229b1d3cd
Time: 2020-04-25
Author: yann.cabanes@u-bordeaux.fr
File Name: geomstats/learning/radial_kernel_functions.py
Class Name:
Method Name: cosine_radial_kernel
Project Name: geomstats/geomstats
Commit Name: cc382e862d8be26f25ef7e639f0f74f229b1d3cd
Time: 2020-04-25
Author: yann.cabanes@u-bordeaux.fr
File Name: geomstats/learning/radial_kernel_functions.py
Class Name:
Method Name: tricube_radial_kernel
Project Name: geomstats/geomstats
Commit Name: cc382e862d8be26f25ef7e639f0f74f229b1d3cd
Time: 2020-04-25
Author: yann.cabanes@u-bordeaux.fr
File Name: geomstats/learning/radial_kernel_functions.py
Class Name:
Method Name: parabolic_radial_kernel
Project Name: geomstats/geomstats
Commit Name: cc382e862d8be26f25ef7e639f0f74f229b1d3cd
Time: 2020-04-25
Author: yann.cabanes@u-bordeaux.fr
File Name: geomstats/learning/radial_kernel_functions.py
Class Name:
Method Name: triweight_radial_kernel