Skip to content

Commit faa3966

Browse files
Shorter gif for cfg example; better UI; [skip ci]
Replaced the modeling config example gif with a shorter, interim data config example. This one is shorter, while still showing what needs to be shown. Improved post-config saving message of all config types to include the path to the saved config (previously only modeling configs had this, now all do).
1 parent 0b7b2c8 commit faa3966

8 files changed

Lines changed: 40 additions & 6 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ See the [usage guide](docs/usage.md) for instructions on running the workflow.
6666

6767
### Usage examples (via `ml_service`):
6868

69-
#### Modeling Configs Writing, Validation, Saving, and Viewing
69+
#### Interim Data Configs Writing, Validation, Saving, and Viewing
7070

71-
!["Gif portrayal of writing modeling configs with ml_service"](assets/gifs/ml_service_modeling_configs_v3.gif)
71+
!["Gif portrayal of writing interim data configs with ml_service"](assets/gifs/ml_service_data_configs_v1.gif)
7272

7373
**Similar functionality exists for other supported configs**
7474

327 KB
Loading
-522 KB
Binary file not shown.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
data:
2+
name: example_dataset
3+
version: v3
4+
output:
5+
path_suffix: data.parquet
6+
format: parquet
7+
compression: snappy
8+
data_schema:
9+
example_column_1: string
10+
example_column_2: integer
11+
example_column_3: float
12+
raw_data_version: v1
13+
cleaning:
14+
lowercase_columns: true
15+
strip_strings: true
16+
replace_spaces_in_columns: true
17+
replace_dashes_in_columns: true
18+
invariants:
19+
example_column_2:
20+
allowed_values:
21+
- 1
22+
- 2
23+
- 3
24+
example_column_3:
25+
allowed_values:
26+
- 0.0
27+
- 1.0
28+
- 2.0
29+
drop_duplicates: true
30+
drop_missing_ints: true
31+
min_rows: 100000
32+
lineage:
33+
created_by: Name Surname
34+
created_at: '2026-03-28T14:32:00Z'

ml_service/frontend/configs/data/callbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ def write_config(_, active_tab, yaml_text):
105105
result = r.json()
106106
if result.get("status") == "exists":
107107
return dbc.Alert(result.get("message"), color="warning"), False
108-
return dbc.Alert("Config written successfully.", color="success"), False
108+
return dbc.Alert(f"Config written successfully to {result.get('path')}.", color="success"), False

ml_service/frontend/configs/features/callbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ def write_yaml(_, name, version, yaml_text):
9090
if result.get("status") == "exists":
9191
return dbc.Alert(result.get("message"), color="warning"), False
9292

93-
return dbc.Alert("Feature config written.", color="success"), False
93+
return dbc.Alert(f"Feature set config written successfully to {result.get('path')}.", color="success"), False

ml_service/frontend/configs/pipeline_cfg/callbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ def write_config(_, data_type, algorithm, yaml_text):
9494
result = r.json()
9595
if result.get("status") == "exists":
9696
return dbc.Alert(result.get("message"), color="warning"), False
97-
return dbc.Alert("Config written successfully.", color="success"), False
97+
return dbc.Alert(f"Config written successfully to {result.get('path')}.", color="success"), False

ml_service/frontend/configs/promotion_thresholds/callbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ def write_config(_, problem_type, segment, yaml_text):
7878
result = r.json()
7979
if result.get("status") == "exists":
8080
return dbc.Alert(result.get("message"), color="warning"), False
81-
return dbc.Alert("Config written successfully.", color="success"), False
81+
return dbc.Alert(f"Config written successfully to {result.get('path')}.", color="success"), False

0 commit comments

Comments
 (0)