CoolFace
Modelpublic

samsaara/medical_condition_classification

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes6downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

medicalconditionclassification

This model is a fine-tuned version of distilbert-base-uncased on an Drugs.com dataset. It achieves the following results on the test data set:

  • —Loss: 0.8930
  • —Accuracy: 0.7951

Model description

The Goal of the model is to predict the medical condition based on the review of the drug. There're 751 classes.

Intended uses & limitations

More information needed

Training and evaluation data

The training, evaluation & testing data can be found under samsaara/medical_condition_classification of the 🤗 Datasets and the process itself can be found in the modeling.ipynb notebook.

By default, the dataset has train, test splits. train is then further divided into train, validation splits with 0.8, 0.2 ratio. Final results shown are on the test dataset.

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 3e-05
  • —trainbatchsize: 24
  • —evalbatchsize: 24
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —num_epochs: 5
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracy
1.86250.432920001.71990.6397
1.4590.865840001.36960.6890
1.17371.298760001.21310.7172
1.0421.731680001.10140.7329
0.84312.1645100001.03220.7510
0.80122.5974120000.98890.7587
0.73123.0303140000.94970.7727
0.65613.4632160000.93380.7805
0.61323.8961180000.90730.7875
0.51954.3290200000.90110.7929
0.50154.7619220000.89300.7951

Framework versions

  • —Transformers 4.45.2
  • —Pytorch 2.4.1
  • —Datasets 3.0.1
  • —Tokenizers 0.20.1