Skip to content

Example project for CS4295: Release Engineering for ML Applications

Notifications You must be signed in to change notification settings

nadinekuo/sms-spam-remla

 
 

Repository files navigation

SMS Spam Detection Using Machine Learning

This project is used a starting point for the course Release Engineering for Machine Learning Applications (REMLA) taught at the Delft University of Technology by Prof. Luís Cruz and Prof. Sebastian Proksch.

The codebase was originally adapted from: https://github.com/rohan8594/SMS-Spam-Detection

Instructions for Compiling

a) Clone repo.

$ git clone https://github.com/rohan8594/SMS-Spam-Detection.git
$ cd SMS-Spam-Detection

b) Install dependencies.

$ python -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

c) create output directory

mkdir output

d) Run various scripts

$ python src/get_data.py
$ python src/read_data.py
$ python src/text_preprocessing.py
$ python src/text_classification.py

e) Serve the model as a REST API

$ python src/serve_model.py

You can test the API using the following:

curl -X POST "http:https://127.0.0.1:8080/predict" -H  "accept: application/json" -d "{sms: hello world!}"

Alternatively, you can access the UI using your browser: http:https://127.0.0.1:8080/apidocs

About

Example project for CS4295: Release Engineering for ML Applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 85.8%
  • Python 14.0%
  • Dockerfile 0.2%