|
Download README.md from Mindspace-X/Mindspace-X-model: direct link, hf CLI and curl.
- Browser
- Download file 981 Bytes
-
https://huggingface.co/Mindspace-X/Mindspace-X-model/resolve/main/README.md
- Command line
-
hf download hf://Mindspace-X/Mindspace-X-model/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/Mindspace-X/Mindspace-X-model/resolve/main/README.md
981 Bytes
Mindspace AI Model - Prediction & Data Preparation
This guide explains how to generate training and test data, and how to use the prediction script.
1. Generating Train and Test Data
- Place your raw dataset (e.g.,
sample.xlsx) in thedata/directory. - Run the following script to process the data and generate
train.csvandtest.csv:
python src/dataset.py
This will:
- Read the Excel file.
- Prepare text features and labels.
- Split the data into training and test sets.
- Save
train.csvandtest.csvin thedata/folder.
2. Running Predictions
- Make sure your trained model is available in the
models/distilbertdirectory. - Run the prediction script:
python src/predict.py
This will:
- Load the trained model.
- Predict the label for a sample input.
- Print the prediction result and available labels.
For more details, check the respective Python scripts in the src/ folder.