From 0fb970ff4856ba1eb4afd6b1538be428431959f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=B7=D1=83=D1=80=20=D0=93=D1=80=D0=B5=D1=82?= =?UTF-8?q?=D0=B0=20=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D1=8C=D0=B5=D0=B2=D0=BD?= =?UTF-8?q?=D0=B0?= <gemazur_1@edu.hse.ru> Date: Tue, 25 Mar 2025 22:20:36 +0300 Subject: [PATCH] micro zapusk no cross --- .ipynb_checkpoints/trytoubload-checkpoint.py | 12 ++++++++++++ trytoubload.py | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/.ipynb_checkpoints/trytoubload-checkpoint.py b/.ipynb_checkpoints/trytoubload-checkpoint.py index 23e61a5..b483626 100644 --- a/.ipynb_checkpoints/trytoubload-checkpoint.py +++ b/.ipynb_checkpoints/trytoubload-checkpoint.py @@ -1,6 +1,18 @@ from transformers import BertTokenizer, BertForSequenceClassification from peft import PeftModel import torch +import os +import pandas as pd +import torch +import numpy as np +import matplotlib.pyplot as plt +from sklearn.model_selection import train_test_split +from sklearn.metrics import f1_score, precision_score, recall_score +from sklearn.utils.class_weight import compute_class_weight +from datasets import Dataset, load_from_disk +from transformers import BertTokenizer, BertPreTrainedModel, BertModel, Trainer, TrainingArguments +from torch import nn +from peft import get_peft_model, LoraConfig, TaskType class MultiTaskBert(BertPreTrainedModel): diff --git a/trytoubload.py b/trytoubload.py index 23e61a5..b483626 100644 --- a/trytoubload.py +++ b/trytoubload.py @@ -1,6 +1,18 @@ from transformers import BertTokenizer, BertForSequenceClassification from peft import PeftModel import torch +import os +import pandas as pd +import torch +import numpy as np +import matplotlib.pyplot as plt +from sklearn.model_selection import train_test_split +from sklearn.metrics import f1_score, precision_score, recall_score +from sklearn.utils.class_weight import compute_class_weight +from datasets import Dataset, load_from_disk +from transformers import BertTokenizer, BertPreTrainedModel, BertModel, Trainer, TrainingArguments +from torch import nn +from peft import get_peft_model, LoraConfig, TaskType class MultiTaskBert(BertPreTrainedModel): -- GitLab