Skip to content

Clearml logger

Clearml logger #1902

Triggered via pull request July 17, 2023 14:44
Status Failure
Total duration 31m 44s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
test: flair/training_utils.py#L341
ruff pytest_ruff.RuffError: flair/training_utils.py:69:16: UP032 [*] Use f-string instead of `format` call | 68 | def to_tsv(self): 69 | return "{}\t{}\t{}\t{}".format( | ________________^ 70 | | self.mean_squared_error(), 71 | | self.mean_absolute_error(), 72 | | self.pearsonr(), 73 | | self.spearmanr(), 74 | | ) | |_________^ UP032 75 | 76 | @staticmethod | = help: Convert to f-string
test: flair/datasets/document_classification.py#L341
ruff pytest_ruff.RuffError: flair/datasets/document_classification.py:1480:17: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 1479 | class GLUE_SST2(CSVClassificationCorpus): 1480 | label_map = {0: "negative", 1: "positive"} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF012 1481 | 1482 | def __init__( |
test: flair/datasets/sequence_labeling.py#L341
ruff pytest_ruff.RuffError: flair/datasets/sequence_labeling.py:423:13: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 421 | SPACE_AFTER_KEY = "space-after" 422 | # special key for feature columns 423 | FEATS = ["feats", "misc"] | ^^^^^^^^^^^^^^^^^ RUF012 424 | # special key for dependency head id 425 | HEAD = ["head", "head_id"] | flair/datasets/sequence_labeling.py:425:12: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 423 | FEATS = ["feats", "misc"] 424 | # special key for dependency head id 425 | HEAD = ["head", "head_id"] | ^^^^^^^^^^^^^^^^^^^ RUF012 426 | 427 | def __init__( |
test: flair/models/relation_classifier_model.py#L341
ruff pytest_ruff.RuffError: flair/models/relation_classifier_model.py:52:32: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 50 | """The encoding of the head and tail entities in a sentence with a relation annotation.""" 51 | 52 | special_tokens: Set[str] = set() | ^^^^^ RUF012 53 | 54 | def __init__(self, add_special_tokens: bool = False) -> None: | flair/models/relation_classifier_model.py:86:32: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 84 | """ 85 | 86 | special_tokens: Set[str] = {"[HEAD]", "[TAIL]"} | ^^^^^^^^^^^^^^^^^^^^ RUF012 87 | 88 | def encode_head(self, head_span: Span, label: Label) -> str: | flair/models/relation_classifier_model.py:128:32: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 126 | """ 127 | 128 | special_tokens: Set[str] = {"[HEAD]", "[/HEAD]", "[TAIL]", "[/TAIL]"} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF012 129 | 130 | def encode_head(self, head: Span, label: Label) -> str: |
test: flair/trainers/trainer.py#L341
ruff pytest_ruff.RuffError: flair/trainers/trainer.py:38:20: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 37 | class ModelTrainer(Pluggable): 38 | valid_events = { | ____________________^ 39 | | "after_setup", 40 | | "before_training_epoch", 41 | | "before_training_batch", 42 | | "before_training_optimizer_step", 43 | | "after_training_batch", 44 | | "after_training_epoch", 45 | | "after_evaluation", 46 | | "after_training_loop", 47 | | "training_interrupt", 48 | | "_training_finally", 49 | | "_training_exception", 50 | | "after_training", 51 | | "metric_recorded", 52 | | } | |_____^ RUF012 53 | 54 | def __init__(self, model: flair.nn.Model, corpus: Corpus) -> None: |
test: tests/embedding_test_utils.py#L341
ruff pytest_ruff.RuffError: tests/embedding_test_utils.py:16:40: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 14 | is_document_embedding: bool 15 | default_args: Dict[str, Any] 16 | valid_args: List[Dict[str, Any]] = [] | ^^ RUF012 17 | invalid_args: List[Dict[str, Any]] = [] 18 | invalid_names: List[str] = [] | tests/embedding_test_utils.py:17:42: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 15 | default_args: Dict[str, Any] 16 | valid_args: List[Dict[str, Any]] = [] 17 | invalid_args: List[Dict[str, Any]] = [] | ^^ RUF012 18 | invalid_names: List[str] = [] 19 | name_field: Optional[str] = None | tests/embedding_test_utils.py:18:32: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 16 | valid_args: List[Dict[str, Any]] = [] 17 | invalid_args: List[Dict[str, Any]] = [] 18 | invalid_names: List[str] = [] | ^^ RUF012 19 | name_field: Optional[str] = None 20 | weired_texts: List[str] = [ | tests/embedding_test_utils.py:20:31: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 18 | invalid_names: List[str] = [] 19 | name_field: Optional[str] = None 20 | weired_texts: List[str] = [ | _______________________________^ 21 | | "Hybrid mesons , qq ̄ states with an admixture", 22 | | "typical proportionalities of \u223C 1nmV \u2212 1 [ 3,4 ] .", 23 | | "🤟 🤟 🤟 hüllo", 24 | | "🤟hallo 🤟 🤟 🤟 🤟", 25 | | "🤟", 26 | | "\uF8F9", 27 | | ] | |_____^ RUF012 28 | 29 | def create_embedding_from_name(self, name: str): |
test: tests/model_test_utils.py#L341
ruff pytest_ruff.RuffError: tests/model_test_utils.py:19:34: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 17 | train_label_type: str 18 | multiclass_prediction_labels: List[str] 19 | model_args: Dict[str, Any] = {} | ^^ RUF012 20 | training_args: Dict[str, Any] = {} 21 | finetune_instead_of_train: bool = False | tests/model_test_utils.py:20:37: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 18 | multiclass_prediction_labels: List[str] 19 | model_args: Dict[str, Any] = {} 20 | training_args: Dict[str, Any] = {} | ^^ RUF012 21 | finetune_instead_of_train: bool = False |
test: tests/embeddings/test_byte_pair_embeddings.py#L341
ruff pytest_ruff.RuffError: tests/embeddings/test_byte_pair_embeddings.py:9:20: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 7 | is_token_embedding = True 8 | is_document_embedding = False 9 | default_args = {"language": "en"} | ^^^^^^^^^^^^^^^^^^ RUF012 |
test: tests/embeddings/test_document_transform_word_embeddings.py#L341
ruff pytest_ruff.RuffError: tests/embeddings/test_document_transform_word_embeddings.py:22:46: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 20 | is_document_embedding = True 21 | is_token_embedding = False 22 | base_embeddings: List[TokenEmbeddings] = [word, flair_embedding] | ^^^^^^^^^^^^^^^^^^^^^^^ RUF012 23 | 24 | def create_embedding_from_name(self, name: str): | tests/embeddings/test_document_transform_word_embeddings.py:40:20: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 38 | class TestDocumentLstmEmbeddings(BaseDocumentsViaWordEmbeddingsTest): 39 | embedding_cls = DocumentRNNEmbeddings 40 | default_args = { | ____________________^ 41 | | "hidden_size": 128, 42 | | "bidirectional": False, 43 | | } | |_____^ RUF012 44 | valid_args = [{"bidirectional": False}, {"bidirectional": True}] | tests/embeddings/test_document_transform_word_embeddings.py:44:18: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 42 | "bidirectional": False, 43 | } 44 | valid_args = [{"bidirectional": False}, {"bidirectional": True}] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF012 | tests/embeddings/test_document_transform_word_embeddings.py:49:20: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 47 | class TestDocumentPoolEmbeddings(BaseDocumentsViaWordEmbeddingsTest): 48 | embedding_cls = DocumentPoolEmbeddings 49 | default_args = { | ____________________^ 50 | | "fine_tune_mode": "nonlinear", 51 | | } | |_____^ RUF012 52 | valid_args = [{"pooling": "mean"}, {"pooling": "max"}, {"pooling": "min"}] | tests/embeddings/test_document_transform_word_embeddings.py:52:18: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 50 | "fine_tune_mode": "nonlinear", 51 | } 52 | valid_args = [{"pooling": "mean"}, {"pooling": "max"}, {"pooling": "min"}] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF012 | tests/embeddings/test_document_transform_word_embeddings.py:57:20: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 55 | class TestDocumentCNNEmbeddings(BaseDocumentsViaWordEmbeddingsTest): 56 | embedding_cls = DocumentCNNEmbeddings 57 | default_args = { | ____________________^ 58 | | "kernels": ((50, 2), (50, 3)), 59 | | } | |_____^ RUF012 60 | valid_args = [{"reproject_words_dimension": None}, {"reproject_words_dimension": 100}] | tests/embeddings/test_document_transform_word_embeddings.py:60:18: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 58 | "kernels": ((50, 2), (50, 3)), 59 | } 60 | valid_args = [{"reproject_words_dimension": None}, {"reproject_words_dimension": 100}] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF012 | tests/embeddings/test_document_transform_word_embeddings.py:65:23: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 63 | class TestDocumentLMEmbeddings(BaseDocumentsViaWordEmbeddingsTest): 64 | embedding_cls = DocumentLMEmbeddings 65 | base_embeddings = [flair_embedding, flair_embedding_back] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF012 66 | default_args: Dict[str, Any] = {} | tests/embeddings/test_document_transform_word_embeddings.py:66:36: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 64 | embedding_cls = DocumentLMEmbeddings 65 | base_embeddings = [flair_embedding, flair_embedding_back] 66 | default_args: Dict[str, Any] = {} | ^^ RUF012 |
test: tests/embeddings/test_flair_embeddings.py#L341
ruff pytest_ruff.RuffError: tests/embeddings/test_flair_embeddings.py:15:20: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 13 | is_token_embedding = True 14 | is_document_embedding = False 15 | default_args = {"model": "news-forward-fast"} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF012 16 | 17 | name_field = "model" | tests/embeddings/test_flair_embeddings.py:18:21: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` | 17 | name_field = "model" 18 | invalid_names = ["other", "not/existing/path/to/embeddings"] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF012 19 | 20 | def test_fine_tunable_flair_embedding(self): |