cc382e862d8be26f25ef7e639f0f74f229b1d3cd,geomstats/learning/radial_kernel_functions.py,,inverse_quadratic_radial_kernel,#Any#Any#,311
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 = 1 / (1 + scaled_distance ** 2)
return weight
After Change
Array of non-negative real values of the same shape than
parameter "distance".
distance = _check_distance(distance)
bandwidth = _check_bandwidth(bandwidth)
scaled_distance = distance / bandwidth
weight = 1 / (1 + scaled_distance ** 2)
return weight
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 15
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: inverse_quadratic_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: logistic_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: sigmoid_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: inverse_multiquadric_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: laplacian_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: uniform_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: gaussian_radial_kernel