Views
No views yet
random_k16randomroberta-base11612828500600076000: World1: Sports2: Business3: Sci/Tech| Metric | Value |
|---|---|
| Validation accuracy | 0.8825 |
| Validation macro F1 | 0.8823 |
| Test accuracy | 0.8699 |
| Test macro F1 | 0.8696 |
test_data.csv — transformed test data used for this runval_data.csv — transformed validation data used for this runtrain_data_sample.csv — sample of transformed training datafull_test_predictions.csv — full test predictionsmetrics.json — run metricsclassification_report.json — per-class classification reportconfusion_matrix.csv — confusion matrixtrainer_log_history.csv — Trainer log history, if available1MODEL_NAME = "roberta-base"
2SEED = 1
3TOKEN_BUDGET = 16
4MAX_SEQ_LEN = 128
5TRAIN_SAMPLES = 28500
6EPOCHS = 3
7BATCH_SIZE = 16
8LR = 2e-05
9WEIGHT_DECAY = 0.011from transformers import AutoTokenizer, AutoModelForSequenceClassification
2
3repo_id = "martian786/agnews-salient-random-k16-seed-1"
4tokenizer = AutoTokenizer.from_pretrained(repo_id)
5model = AutoModelForSequenceClassification.from_pretrained(repo_id)