lucabadiali commited on
Commit
15122b5
Β·
1 Parent(s): f941b84
Files changed (1) hide show
  1. README.md +13 -57
README.md CHANGED
@@ -1,57 +1,13 @@
1
- # MLOPS_Project
2
-
3
- FASE 1)
4
- - Riuscire ad allenare un modello
5
-
6
- FASE 2)
7
-
8
-
9
- Public Colab notebook (single link)
10
-
11
- Loads a ready model: cardiffnlp/twitter-roberta-base-sentiment-latest (or -sep2022).
12
-
13
- Loads a public dataset (e.g., tweet_eval/sentiment).
14
-
15
- Runs inference + evaluation (accuracy, F1 macro, recall macro).
16
-
17
- (Optional but easy) light fine-tuning on a fraction of the data (small batch, few epochs).
18
-
19
- Shows a tiny monitoring demo: aggregate % positive/neutral/negative over a sample and plot a time series (synthetic timestamps are fine).
20
-
21
- Links to your GitHub repo at the top.
22
-
23
- Public GitHub repo
24
-
25
- src/ with:
26
-
27
- train.py β€” fine-tuning script (works on CPU/MPS/CUDA; small batch + gradient accumulation).
28
-
29
- eval.py β€” evaluate a model checkpoint on validation/test.
30
-
31
- infer.py β€” batch inference from CSV/JSONL.
32
-
33
- app.py β€” (optional) Gradio mini UI.
34
-
35
- data_utils.py β€” your subset functions + tokenization helpers.
36
-
37
- requirements.txt
38
-
39
- README.md β€” how to run locally + what the project does.
40
-
41
- .github/workflows/ci.yml β€” CI runs lint + tests + a tiny dry-run of training (e.g., 500 samples, 1 epoch).
42
-
43
- MODEL_CARD.md β€” brief model card (data, metrics, limits/bias).
44
-
45
- tests/test_smoke.py β€” imports + 10-sample training/eval smoke test.
46
-
47
- Minimal documentation (in README)
48
-
49
- Goal: monitor social sentiment for MachineInnovators Inc.
50
-
51
- Model choice: use pre-trained RoBERTa; FastText kept as optional baseline.
52
-
53
- Pipeline overview: data β†’ tokenize β†’ (optional fine-tune) β†’ evaluate β†’ artifact save β†’ (optional deploy).
54
-
55
- How to reproduce: exact commands.
56
-
57
- Monitoring idea: log predictions; compute daily sentiment mix; simple drift check (distribution shift of logits).
 
1
+ ---
2
+ title: Sentiment Analysis API
3
+ emoji: πŸ“Š
4
+ colorFrom: blue
5
+ colorTo: purple
6
+ sdk: docker
7
+ app_port: 7860
8
+ pinned: false
9
+ ---
10
+
11
+ # Sentiment Analysis API
12
+
13
+ (rest of your README here…)