Skip to content
Snippets Groups Projects

Fix version 0.2.0-dev3 and later

Merged Mélodie Boillet requested to merge fix-dev3 into main
All threads resolved!
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 11
5
@@ -16,7 +16,7 @@ from tests.conftest import FIXTURES
"last_3.pt",
{
"nb_chars": 43,
"cer": 1.2558,
"cer": 1.3023,
"nb_words": 9,
"wer": 1.0,
"nb_words_no_punct": 9,
@@ -25,7 +25,7 @@ from tests.conftest import FIXTURES
},
{
"nb_chars": 41,
"cer": 1.2927,
"cer": 1.2683,
"nb_words": 9,
"wer": 1.0,
"nb_words_no_punct": 9,
@@ -34,7 +34,7 @@ from tests.conftest import FIXTURES
},
{
"nb_chars": 49,
"cer": 1.102,
"cer": 1.1224,
"nb_words": 9,
"wer": 1.0,
"nb_words_no_punct": 9,
@@ -66,6 +66,12 @@ from tests.conftest import FIXTURES
"type": "max_resize",
}
],
"mean": [
242.10595854671013,
242.10595854671013,
242.10595854671013,
],
"std": [28.29919517652322, 28.29919517652322, 28.29919517652322],
},
},
),
@@ -175,12 +181,12 @@ def test_train_and_test(
}
assert res == expected_res
# Check that the parameters file is correct
# Check that the inference parameters file is correct
with (
tmp_path
/ training_config["training_params"]["output_folder"]
/ "results"
/ "parameters.yml"
/ "inference_parameters.yml"
).open() as f:
res = yaml.safe_load(f)
assert res == params_res
Loading