mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Bias updates bug fix
This commit is contained in:
@ -233,6 +233,14 @@ float constrain(float a, float max)
|
||||
return a;
|
||||
}
|
||||
|
||||
float mse_array(float *a, int n)
|
||||
{
|
||||
int i;
|
||||
float sum = 0;
|
||||
for(i = 0; i < n; ++i) sum += a[i]*a[i];
|
||||
return sqrt(sum/n);
|
||||
}
|
||||
|
||||
void normalize_array(float *a, int n)
|
||||
{
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user