-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[back][front] feat: support patching score and score max of criteria (#…
…1947) Co-authored-by: Adrien Matissart <amatissart@users.noreply.github.com>
- Loading branch information
1 parent
9ad2f33
commit f92145b
Showing
24 changed files
with
643 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
from solidago.pipeline.legacy2023.parameters import PipelineParameters | ||
|
||
from tournesol.utils.constants import COMPARISON_MAX, MEHESTAN_MAX_SCALED_SCORE | ||
from tournesol.utils.constants import MEHESTAN_MAX_SCALED_SCORE | ||
|
||
|
||
class MehestanParameters(PipelineParameters): | ||
r_max = COMPARISON_MAX | ||
max_squashed_score = MEHESTAN_MAX_SCALED_SCORE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
backend/tournesol/migrations/0061_comparisoncriteriascore_score_max_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 4.2.11 on 2024-05-02 09:05 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("tournesol", "0060_remove_entity_tournesol_score"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="comparisoncriteriascore", | ||
name="score_max", | ||
field=models.IntegerField( | ||
default=10, | ||
help_text="The absolute value of the maximum score.", | ||
validators=[django.core.validators.MinValueValidator(1)], | ||
), | ||
preserve_default=False, | ||
), | ||
migrations.AlterField( | ||
model_name="comparisoncriteriascore", | ||
name="score", | ||
field=models.FloatField(help_text="Score for the given comparison"), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.