fixed cover in our style, fixed best_scoring formula, fixed img location

This commit is contained in:
Evgeniya Sukhodolskaya
2025-07-30 20:47:18 +02:00
committed by Jenny
parent 04e60c626d
commit 56c3e3c7f4
8 changed files with 8 additions and 5 deletions
@@ -129,11 +129,14 @@ directly, we check if it’s closer to positives or negatives. The following for
potential point:
```rust
if best_positive_score > best_negative_score {
score = best_positive_score
// Sigmoid function to normalize the score between 0 and 1
let sigmoid = |x| 0.5 * (1.0 + (x / (1.0 + x.abs())));
let score = if best_positive_score > best_negative_score {
sigmoid(best_positive_score)
} else {
score = -(best_negative_score * best_negative_score)
}
-sigmoid(best_negative_score)
};
```
If the point is closer to the negatives, we penalize it by taking the negative squared value of the best negative score. For a