CoolFace
Modelpublic

syedalvi/fyp-electra-xss-detector-v2

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
0likes2downloads
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. -->

fyp-electra-xss-detector-v2

This model is a fine-tuned version of google/electra-base-discriminator on the None dataset. It achieves the following results on the evaluation set:

  • —Loss: 0.0197
  • —Accuracy: 0.9967
  • —Precision: 1.0
  • —Recall: 0.9942
  • —F1: 0.9971

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 2e-05
  • —trainbatchsize: 16
  • —evalbatchsize: 32
  • —seed: 42
  • —optimizer: Use OptimizerNames.ADAMWTORCHFUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • —lrschedulertype: linear
  • —lrschedulerwarmup_steps: 0.1
  • —num_epochs: 5
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracyPrecisionRecallF1
0.03731.01680.03450.99331.00.98840.9942
0.01712.03360.02760.99331.00.98840.9942
0.00933.05040.00830.99671.00.99420.9971
0.00124.06720.01980.99671.00.99420.9971
0.00855.08400.01970.99671.00.99420.9971

Framework versions

  • —Transformers 5.0.0
  • —Pytorch 2.10.0+cu128
  • —Datasets 4.0.0
  • —Tokenizers 0.22.2