File size: 813 Bytes
63603f7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Model Directory

This folder contains the trained model and its configuration.

## Files

- `model.joblib` - Trained RandomForest classifier (serialized with joblib)
- `config.json` - Model metadata and configuration

## Model Details

- **Algorithm**: Random Forest Classifier
- **Framework**: scikit-learn
- **Features**: 6 microbial count measurements (SPC and TGN at 3 time points)
- **Classes**: 3 spoilage types (PPC, no spoilage, spore spoilage)
- **Accuracy**: ~96% on test data

## Generation

These files are generated by running:

```bash

python scripts/prepare_model.py

```

## Usage

The model is loaded by all application interfaces:
- `apps/gradio/app.py` - Gradio web interface
- `apps/fastapi/app.py` - REST API
- `apps/huggingface/handler.py` - HF Inference API