Thanks to visit codestin.com
Credit goes to github.com

Skip to content
View 2505552499's full-sized avatar
  • Zhengzhou City
  • 05:20 (UTC +08:00)

Highlights

  • Pro

Block or report 2505552499

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
2505552499/README.md

Kaggle LLM Classification Finetuning

This repository contains a notebook for LLM classification fine-tuning and a couple of helper scripts.

New scripts

  • optimize_weights.py – tunes ensemble weights for multiple model predictions using a validation dataset. It expects probability arrays (.npy) from different models and the ground truth labels in one-hot format. The script saves the optimal weights to opt_weights.npy.

  • make_submission.py – generates submission.csv by combining model probabilities with the specified weights. If opt_weights.npy is present it will be used, otherwise default weights [2.0, 0.99, 0.0] are applied.

Both scripts rely on numpy, pandas, scikit-learn and scipy. They are designed to run in the Kaggle environment where the necessary prediction files are available.

# Example usage
python optimize_weights.py y_val.npy prob_m0.npy prob_m3.npy prob_qlora.npy
python make_submission.py --test_file test.parquet

Popular repositories Loading

  1. songshanbei songshanbei Public

    Python 1

  2. wudaozhiping wudaozhiping Public

    JavaScript 1

  3. henu-tech-achievements henu-tech-achievements Public

    河南大学科技创新团队成果展示网站

    HTML 1

  4. TechSpar TechSpar Public

    Forked from AnnaSuSu/TechSpar

    把专项训练、简历面试、JD 备面、实时 Copilot 与录音复盘,串成一个持续进化的技术面试闭环。在线体验地址:https://techspar.top

    TypeScript 1

  5. 2505552499 2505552499 Public

    Config files for my GitHub profile.

    Jupyter Notebook

  6. Springboot Springboot Public

    Java