How juiyya/cnn-gs-mlp works
This repository delivers a Streamlit app that classifies an already-recorded or hypothetical São Paulo cellphone-theft occurrence as robbery or theft. The user supplies four contextual attributes; the app transforms them with the saved preprocessor, runs the selected MLP, and displays the class and both probabilities. The notebook documents the broader data preparation, model comparison, and evaluation workflow that produced the deployed artifacts. Training-stage links are based on README descriptions; the notebook contents were not sampled.
Main entry points: app.py Input and results UI · GS_Classificacao_Roubo_vs_Furto.ipynb Data preparation · preprocess.joblib Saved preprocessor · mlp_sp.keras Selected MLP
Components 14
Classification app
- Input and results UI
app.py - Occurrence features
app.py - Feature transformation
app.py - MLP inference
app.py - Class and probabilities
app.py
Model development
- Data preparation
GS_Classificacao_Roubo_vs_Furto.ipynb - Train-only preprocessing
GS_Classificacao_Roubo_vs_Furto.ipynb - MLP comparison and training
GS_Classificacao_Roubo_vs_Furto.ipynb - Validation and test evaluation
GS_Classificacao_Roubo_vs_Furto.ipynb
Deployed artifacts
- Prepared records
celular_2024.parquet - Saved preprocessor
preprocess.joblib - Selected MLP
mlp_sp.keras
Other components
- User
- SSP-SP records
Connections 15
- User → Input and results UI: enters attributes
README.md - Input and results UI → Occurrence features: collects inputs
app.py - Input and results UI → Feature transformation: transforms inputs
app.py - Saved preprocessor → Feature transformation: provides transform
app.py - Input and results UI → MLP inference: predicts
app.py - Selected MLP → MLP inference: provides model
app.py - MLP inference → Class and probabilities: returns probabilities
app.py - Class and probabilities → User: shows result
app.py - SSP-SP records → Data preparation: supplies records
README.md - Data preparation → Prepared records: prepares records
- Data preparation → Train-only preprocessing: prepares features
README.md - Train-only preprocessing → MLP comparison and training: feeds training
README.md - MLP comparison and training → Validation and test evaluation: evaluates models
README.md - MLP comparison and training → Selected MLP: saves selected model
README.md - Train-only preprocessing → Saved preprocessor: saves transforms
README.md