https://github.com/humansignal/label-studio-ml-tutorial
Label Studio ML Tutorial
https://github.com/humansignal/label-studio-ml-tutorial
Last synced: over 1 year ago
JSON representation
Label Studio ML Tutorial
- Host: GitHub
- URL: https://github.com/humansignal/label-studio-ml-tutorial
- Owner: HumanSignal
- License: apache-2.0
- Created: 2023-05-22T23:42:28.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T23:45:43.000Z (about 3 years ago)
- Last Synced: 2025-01-13T15:52:43.553Z (over 1 year ago)
- Language: Python
- Size: 24.1 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# label-studio-ml-tutorial
Label Studio Machine Learning Tutorial
## Setting up the environment
```
python3 -m venv .venv
```
## Generating pre-labeled data
```
cd sentiment_analysis
python3 generate_predictions.py \
../IMDB_train_labeled_100.csv \
../IMDB_predictions_100.json
cd ..
```
## Launching the ML backend
```
# generate the backend template
label-studio-ml init \
mlbackend \
--script sentiment_analysis/sentiment_api.py
# copy required files to the template directory
cp sentiment_analysis/sentiment_cnn.py mlbackend/.
mkdir mlbackend/data
cp sentiment_analysis/data/* mlbackend/data/.
cd mlbackend
# launch the ml backend
label-studio-ml start .
```