fix(ml): complete ML pipeline fixes and setup
- Fix CCI indicator to use HLC prices instead of close only - Parse datetime column when loading enriched CSV - Strip timezone from annotation timestamps - Fix TA-Lib pattern names (CDL3WHITESOLDIERS, CDL3BLACKCROWS) - Exclude programmatic label columns from training features - Fix classification report to handle missing classes - Update MLflow tracking to use localhost:5000 - Grant PostgreSQL permissions to ml_user Pipeline now runs successfully end-to-end: - Feature engineering: 2543 rows, 31 columns - Annotation ingestion: 286 samples - Training: 89.47% test accuracy with Random Forest
This commit is contained in:
parent
ceb4103ec4
commit
aa81d4f3d0
348 changed files with 1327 additions and 11 deletions
|
|
@ -0,0 +1,23 @@
|
|||
artifact_path: file:///home/homoludens/projekti/bitcon/candle_annotator/services/ml/mlruns/358560345319124639/models/m-045042d4be424487a3c0ff303d90466d/artifacts
|
||||
flavors:
|
||||
python_function:
|
||||
env:
|
||||
conda: conda.yaml
|
||||
virtualenv: python_env.yaml
|
||||
loader_module: mlflow.sklearn
|
||||
model_path: model.pkl
|
||||
predict_fn: predict
|
||||
python_version: 3.13.5
|
||||
sklearn:
|
||||
code: null
|
||||
pickled_model: model.pkl
|
||||
serialization_format: cloudpickle
|
||||
sklearn_version: 1.8.0
|
||||
skops_trusted_types: null
|
||||
mlflow_version: 3.9.0
|
||||
model_id: m-045042d4be424487a3c0ff303d90466d
|
||||
model_size_bytes: 793682
|
||||
model_uuid: m-045042d4be424487a3c0ff303d90466d
|
||||
prompts: null
|
||||
run_id: f1a0c7b223484d019564929940766c10
|
||||
utc_time_created: '2026-02-15 20:29:38.262687'
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
channels:
|
||||
- conda-forge
|
||||
dependencies:
|
||||
- python=3.13.5
|
||||
- pip
|
||||
- pip:
|
||||
- mlflow==3.9.0
|
||||
- cloudpickle==3.1.2
|
||||
- numpy==2.4.2
|
||||
- pandas==2.3.3
|
||||
- psutil==7.2.2
|
||||
- pyarrow==22.0.0
|
||||
- scikit-learn==1.8.0
|
||||
- scipy==1.17.0
|
||||
name: mlflow-env
|
||||
Binary file not shown.
|
|
@ -0,0 +1,7 @@
|
|||
python: 3.13.5
|
||||
build_dependencies:
|
||||
- pip
|
||||
- setuptools==82.0.0
|
||||
- wheel
|
||||
dependencies:
|
||||
- -r requirements.txt
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
mlflow==3.9.0
|
||||
cloudpickle==3.1.2
|
||||
numpy==2.4.2
|
||||
pandas==2.3.3
|
||||
psutil==7.2.2
|
||||
pyarrow==22.0.0
|
||||
scikit-learn==1.8.0
|
||||
scipy==1.17.0
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
artifact_location: file:///home/homoludens/projekti/bitcon/candle_annotator/services/ml/mlruns/358560345319124639/models/m-045042d4be424487a3c0ff303d90466d/artifacts
|
||||
creation_timestamp: 1771187378036
|
||||
experiment_id: '358560345319124639'
|
||||
last_updated_timestamp: 1771187384983
|
||||
model_id: m-045042d4be424487a3c0ff303d90466d
|
||||
model_type: ''
|
||||
name: model
|
||||
source_run_id: f1a0c7b223484d019564929940766c10
|
||||
status: 2
|
||||
status_message: null
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376598 0.8947368421052632 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376658 0.8928571428571429 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376682 0.896551724137931 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376614 0.8947044334975369 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376707 0.0 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376626 0.8949312937516204 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376641 0.8064516129032258 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376666 1.0 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376691 0.0 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376650 1.0 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376674 0.8125 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376699 0.0 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376484 1.0 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376492 1.0 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
1771187376501 1.0 0 f1a0c7b223484d019564929940766c10
|
||||
|
|
@ -0,0 +1 @@
|
|||
balanced
|
||||
|
|
@ -0,0 +1 @@
|
|||
15
|
||||
|
|
@ -0,0 +1 @@
|
|||
2
|
||||
|
|
@ -0,0 +1 @@
|
|||
5
|
||||
|
|
@ -0,0 +1 @@
|
|||
random_forest
|
||||
|
|
@ -0,0 +1 @@
|
|||
3
|
||||
|
|
@ -0,0 +1 @@
|
|||
200
|
||||
|
|
@ -0,0 +1 @@
|
|||
2820
|
||||
|
|
@ -0,0 +1 @@
|
|||
-1
|
||||
|
|
@ -0,0 +1 @@
|
|||
57
|
||||
|
|
@ -0,0 +1 @@
|
|||
207
|
||||
|
|
@ -0,0 +1 @@
|
|||
22
|
||||
|
|
@ -0,0 +1 @@
|
|||
42
|
||||
|
|
@ -0,0 +1 @@
|
|||
temporal
|
||||
|
|
@ -0,0 +1 @@
|
|||
0.2
|
||||
|
|
@ -0,0 +1 @@
|
|||
121
|
||||
|
|
@ -0,0 +1 @@
|
|||
84
|
||||
|
|
@ -0,0 +1 @@
|
|||
2
|
||||
|
|
@ -0,0 +1 @@
|
|||
0.1
|
||||
|
|
@ -0,0 +1 @@
|
|||
ceb4103ec4eefe0f0b6444db2bab6efbe6526f5e
|
||||
|
|
@ -0,0 +1 @@
|
|||
pipeline.py
|
||||
|
|
@ -0,0 +1 @@
|
|||
LOCAL
|
||||
|
|
@ -0,0 +1 @@
|
|||
homoludens
|
||||
Loading…
Add table
Add a link
Reference in a new issue