Athul R T
06/13/2024, 10:23 AM"{subtype}_model_pipeline.metrics":
type: tracking.MetricsDataSet
filepath: "data/08_reporting/{subtype}_metrics.json"
versioned: true
I was using above content to display metrics in catalog.yaml
.
But it throws out the following error:
Class 'tracking.JSONDataSet' not found, is this a typo?
What might be the reason for such a behaviour?Ankita Katiyar
06/13/2024, 10:24 AMDataSet
to Dataset
recently! (Capital S to lower case s). Try changing the entry to type: tracking.MetricsDataset
!Athul R T
06/13/2024, 10:26 AMAthul R T
06/13/2024, 11:06 AMreporting
folder, but while running kedro viz
UI, nothing is shown in metrics
tab of experiment-tracking
window.Ankita Katiyar
06/13/2024, 11:07 AMAthul R T
06/13/2024, 11:07 AMAthul R T
06/13/2024, 11:08 AMAnkita Katiyar
06/13/2024, 11:12 AMAthul R T
06/13/2024, 11:14 AMfrom kedro_viz.integrations.kedro.sqlite_store import SQLiteStore
SESSION_STORE_CLASS = SQLiteStore
SESSION_STORE_ARGS = {"path": str(Path(__file__).parents[2])}
It is already there in settings.py.
But when I checked the db file, metrics were not stored in that one.Athul R T
06/13/2024, 11:17 AM"{\"project_path\": \"<folder path>", \"session_id\": \"2024-06-13T11.15.06.074Z\", \"cli\": {\"args\": [], \"params\": {\"from_inputs\": [], \"to_outputs\": [], \"from_nodes\": [], \"to_nodes\": [], \"node_names\": [], \"runner\": null, \"is_async\": false, \"env\": null, \"tags\": [], \"load_versions\": {}, \"pipeline\": null, \"namespace\": null, \"config\": null, \"conf_source\": null, \"params\": {}}, \"command_name\": \"run\", \"command_path\": \"kedro run\"}, \"username\": \"athul\", \"git\": {\"commit_sha\": \"13759ce\", \"dirty\": true, \"branch\": \"main\"}}"
Only this data is found inside session_store.db
fileAnkita Katiyar
06/13/2024, 11:18 AMAthul R T
06/13/2024, 11:18 AMRavi Kumar Pilla
06/13/2024, 2:13 PMRavi Kumar Pilla
06/13/2024, 3:36 PMtest_model_pipeline.metrics
node(
func=evaluate_model,
inputs=["regressor", "X_test", "y_test"],
name="evaluate_model_node",
outputs="test_model_pipeline.metrics",
),
The metrics information seems to be passed on to UI and displayed. Could you please try re-installing kedro-viz and check again ? Thank youAthul R T
06/14/2024, 5:07 AM"{subtype}_model_pipeline.metrics":
type: kedro_mlflow.io.artifacts.MlflowArtifactDataset
dataset:
type: tracking.MetricsDataset
filepath: "data/08_reporting/{subtype}_metrics.json"
versioned: true
When I stubstituted below code, it worked.
"{subtype}_model_pipeline.metrics":
type: tracking.MetricsDataset
filepath: "data/08_reporting/{subtype}_metrics.json"
versioned: true
Athul R T
06/14/2024, 5:08 AM