CoolFace
Modelpublic

pitangent-ds/GPT2-genre-detection

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes20downloads
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. -->

GPT2-genre-detection

This model is a fine-tuned version of gpt2 on the datadrivenscience/movie-genre-prediction dataset. It achieves the following results on the evaluation set:

  • —Loss: 1.5267
  • —Accuracy: 0.4593
  • —Matthews Correlation: 0.1010

description

Data-Driven Science organized a competition where in the goal was to fine tune a model that can predict the genre of a movie from a given synopsis. There were a total of 10 genres as follows:

json
{
    "0": "horror",
    "1": "adventure",
    "2": "action",
    "3": "crime",
    "4": "mystery",
    "5": "family",
    "6": "scifi",
    "7": "thriller",
    "8": "fantasy",
    "9": "romance"
  }

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 2e-05
  • —trainbatchsize: 8
  • —evalbatchsize: 32
  • —seed: 85855289
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: cosine
  • —lrschedulerwarmup_ratio: 0.05
  • —num_epochs: 2

Training results

Training LossEpochStepValidation LossAccuracyMatthews Correlation
1.57651.0101251.55620.45890.0899
1.50582.0202501.52670.45930.1010

Framework versions

  • —Transformers 4.36.2
  • —Pytorch 2.1.0+cu121
  • —Datasets 2.16.0
  • —Tokenizers 0.15.0