Skip to content

Commit

Permalink
monologg/koelectra-base-finetuned-nsmc / 라벨값 0~5 -> 0~10 스케일링 #31
Browse files Browse the repository at this point in the history
  • Loading branch information
SangwonYoon committed Apr 14, 2023
1 parent f85c11a commit e2ed38e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ def preprocessing(self, data):
data = data.drop(columns=self.delete_columns)
try:
if self.state == "train":
targets = data[self.target_columns].apply(lambda x: min(5, round(max(0, x + 0.1),2)) if x >= 2.5 else min(5, round(max(0, x - 0.1),2))).values.tolist()
targets = data[self.target_columns].apply(lambda x: x*2).values.tolist()
else:
targets = data[self.target_columns].values.tolist()
targets = data[self.target_columns].apply(lambda x: x*2).values.tolist()
except:
targets = []
inputs = self.tokenizing(data)
Expand All @@ -154,7 +154,7 @@ def preprocessing(self, data):


args = TrainingArguments(
"./checkpoint/baseline_Test_fine_3.073982620831417e-05/checkpoint-4664",
"./checkpoint/baseline_Test_fine_3.073982620831417e-05",
evaluation_strategy = "epoch",
save_strategy = "epoch",
learning_rate=0.00003073982620831417,
Expand Down

0 comments on commit e2ed38e

Please sign in to comment.