-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from uzh-dqbm-cmi/model_with_live_data
Pipeline
- Loading branch information
Showing
10 changed files
with
114 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
xgboost_model_with_live: | ||
type: pickle.PickleDataSet | ||
filepath: /data/mridle/data/kedro_data_catalog/06_models/xgboost_with_live/xgboost_model_with_live.pkl | ||
layer: models | ||
|
||
xgboost_model_results_with_live: | ||
type: pandas.CSVDataSet | ||
filepath: /data/mridle/data/kedro_data_catalog/07_model_output/xgboost_with_live/xgboost_model_results_with_live.csv | ||
layer: model output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
from kedro.pipeline import Pipeline, node | ||
from .nodes import get_slt_with_outcome | ||
from .nodes import get_slt_with_outcome, concat_master_data | ||
|
||
|
||
def create_pipeline(**kwargs): | ||
return Pipeline( | ||
[ | ||
node( | ||
func=get_slt_with_outcome, | ||
inputs=[""], | ||
inputs=[], | ||
outputs="live_data", | ||
name="get_slt_with_outcome", | ||
), | ||
node( | ||
func=concat_master_data, | ||
inputs=["master_feature_set_na_removed", 'live_data'], | ||
outputs=["train_data_with_live", "val_data_with_live"], | ||
name="concat_master_data", | ||
) | ||
] | ||
) |
1 change: 1 addition & 0 deletions
1
src/mridle/pipelines/data_science/xgboost_with_live/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .pipeline import create_pipeline # NOQA |
Empty file.
15 changes: 15 additions & 0 deletions
15
src/mridle/pipelines/data_science/xgboost_with_live/pipeline.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from kedro.pipeline import Pipeline, node | ||
from mridle.utilities.modeling import run_experiment | ||
|
||
|
||
def create_pipeline(**kwargs): | ||
return Pipeline( | ||
[ | ||
node( | ||
func=run_experiment, | ||
inputs=["train_data_with_live", "params:models.xgboost"], | ||
outputs=["xgboost_model_with_live", "xgboost_model_results_with_live"], | ||
name="train_xgboost_model_with_live" | ||
) | ||
] | ||
) |