YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
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.
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support