fix(frontend): update ModelInfoResponse types to match backend structure

- Update TypeScript types to match flat backend response structure
- Remove nested model_info and metrics objects
- Remove label_config, use labels array and per_class_metrics array
- Update all component references to use new structure
- Generate default colors for prediction labels in CandleChart
- Fix TypeScript type errors for nullable model_version
- Remove accuracy/F1 metrics display (not in new response)
This commit is contained in:
Marko Djordjevic 2026-02-15 21:39:38 +01:00
parent aa81d4f3d0
commit 5a7c901980
95 changed files with 326 additions and 63 deletions

View file

@ -0,0 +1,23 @@
artifact_path: file:///home/homoludens/projekti/bitcon/candle_annotator/services/ml/mlruns/358560345319124639/models/m-cf12ffc008e047e1a37f58efe209422c/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-cf12ffc008e047e1a37f58efe209422c
model_size_bytes: 793682
model_uuid: m-cf12ffc008e047e1a37f58efe209422c
prompts: null
run_id: 509970efc3e0494ba3c2fbd7dd24d438
utc_time_created: '2026-02-15 20:33:18.754593'

View file

@ -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

View file

@ -0,0 +1,7 @@
python: 3.13.5
build_dependencies:
- pip
- setuptools==82.0.0
- wheel
dependencies:
- -r requirements.txt

View file

@ -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