Thanks Juho for the guidance.
I'm still getting a kind of warning during the evaluation of the models Omikuji, SVC and NN (but not for fasttext), though it is working it seems:
annif eval sdg-nn /home/psm/Desktop/psm-all/sdg-iimc/set-final2/test-1332.tsv
/home/psm/annif/annif-venv/lib/python3.10/site-packages/sklearn/base.py:376: InconsistentVersionWarning: Trying to unpickle estimator TfidfTransformer from version 1.4.2 when using version 1.5.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations warnings.warn(
/home/psm/annif/annif-venv/lib/python3.10/site-packages/sklearn/base.py:376: InconsistentVersionWarning: Trying to unpickle estimator TfidfVectorizer from version 1.4.2 when using version 1.5.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations warnings.warn(
/home/psm/annif/annif-venv/lib/python3.10/site-packages/sklearn/base.py:376: InconsistentVersionWarning: Trying to unpickle estimator LinearSVC from version 1.4.2 when using version 1.5.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations warnings.warn(
2024-10-15T15:44:35.761Z INFO [omikuji::model] Loading model from data/projects/sdg-omikujiB/omikuji-model...
2024-10-15T15:44:35.762Z INFO [omikuji::model] Loading model settings from data/projects/sdg-omikujiB/omikuji-model/settings.json...
2024-10-15T15:44:35.762Z INFO [omikuji::model] Loaded model settings Settings { n_features: 455704, classifier_loss_type: Hinge }...
2024-10-15T15:44:35.762Z INFO [omikuji::model] Loading tree from data/projects/sdg-omikujiB/omikuji-model/tree0.cbor...
2024-10-15T15:44:35.782Z INFO [omikuji::model] Loading tree from data/projects/sdg-omikujiB/omikuji-model/tree1.cbor...
2024-10-15T15:44:35.803Z INFO [omikuji::model] Loading tree from data/projects/sdg-omikujiB/omikuji-model/tree2.cbor...
2024-10-15T15:44:35.823Z INFO [omikuji::model] Loaded model with 3 trees; it took 0.06s
Precision (doc avg): 0.5641
Recall (doc avg): 0.9867
F1 score (doc avg): 0.6741
Precision (subj avg): 0.4520
Recall (subj avg): 0.9593
F1 score (subj avg): 0.5963
Precision (weighted subj avg): 0.5345
Recall (weighted subj avg): 0.9715
F1 score (weighted subj avg): 0.6733
Precision (microavg): 0.4421
Recall (microavg): 0.9715
F1 score (microavg): 0.6077
F1@5: 0.6757
NDCG: 0.9740
NDCG@5: 0.9742
NDCG@10: 0.9740
Precision@1: 0.9595
Precision@3: 0.5843
Precision@5: 0.5652
True positives: 1433
False positives: 1808
False negatives: 42
Documents evaluated: 1332
The idea of creating different venv for different Annif versions is a great idea to avoid version conflicts of the components in the testing phase. I'll try that.