init
This commit is contained in:
@@ -66,7 +66,7 @@ class StockPredictor:
|
||||
id2label=self.id2label,
|
||||
label2id=self.label2id)
|
||||
args = TrainingArguments(
|
||||
f"stock_vit_predictor",
|
||||
os.path.join(self.RESOURCE_PATH, 'model', f"stock_vit_predictor"),
|
||||
save_strategy="epoch",
|
||||
evaluation_strategy="epoch",
|
||||
learning_rate=2e-5,
|
||||
@@ -75,7 +75,7 @@ class StockPredictor:
|
||||
weight_decay=0.01,
|
||||
load_best_model_at_end=True,
|
||||
metric_for_best_model="accuracy",
|
||||
logging_dir='logs',
|
||||
logging_dir=os.path.join(self.RESOURCE_PATH, 'model', 'logs'),
|
||||
remove_unused_columns=False,
|
||||
num_train_epochs=4,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user