CoolFace
Modelpublic

krish2505/setfitmkrt2

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes12downloads
Model Card

SetFit with sentence-transformers/all-mpnet-base-v2

This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/all-mpnet-base-v2 as the Sentence Transformer embedding model. A LogisticRegression instance is used for classification.

The model has been trained using an efficient few-shot learning technique that involves:

  1. 1.Fine-tuning a Sentence Transformer with contrastive learning.
  2. 2.Training a classification head with features from the fine-tuned Sentence Transformer.

Model Details

Model Description

Model Sources

Model Labels

Lables

0-press release/advertisement/newspaper publication<br> 1-business updates/strategic announcemet/clarification sought<br> 2-Investor meetings/board meeting<br> 3-earnings call transcript<br> 4-esop/esps<br> 5-violation/litigation/penalty<br> 6-auditors report/result<br> 7-research<br> 8-resignation<br>

LabelExamples
0<ul><li>'Announcement under Regulation 30 (LODR)-Press Release / Media Release'</li><li>'Media Release By The Company'</li><li>'Clarification on Market Rumors Regarding Product Recall'</li></ul>
1<ul><li>'Corporate Insolvency Resolution Process (CIRP)-Updates - Corporate Insolvency Resolution Process (CIRP)'</li><li>'Notice Of Record Date For Bonus Issue'</li><li>"Update To Disclosure Under Regulation 30 Of SEBI (Listing Obligations And Disclosure Requirements) Regulations, 2015 - Resolution Plan Jointly Submitted By Reliance Industries Limited And Assets Care & Reconstruction Enterprise Limited For The Resolution Of Sintex Industries Limited, Approved By Hon'Ble National Company Law Tribunal, Ahmedabad Bench"</li></ul>
2<ul><li>'Board Meeting - Un-Audited Financial Results For The Quarter Ended June 30, 2023'</li><li>'Board Meeting Outcome for Interim Dividend For The Financial Year 2022-23'</li><li>'Board Meeting Intimation for Board Meeting - 3Rd February, 2023'</li></ul>
3<ul><li>'Earnings Call - Intimation'</li><li>'Presentation On Earnings Call Update - Consolidated And Standalone Audited Financial Results Of The Bank For The Financial Year Ended March 31, 2023'</li></ul>
4<ul><li>'An official announcement under SEBI (LODR) has been made declaring the notification of the record date for ESOP Holders and Shareholders post the successful completion of the Amalgamation between XYZ Systems Ltd and our Company.'</li><li>'An official announcement under Regulation 30 (LODR) has been released concerning the successful merger of Quantum Software Solutions Limited with the company.'</li><li>'Grant Of Stock Options Under The Employee Stock Option Scheme Of The Bank (ESOP Scheme).'</li></ul>
5<ul><li>'Intimation Regarding Change in Compliance Officer Under Regulation 30 Of SEBI (Listing Obligations and Disclosure Requirements) Regulations'</li><li>'Disclosure Under Regulation 30 Of SEBI LODR Regulations (Merger or Demerger)'</li><li>'Regulation 30 Of The SEBI (Listing Obligations And Disclosure Requirements) Regulations 2015: Disclosure Of Appointment of Key Managerial Personnel'</li></ul>
6<ul><li>'Statement Of Unaudited Standalone And Consolidated Financial Results Of The Company For The Quarter And Nine Months Ended 31St December, 2022'</li><li>'Unaudited Financial Results'</li><li>'Statement Of Audited Standalone And Consolidated Financial Results Of The Company For The Quarter And Year Ended 31St March, 2023'</li></ul>
7<ul><li>"Energizing Change: Infosys-HFS Research Unveils Companies' Top 3 Priorities in the Energy Transition Era,"</li><li>'Infosys Rated A Leader In Multicloud Managed Services Providers And Cloud Migration And Managed Service Partners By Independent Research Firm'</li><li>'Cloud For Organizational Growth And Transformation Is Three Times More Important Than Cloud For Cost Optimization: Infosys Research'</li></ul>
8<ul><li>'Resignation Of Smt. Nita M. Ambani From The Board Of The Company - Disclosure Dated August 28'</li><li>'Announcement under Regulation 30 (LODR)-Resignation of Head of Customer Relations'</li><li>'Announcement under Regulation 30 (LODR)-Resignation of Head of Human Resources'</li></ul>

Evaluation

Metrics

LabelAccuracy
all0.9558

Uses

Direct Use for Inference

First install the SetFit library:

bash
pip install setfit

Then you can load this model and run inference.

python
from setfit import SetFitModel

# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("krish2505/setfitmkrt2")
# Run inference
preds = model("Infosys Unveils New AI-Powered Solutions for Enhanced Customer Experience")

<!--

Downstream Use

List how someone could finetune this model on their own dataset. -->

<!--

Out-of-Scope Use

List how the model may foreseeably be misused and address what users ought not to do with the model. -->

<!--

Bias, Risks and Limitations

What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model. -->

<!--

Recommendations

What are recommendations with respect to the foreseeable issues? For example, filtering explicit content. -->

Training Details

Training Set Metrics

Training setMinMedianMax
Word count114.727250
LabelTraining Sample Count
0142
1134
2298
366
443
553
6202
734
836

Training Hyperparameters

  • —batch_size: (64, 64)
  • —num_epochs: (2, 2)
  • —max_steps: -1
  • —sampling_strategy: oversampling
  • —num_iterations: 20
  • —bodylearningrate: (2e-05, 2e-05)
  • —headlearningrate: 2e-05
  • —loss: CosineSimilarityLoss
  • —distancemetric: cosinedistance
  • —margin: 0.25
  • —endtoend: False
  • —use_amp: False
  • —warmup_proportion: 0.1
  • —seed: 42
  • —evalmaxsteps: -1
  • —loadbestmodelatend: False

Training Results

EpochStepTraining LossValidation Loss
0.001610.1754-
0.0794500.0917-
0.15871000.0534-
0.23811500.0521-
0.31752000.0352-
0.39682500.0062-
0.47623000.0159-
0.55563500.0151-
0.63494000.0207-
0.71434500.0129-
0.79375000.0186-
0.87305500.0083-
0.95246000.002-
1.03176500.0081-
1.11117000.0263-
1.19057500.0118-
1.26988000.0196-
1.34928500.011-
1.42869000.0153-
1.50799500.0015-
1.587310000.0156-
1.666710500.0215-
1.746011000.0022-
1.825411500.003-
1.904812000.0033-
1.984112500.0155-

Framework Versions

  • —Python: 3.10.12
  • —SetFit: 1.0.3
  • —Sentence Transformers: 2.2.2
  • —Transformers: 4.36.2
  • —PyTorch: 2.0.0
  • —Datasets: 2.16.1
  • —Tokenizers: 0.15.0

Citation

BibTeX

bibtex
@article{https://doi.org/10.48550/arxiv.2209.11055,
    doi = {10.48550/ARXIV.2209.11055},
    url = {https://arxiv.org/abs/2209.11055},
    author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
    keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
    title = {Efficient Few-Shot Learning Without Prompts},
    publisher = {arXiv},
    year = {2022},
    copyright = {Creative Commons Attribution 4.0 International}
}

<!--

Glossary

Clearly define terms in order to be accessible across audiences. -->

<!--

Model Card Authors

Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction. -->

<!--

Model Card Contact

Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors. -->