-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathMakefile
76 lines (53 loc) · 2.24 KB
/
Makefile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# conda create -n mlfs python==3.11
# conda activate mlsfs
# conda install twofish clang -y
include .env
export $(shell sed 's/=.*//' .env)
install:
@if [ -n "$$CONDA_DEFAULT_ENV" ]; then \
echo "You are in a Conda environment: $$CONDA_DEFAULT_ENV"; \
elif python -c 'import sys; exit(0 if hasattr(sys, "real_prefix") or (hasattr(sys, "base_prefix") and sys.base_prefix != sys.prefix) else 1)'; then \
echo "You are running in a Python virtual environment."; \
else \
echo "No virtual environment or Conda environment detected. Please create and activate one first, then re-run 'make install'"; \
exit 1; \
fi
pip install uv
uv pip install --all-extras --system --requirement pyproject.toml
cc-start-ui:
uv run python -m streamlit run streamlit_app.py
cc-purge:
uv run python mlfs/clean_hopsworks_resources.py cc
cc-data-generation:
uv run ipython notebooks/ccfraud/0-data-generation-with-polars.ipynb
cc-features:
uv run ipython notebooks/ccfraud/1-batch-polars-feature-pipeline.ipynb
cc-streaming-features:
uv run ipython notebooks/ccfraud/1-streaming-feature-pipeline-feldera.ipynb
cc-train:
uv run ipython notebooks/ccfraud/
cc-deploy:
uv run ipython notebooks/ccfraud/
cc-all: cc-features cc-streaming-features cc-train cc-deploy
aq-purge:
uv run python mlfs/clean_hopsworks_resources.py aq
aq-features:
uv run ipython notebooks/airquality/1_air_quality_feature_backfill.ipynb
aq-train:
uv run ipython notebooks/airquality/3_air_quality_training_pipeline.ipynb
aq-inference:
uv run ipython notebooks/airquality/2_air_quality_feature_pipeline.ipynb
uv run ipython notebooks/airquality/4_air_quality_batch_inference.ipynb
aq-llm:
uv run ipython notebooks/airquality/5_function_calling.ipynb
aq-all: aq-features aq-train aq-inference
titanic-purge:
uv run python mlfs/clean_hopsworks_resources.py titanic
titanic-features:
uv run ipython notebooks/titanic/1-titanic-feature-group-backfill.ipynb
titanic-train:
uv run ipython notebooks/titanic/2-titanic-training-pipeline.ipynb
titanic-inference:
uv run ipython notebooks/titanic/scheduled-titanic-feature-pipeline-daily.ipynb
uv run ipython notebooks/titanic/scheduled-titanic-batch-inference-daily.ipynb
titanic-all: titanic-features titanic-train titanic-inference