Skip to content

Commit 1654654

Browse files
committed
Added layring for kedro viz
1 parent 3f11b4e commit 1654654

File tree

1 file changed

+58
-1
lines changed

1 file changed

+58
-1
lines changed

conf/base/catalog.yml

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ household_power_consumption:
1111
Date: str
1212
Time: str
1313
Global_active_power: float64
14+
metadata:
15+
kedro-viz:
16+
layer: raw
1417

1518
# Weather data - part 1
1619
weather_data_part1:
@@ -20,6 +23,9 @@ weather_data_part1:
2023
parse_dates: ['datetime', 'sunrise', 'sunset']
2124
index_col: 'datetime'
2225
sep: ","
26+
metadata:
27+
kedro-viz:
28+
layer: raw
2329

2430
# Weather data - part 2
2531
weather_data_part2:
@@ -28,6 +34,9 @@ weather_data_part2:
2834
load_args:
2935
parse_dates: ['datetime', 'sunrise', 'sunset']
3036
index_col: 'datetime'
37+
metadata:
38+
kedro-viz:
39+
layer: raw
3140

3241
# French Holidays data
3342
french_holidays:
@@ -36,6 +45,9 @@ french_holidays:
3645
load_args:
3746
parse_dates: ['date']
3847
sep: ","
48+
metadata:
49+
kedro-viz:
50+
layer: raw
3951

4052
# Processed Weather and consumption data
4153
processed_weather_and_consumption_data:
@@ -46,6 +58,9 @@ processed_weather_and_consumption_data:
4658
load_args:
4759
index_col: 0 # Load the first column as the index
4860
parse_dates: [0] # Interpret the first column (index) as dates
61+
metadata:
62+
kedro-viz:
63+
layer: processed
4964

5065
# X_train
5166
X_train:
@@ -56,6 +71,9 @@ X_train:
5671
load_args:
5772
index_col: 0
5873
parse_dates: [0]
74+
metadata:
75+
kedro-viz:
76+
layer: model_input
5977

6078
# y_train
6179
y_train:
@@ -66,6 +84,9 @@ y_train:
6684
load_args:
6785
index_col: 0
6886
parse_dates: [0]
87+
metadata:
88+
kedro-viz:
89+
layer: model_input
6990

7091
# X_test
7192
X_test:
@@ -76,6 +97,9 @@ X_test:
7697
load_args:
7798
index_col: 0
7899
parse_dates: [0]
100+
metadata:
101+
kedro-viz:
102+
layer: model_input
79103

80104
# y_test
81105
y_test:
@@ -86,11 +110,17 @@ y_test:
86110
load_args:
87111
index_col: 0
88112
parse_dates: [0]
113+
metadata:
114+
kedro-viz:
115+
layer: model_input
89116

90117
# Created Features
91118
created_features:
92119
type: json.JSONDataset
93120
filepath: data/04_reporting/created_features.json
121+
metadata:
122+
kedro-viz:
123+
layer: feature_creation
94124

95125
# train / test split visualization
96126
train_test_split_visualization:
@@ -104,57 +134,84 @@ xgboost_model:
104134
type: pickle.PickleDataset
105135
filepath: data/05_model_output/xgboost_model.pkl
106136
backend: pickle
137+
metadata:
138+
kedro-viz:
139+
layer: model
107140

108141
# Trained Random Forest model
109142
random_forest_model:
110143
type: pickle.PickleDataset
111144
filepath: data/05_model_output/random_forest_model.pkl
112145
backend: pickle
146+
metadata:
147+
kedro-viz:
148+
layer: model
113149

114150
# Trained LightGBM model
115151
lightgbm_model:
116152
type: pickle.PickleDataset
117153
filepath: data/05_model_output/lightgbm_model.pkl
118154
backend: pickle
155+
metadata:
156+
kedro-viz:
157+
layer: model
119158

120159
# xgboost feature importance plot
121160
xgboost_feature_importance_plot:
122161
type: matplotlib.MatplotlibWriter
123162
filepath: data/04_reporting/xgboost_feature_importance_plot.png
124163
save_args:
125164
format: png
165+
metadata:
166+
kedro-viz:
167+
layer: reporting
126168

127169
# lightgbm feature importance plot
128170
lightgbm_feature_importance_plot:
129171
type: matplotlib.MatplotlibWriter
130172
filepath: data/04_reporting/lightgbm_feature_importance_plot.png
131173
save_args:
132174
format: png
175+
metadata:
176+
kedro-viz:
177+
layer: reporting
133178

134179
# Random Forest feature importance plot
135180
random_forest_feature_importance_plot:
136181
type: matplotlib.MatplotlibWriter
137182
filepath: data/04_reporting/random_forest_feature_importance_plot.png
138183
save_args:
139184
format: png
185+
metadata:
186+
kedro-viz:
187+
layer: reporting
140188

141189
# real_data_and_xgboost_predictions_plot
142190
real_data_and_xgboost_predictions_plot:
143191
type: matplotlib.MatplotlibWriter
144192
filepath: data/04_reporting/real_data_and_xgboost_predictions_plot.png
145193
save_args:
146194
format: png
195+
metadata:
196+
kedro-viz:
197+
layer: reporting
147198

148199
# real_data_and_lightgbm_predictions_plot
149200
real_data_and_lightgbm_predictions_plot:
150201
type: matplotlib.MatplotlibWriter
151202
filepath: data/04_reporting/real_data_and_lightgbm_predictions_plot.png
152203
save_args:
153204
format: png
205+
metadata:
206+
kedro-viz:
207+
layer: reporting
154208

155209
# real_data_and_rf_predictions_plot
156210
real_data_and_rf_predictions_plot:
157211
type: matplotlib.MatplotlibWriter
158212
filepath: data/04_reporting/real_data_and_rf_predictions_plot.png
159213
save_args:
160-
format: png
214+
format: png
215+
metadata:
216+
kedro-viz:
217+
layer: reporting

0 commit comments

Comments
 (0)