Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Classification with BERT

This is a project that performs classification by fine-tuning BERT (Bidirectional Encoder Representations from Transformers)

Features

  • Load and preprocess YNAT dataset
  • Text Classification using BERT model
  • Training and evaluation
  • Confustion matrix, loss plot visualization

Datasets

Preprocessing

  • Extract "title" and "label" columns (Removed "guid", "url", "date")
  • Due to class imbalance, undersampling was applied based on the class with the fewest instances.

Train model

python train.py --seed 42 --epoch 3 --model klue/bert-base --batch_size 32

Training config

  • base model: klue/bert-base
  • epochs: 3
  • learning rate: 5e-5
  • scheduler: cosine
  • weight decay: 0.01
  • batch size: 32

Performance Metrics

Metric Value
Accuracy 86.28
F1 Score 86.21
Precision 86.26
Recall 86.28

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages