Skip to content
Snippets Groups Projects
Commit c4d9b2d5 authored by François  LAURENT's avatar François LAURENT
Browse files

test_train_one_class_with_encoder

parent 40b73e75
No related branches found
No related tags found
No related merge requests found
Pipeline #104560 passed
......@@ -56,10 +56,13 @@ prepareTestData() {
prepareTrainingData() {
labelfile=$1
tmpdir="$SHUNIT_TMPDIR/$2"
shift
tmpdir="$SHUNIT_TMPDIR/$1"
shift
extrafiles="sample.spine sample.outline $@"
rm -rf "$tmpdir"
mkdir -p "$tmpdir"
for file in sample.spine sample.outline "$labelfile"; do
for file in $extrafiles $labelfile; do
cp "$datapath/$file" "$tmpdir/" || exit 1
done
echo $tmpdir
......@@ -131,6 +134,17 @@ testTrainOneClassWithWeights() {
postTrain $tagger
}
testTrainOneClassWithEncoder() {
tagger="test_train_one_class_with_encoder$tagger_suffix"
tmpdir=$(prepareTrainingData gui_imported.label $tagger trx.mat)
# run
cd "$project_root"
echo "\"$larvataggerjl\" train \"$maggotuba\" \"$tmpdir\" $tagger --seed $seed --labels=\"hunch,¬hunch\" --pretrained-model=20230524-hunch-25 --balancing-strategy=maggotuba"
"$larvataggerjl" train "$maggotuba" "$tmpdir" $tagger --seed $seed --labels="hunch,¬hunch" --pretrained-model=20230524-hunch-25 --balancing-strategy=maggotuba
# test
postTrain $tagger
}
postTrain() {
tagger=$1
expected_tagger_dir="$datapath/$tagger"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment