Make ZD Score two-tailed

This commit is contained in:
Ed Addario 2025-08-05 12:57:13 +01:00
parent 906548a00a
commit aea9b31db5
No known key found for this signature in database
GPG Key ID: E7875815A3230993
1 changed files with 1 additions and 3 deletions

View File

@ -231,9 +231,7 @@ static int compute_vector_statistics(std::vector<tensor_statistics> & tstats, co
int z_score = 0;
if (std_deviation > 0.0f) {
for (const auto act : activations) {
if (const float p = (act - mean) / std_deviation; p > 1) {
z_score++;
}
if (const float z = (act - mean) / std_deviation; std::fabs(z) > 1.0f) z_score++;
}
}