Path to model
- src/<model_name>
Model module structure
- imgs - plots and figures
- pickles - model files needed to reproduction, execution externally
- logs - log files if you output any
- config.py - file containing hyperparameters for execution and parameters of pickle files and ...
- model_name.py - script for exectuiioning of the model
- train(X,y, **params) -> function for training models, should output lang model + classifier
- fit(X,y) -> function for fitting the trained model with new data
- evaluate(X,y) -> function for elvauation of the model data
| Model name | Vectorization | Train tactic | Train score | DEV score | Test Score |
|---|---|---|---|---|---|
| TFIDF_LSA | LSA | (avg 10-fold CV) | 0.9658 | 0.9302 | 0.9281 |
| Stloymetric features | handcrafted-features | (avg 10-fold CV) | 0.7861 | 0.7903 | 0.7805 |
| sentence_bert | distilbert-base-nli-mean-tokens | (avg 10-fold CV) | 0.9365 | 0.9124 | 0.9113 |
| sentence_bert | roberta-large-nli-stsb-mean-tokens | (avg 10-fold CV) | 0.9623 | 0.9184 | 0.9142 |
| sentence_bert | xlm-r-large-en-ko-nli-ststb | (avg 10-fold CV) | 0.9376 | 0.9226 | 0.9124 |
| distilBERT | distilBERT-tokenizer | x | 0.9933 | 0.9807 | 0.9708 |
| stacking_probs | lsa_sentence_bert_stlyometrics | NN | 0.9710 | 0.9380 | 0.9390 |
| stacking | lsa_sentence_bert_stlyometrics | (10-fold CV) | 0.9695 | 0.9445 | 0.9425 |
| linear_SVM | Tax2Vec-+-tf-idf | 0.94 | 0.92 | ||
| linear_SVM | Tax2Vec(knowledge graph)-+-tf-idf | 0.93 | 0.93 | ||
| gradient_boosting | Tax2Vec(knowledge graph)-+-tf-idf-+-distilBERT_tokenization | 0.94 | 0.92 |
| Model name | Vectorization | 10-fold CV |
|---|---|---|
| TFIDF_LSA | LSA | 0.9436 |
| sentence_bert | distilbert-base-nli-mean-tokens | 0.9071 |
| sentence_bert | roberta-large-nli-stsb-mean-tokens | 0.9077 |
| sentence_bert | xlm-roberta-base | 0.9123 |
| Tax2Vec | Tax2Vec-+-tf-idf | 0.9335 |
| Tax2Vec - KG | distilBERT-tokenizer | 0.9350 |