brainspy.utils.signal#
Set of fitness functions for genetic algorithm and loss functions for gradient descent.
Functions
|
Fitness function for genetic algorithm using accuracy of a perceptron. |
|
Fitness function for genetic algorithm using Pearson correlation. |
|
Loss function for gradient descent using a sigmoid function. |
|
Fitness function for genetic algorithm using correlation and a sigmoid function. |
|
Calculate the negative of the Fisher linear discriminant between two datasets. |
|
Fitness function for genetic algorithm using the negative of the Fisher linear discriminant. |
|
Sort and clamp the data, and find the distances between the datapoints. |
|
Measure the Pearson correlation between two sets of data (how much the two sets are linearly related). |
|
Sigmoid of nearest neighbour distance: a squashed version of a sum of all internal distances between points. |