|
Download models/README.md from PythonCreate/map-math-misconception-model: direct link, hf CLI and curl.
- Browser
- Download file 1.98 kB
-
https://huggingface.co/PythonCreate/map-math-misconception-model/resolve/main/models/README.md
- Command line
-
hf download hf://PythonCreate/map-math-misconception-model/models/README.md
-
curl -L -o README.md https://huggingface.co/PythonCreate/map-math-misconception-model/resolve/main/models/README.md
1.98 kB
| # MAP Misconception Detection โ Classical Models | |
| This repository contains classical machine learning components used for the **Kaggle MAP (Misconception Annotation Project)** competition. We developed two independent pipelines using **TF-IDF vectorization** and **Logistic Regression** for: | |
| - **Task 1**: Category classification | |
| - **Task 2**: Misconception label prediction | |
| --- | |
| ## ๐ Included Files | |
| ### ๐น Task 1 (Category Classification) | |
| | File | Description | | |
| |------|-------------| | |
| | `tfidf_task1.pkl` | TF-IDF vectorizer fitted on student answers for Task 1 | | |
| | `logreg_task1.pkl` | Trained logistic regression model for predicting `category` labels | | |
| --- | |
| ### ๐น Task 2 (Misconception Detection) | |
| | File | Description | | |
| |------|-------------| | |
| | `tfidf_task2.pkl` | TF-IDF vectorizer fitted on student answers for Task 2 | | |
| | `logreg_task2.pkl` | Trained logistic regression model for predicting misconception labels | | |
| --- | |
| ### ๐น Label Encoders | |
| | File | Description | | |
| |------|-------------| | |
| | `label_encoder_category.pkl` | LabelEncoder used to convert `category` labels into integers | | |
| | `label_encoder_miscon.pkl` | LabelEncoder used to convert misconception labels into integers | | |
| --- | |
| ## ๐ง Usage | |
| To use the models in your code: | |
| ```python | |
| import joblib | |
| # Load Task 1 components | |
| tfidf1 = joblib.load("tfidf_task1.pkl") | |
| clf1 = joblib.load("logreg_task1.pkl") | |
| # Load Task 2 components | |
| tfidf2 = joblib.load("tfidf_task2.pkl") | |
| clf2 = joblib.load("logreg_task2.pkl") | |
| # Load label encoders | |
| le_category = joblib.load("label_encoder_category.pkl") | |
| le_miscon = joblib.load("label_encoder_miscon.pkl") | |
| ๐ ๏ธ Requirements | |
| These models were trained using: | |
| - scikit-learn | |
| - joblib | |
| ```bash | |
| pip install scikit-learn joblib | |
| ``` | |
| ๐ Licens: | |
| MIT License. You are free to use, modify, and distribute this model with proper attribution. | |
| โ๏ธ Author: | |
| Godspower Maurice (PythonCreate) | |
| Created for the MAP Math Misconceptions @ Kaggle NLP competition โ 2025. | |