From 80639eea0b304b315ee346ab1e27fd373e12acfd Mon Sep 17 00:00:00 2001 From: WaylonWalker Date: Sat, 29 Feb 2020 11:38:18 -0600 Subject: [PATCH] CLEAN Formatted with black --- docs/source/conf.py | 8 +- iris_pipeline.json | 158 ++++++++++++++++++++++++++++++ kedro_cli.py | 4 +- src/default_kedro_157/pipeline.py | 3 - src/setup.py | 4 +- 5 files changed, 161 insertions(+), 16 deletions(-) create mode 100644 iris_pipeline.json diff --git a/docs/source/conf.py b/docs/source/conf.py index 8b375f9..4199734 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -189,13 +189,7 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ( - master_doc, - "default_kedro_157", - "default_kedro_157 Documentation", - [author], - 1, - ) + (master_doc, "default_kedro_157", "default_kedro_157 Documentation", [author], 1,) ] # -- Options for Texinfo output ---------------------------------------------- diff --git a/iris_pipeline.json b/iris_pipeline.json new file mode 100644 index 0000000..98fed91 --- /dev/null +++ b/iris_pipeline.json @@ -0,0 +1,158 @@ +{ + "edges": [ + { + "source": "f7b62b1a", + "target": "76ddffce" + }, + { + "source": "3f82e2e9", + "target": "76ddffce" + }, + { + "source": "76ddffce", + "target": "61aea938" + }, + { + "source": "61aea938", + "target": "23e0c9e9" + }, + { + "source": "40cc0777", + "target": "23e0c9e9" + }, + { + "source": "7fe1d536", + "target": "27087ee9" + }, + { + "source": "d577578a", + "target": "27087ee9" + }, + { + "source": "27087ee9", + "target": "3f82e2e9" + }, + { + "source": "27087ee9", + "target": "40cc0777" + }, + { + "source": "27087ee9", + "target": "57103b64" + }, + { + "source": "27087ee9", + "target": "7a1cb4c1" + }, + { + "source": "57103b64", + "target": "a158446c" + }, + { + "source": "7a1cb4c1", + "target": "a158446c" + }, + { + "source": "f1f1425b", + "target": "a158446c" + }, + { + "source": "a158446c", + "target": "f7b62b1a" + } + ], + "nodes": [ + { + "full_name": "predict", + "id": "76ddffce", + "name": "Predict", + "tags": [], + "type": "task" + }, + { + "full_name": "report_accuracy", + "id": "23e0c9e9", + "name": "Report Accuracy", + "tags": [], + "type": "task" + }, + { + "full_name": "split_data", + "id": "27087ee9", + "name": "Split Data", + "tags": [], + "type": "task" + }, + { + "full_name": "train_model", + "id": "a158446c", + "name": "Train Model", + "tags": [], + "type": "task" + }, + { + "full_name": "example_iris_data", + "id": "7fe1d536", + "name": "Example Iris Data", + "tags": [], + "type": "data" + }, + { + "full_name": "example_model", + "id": "f7b62b1a", + "name": "Example Model", + "tags": [], + "type": "data" + }, + { + "full_name": "example_predictions", + "id": "61aea938", + "name": "Example Predictions", + "tags": [], + "type": "data" + }, + { + "full_name": "example_test_x", + "id": "3f82e2e9", + "name": "Example Test X", + "tags": [], + "type": "data" + }, + { + "full_name": "example_test_y", + "id": "40cc0777", + "name": "Example Test Y", + "tags": [], + "type": "data" + }, + { + "full_name": "example_train_x", + "id": "57103b64", + "name": "Example Train X", + "tags": [], + "type": "data" + }, + { + "full_name": "example_train_y", + "id": "7a1cb4c1", + "name": "Example Train Y", + "tags": [], + "type": "data" + }, + { + "full_name": "parameters", + "id": "f1f1425b", + "name": "Parameters", + "tags": [], + "type": "parameters" + }, + { + "full_name": "params:example_test_data_ratio", + "id": "d577578a", + "name": "Params:example Test Data Ratio", + "tags": [], + "type": "parameters" + } + ], + "tags": [] +} \ No newline at end of file diff --git a/kedro_cli.py b/kedro_cli.py index 6ced0dd..9798ad1 100644 --- a/kedro_cli.py +++ b/kedro_cli.py @@ -361,9 +361,7 @@ def build_docs(open_docs): """Build the project documentation.""" python_call("pip", ["install", "src/[docs]"]) python_call("pip", ["install", "-r", "src/requirements.txt"]) - python_call( - "ipykernel", ["install", "--user", "--name=default_kedro_157"] - ) + python_call("ipykernel", ["install", "--user", "--name=default_kedro_157"]) shutil.rmtree("docs/build", ignore_errors=True) call( [ diff --git a/src/default_kedro_157/pipeline.py b/src/default_kedro_157/pipeline.py index 2c617a1..5f186b5 100644 --- a/src/default_kedro_157/pipeline.py +++ b/src/default_kedro_157/pipeline.py @@ -33,7 +33,6 @@ from typing import Dict from kedro.pipeline import Pipeline - ########################################################################### # Here you can find an example pipeline, made of two modular pipelines. # @@ -56,7 +55,6 @@ def create_pipelines(**kwargs) -> Dict[str, Pipeline]: """ - data_engineering_pipeline = de.create_pipeline() data_science_pipeline = ds.create_pipeline() @@ -65,4 +63,3 @@ def create_pipelines(**kwargs) -> Dict[str, Pipeline]: "ds": data_science_pipeline, "__default__": data_engineering_pipeline + data_science_pipeline, } - diff --git a/src/setup.py b/src/setup.py index 567cafb..9536044 100644 --- a/src/setup.py +++ b/src/setup.py @@ -28,9 +28,7 @@ from setuptools import find_packages, setup -entry_point = ( - "default-kedro-157 = default_kedro_157.run:run_package" -) +entry_point = "default-kedro-157 = default_kedro_157.run:run_package" # get the dependencies and installs