Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from ravi-kumar-pilla/release/v1.0.0
Browse files Browse the repository at this point in the history
test release3 aa94739
github-actions[bot] committed Mar 9, 2024
0 parents commit 076cc92
Showing 46 changed files with 2,584 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
2 changes: 2 additions & 0 deletions 14bc9bf54256a8b7f8a7.worker.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions 14bc9bf54256a8b7f8a7.worker.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @license kiwi.js v1.1.2
* #------------------------------------------------------------------------------
* # Copyright (c) 2013, Nucleic Development Team & H. Rutjes.
* #
* # Distributed under the terms of the Modified BSD License.
* #
* # The full license is in the file COPYING.txt, distributed with this software.
* #------------------------------------------------------------------------------
**/
1 change: 1 addition & 0 deletions api/deploy-viz-metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"timestamp": "09.03.2024 01:11:29", "version": "8.0.1"}
617 changes: 617 additions & 0 deletions api/main

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions api/nodes/23c94afb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "pandas.parquet_dataset.ParquetDataset",
"filepath": "/home/runner/work/shareableviz-action/shareableviz-action/data/03_primary/model_input_table.pq",
"run_command": "kedro run --to-outputs=model_input_table",
"preview": null,
"preview_type": null,
"stats": null
}
14 changes: 14 additions & 0 deletions api/nodes/28754fab
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"code": "def create_model_input_table(\n shuttles: pd.DataFrame, companies: pd.DataFrame, reviews: pd.DataFrame\n) -> pd.DataFrame:\n \"\"\"Combines all data to create a model input table.\n\n Args:\n shuttles: Preprocessed data for shuttles.\n companies: Preprocessed data for companies.\n reviews: Raw data for reviews.\n Returns:\n Model input table.\n\n \"\"\"\n rated_shuttles = shuttles.merge(reviews, left_on=\"id\", right_on=\"shuttle_id\")\n rated_shuttles = rated_shuttles.drop(\"id\", axis=1)\n model_input_table = rated_shuttles.merge(\n companies, left_on=\"company_id\", right_on=\"id\"\n )\n model_input_table = model_input_table.dropna()\n return model_input_table\n",
"filepath": "shareableviz-action/src/spaceflights_pandas_viz/pipelines/data_processing/nodes.py",
"parameters": {},
"run_command": "kedro run --to-nodes=create_model_input_table_node",
"inputs": [
"preprocessed_shuttles",
"preprocessed_companies",
"reviews"
],
"outputs": [
"model_input_table"
]
}
13 changes: 13 additions & 0 deletions api/nodes/2ab3579f
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"code": "def train_model(X_train: pd.DataFrame, y_train: pd.Series) -> LinearRegression:\n \"\"\"Trains the linear regression model.\n\n Args:\n X_train: Training data of independent features.\n y_train: Training data for price.\n\n Returns:\n Trained model.\n \"\"\"\n regressor = LinearRegression()\n regressor.fit(X_train, y_train)\n return regressor\n",
"filepath": "shareableviz-action/src/spaceflights_pandas_viz/pipelines/data_science/nodes.py",
"parameters": {},
"run_command": "kedro run --to-nodes=train_model_node",
"inputs": [
"X_train",
"y_train"
],
"outputs": [
"regressor"
]
}
31 changes: 31 additions & 0 deletions api/nodes/329e963c
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"code": "def split_data(data: pd.DataFrame, parameters: Dict) -> Tuple:\n \"\"\"Splits data into features and targets training and test sets.\n\n Args:\n data: Data containing features and target.\n parameters: Parameters defined in parameters/data_science.yml.\n Returns:\n Split data.\n \"\"\"\n X = data[parameters[\"features\"]]\n y = data[\"price\"]\n X_train, X_test, y_train, y_test = train_test_split(\n X, y, test_size=parameters[\"test_size\"], random_state=parameters[\"random_state\"]\n )\n return X_train, X_test, y_train, y_test\n",
"filepath": "shareableviz-action/src/spaceflights_pandas_viz/pipelines/data_science/nodes.py",
"parameters": {
"model_options": {
"test_size": 0.2,
"random_state": 3,
"features": [
"engines",
"passenger_capacity",
"crew",
"d_check_complete",
"moon_clearance_complete",
"iata_approved",
"company_rating",
"review_scores_rating"
]
}
},
"run_command": "kedro run --to-nodes=split_data_node",
"inputs": [
"model_input_table",
"params:model_options"
],
"outputs": [
"X_train",
"X_test",
"y_train",
"y_test"
]
}
8 changes: 8 additions & 0 deletions api/nodes/369acf98
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "matplotlib.matplotlib_writer.MatplotlibWriter",
"filepath": "/home/runner/work/shareableviz-action/shareableviz-action/data/08_reporting/dummy_confusion_matrix.png",
"run_command": "kedro run --to-outputs=dummy_confusion_matrix",
"preview": null,
"preview_type": "ImagePreview",
"stats": null
}
8 changes: 8 additions & 0 deletions api/nodes/493ad53a
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "pandas.parquet_dataset.ParquetDataset",
"filepath": "/home/runner/work/shareableviz-action/shareableviz-action/data/02_intermediate/preprocessed_companies.pq",
"run_command": "kedro run --to-outputs=preprocessed_companies",
"preview": null,
"preview_type": null,
"stats": null
}
8 changes: 8 additions & 0 deletions api/nodes/4ca0be7b
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "tracking.json_dataset.JSONDataset",
"filepath": "/home/runner/work/shareableviz-action/shareableviz-action/data/09_tracking/companies_columns.json",
"run_command": "kedro run --to-outputs=companies_columns",
"preview": null,
"preview_type": "JSONTrackingPreview",
"stats": null
}
90 changes: 90 additions & 0 deletions api/nodes/7b2c6e04
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"type": "pandas.csv_dataset.CSVDataset",
"filepath": "/home/runner/work/shareableviz-action/shareableviz-action/data/01_raw/reviews.csv",
"run_command": null,
"preview": {
"index": [
0,
1,
2,
3,
4
],
"columns": [
"shuttle_id",
"review_scores_rating",
"review_scores_comfort",
"review_scores_amenities",
"review_scores_trip",
"review_scores_crew",
"review_scores_location",
"review_scores_price",
"number_of_reviews",
"reviews_per_month"
],
"data": [
[
45163,
91.0,
10.0,
9.0,
9.0,
9.0,
9.0,
9.0,
26,
0.77
],
[
49438,
96.0,
10.0,
10.0,
10.0,
10.0,
10.0,
9.0,
61,
0.62
],
[
10750,
97.0,
10.0,
10.0,
10.0,
10.0,
10.0,
10.0,
467,
4.66
],
[
4146,
95.0,
10.0,
10.0,
10.0,
10.0,
9.0,
9.0,
318,
3.22
],
[
5067,
97.0,
10.0,
9.0,
10.0,
10.0,
9.0,
10.0,
22,
0.29
]
]
},
"preview_type": "TablePreview",
"stats": null
}
12 changes: 12 additions & 0 deletions api/nodes/81b5866f
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"code": "def compare_passenger_capacity_go(preprocessed_shuttles: pd.DataFrame):\n\n data_frame = (\n preprocessed_shuttles.groupby([\"shuttle_type\"])\n .mean(numeric_only=True)\n .reset_index()\n )\n fig = go.Figure(\n [\n go.Bar(\n x=data_frame[\"shuttle_type\"],\n y=data_frame[\"passenger_capacity\"],\n )\n ]\n )\n\n return fig\n",
"filepath": "shareableviz-action/src/spaceflights_pandas_viz/pipelines/reporting/nodes.py",
"parameters": {},
"run_command": null,
"inputs": [
"preprocessed_shuttles"
],
"outputs": [
"shuttle_passenger_capacity_plot_go"
]
}
8 changes: 8 additions & 0 deletions api/nodes/872981f9
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "io.memory_dataset.MemoryDataset",
"filepath": null,
"run_command": "kedro run --to-outputs=X_test",
"preview": null,
"preview_type": null,
"stats": null
}
8 changes: 8 additions & 0 deletions api/nodes/93d834e1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "pickle.pickle_dataset.PickleDataset",
"filepath": "/home/runner/work/shareableviz-action/shareableviz-action/data/06_models/regressor.pickle",
"run_command": "kedro run --to-outputs=regressor",
"preview": null,
"preview_type": null,
"stats": null
}
8 changes: 8 additions & 0 deletions api/nodes/966b9734
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "tracking.metrics_dataset.MetricsDataset",
"filepath": "/home/runner/work/shareableviz-action/shareableviz-action/data/09_tracking/metrics.json",
"run_command": "kedro run --to-outputs=metrics",
"preview": null,
"preview_type": "MetricsTrackingPreview",
"stats": null
}
12 changes: 12 additions & 0 deletions api/nodes/97202ac0
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"code": "def compare_passenger_capacity_exp(preprocessed_shuttles: pd.DataFrame):\n return (\n preprocessed_shuttles.groupby([\"shuttle_type\"])\n .mean(numeric_only=True)\n .reset_index()\n )\n",
"filepath": "shareableviz-action/src/spaceflights_pandas_viz/pipelines/reporting/nodes.py",
"parameters": {},
"run_command": null,
"inputs": [
"preprocessed_shuttles"
],
"outputs": [
"shuttle_passenger_capacity_plot_exp"
]
}
8 changes: 8 additions & 0 deletions api/nodes/9ca016a8
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "io.memory_dataset.MemoryDataset",
"filepath": null,
"run_command": "kedro run --to-outputs=y_train",
"preview": null,
"preview_type": null,
"stats": null
}
13 changes: 13 additions & 0 deletions api/nodes/9e16ddd2
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"code": "def preprocess_companies(companies: pd.DataFrame) -> Tuple[pd.DataFrame, Dict]:\n \"\"\"Preprocesses the data for companies.\n\n Args:\n companies: Raw data.\n Returns:\n Preprocessed data, with `company_rating` converted to a float and\n `iata_approved` converted to boolean.\n \"\"\"\n companies[\"iata_approved\"] = _is_true(companies[\"iata_approved\"])\n companies[\"company_rating\"] = _parse_percentage(companies[\"company_rating\"])\n return companies, {\"columns\": companies.columns.tolist(), \"data_type\": \"companies\"}\n",
"filepath": "shareableviz-action/src/spaceflights_pandas_viz/pipelines/data_processing/nodes.py",
"parameters": {},
"run_command": "kedro run --to-nodes=preprocess_companies_node",
"inputs": [
"companies"
],
"outputs": [
"preprocessed_companies",
"companies_columns"
]
}
8 changes: 8 additions & 0 deletions api/nodes/a9506115
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "plotly.plotly_dataset.PlotlyDataset",
"filepath": "/home/runner/work/shareableviz-action/shareableviz-action/data/08_reporting/shuttle_passenger_capacity_plot_exp.json",
"run_command": "kedro run --to-outputs=shuttle_passenger_capacity_plot_exp",
"preview": null,
"preview_type": "PlotlyPreview",
"stats": null
}
14 changes: 14 additions & 0 deletions api/nodes/aadc655d
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"code": "def evaluate_model(\n regressor: LinearRegression, X_test: pd.DataFrame, y_test: pd.Series\n) -> Dict[str, float]:\n \"\"\"Calculates and logs the coefficient of determination.\n\n Args:\n regressor: Trained model.\n X_test: Testing data of independent features.\n y_test: Testing data for price.\n \"\"\"\n y_pred = regressor.predict(X_test)\n score = r2_score(y_test, y_pred)\n mae = mean_absolute_error(y_test, y_pred)\n me = max_error(y_test, y_pred)\n logger = logging.getLogger(__name__)\n logger.info(\"Model has a coefficient R^2 of %.3f on test data.\", score)\n return {\"r2_score\": score, \"mae\": mae, \"max_error\": me}\n",
"filepath": "shareableviz-action/src/spaceflights_pandas_viz/pipelines/data_science/nodes.py",
"parameters": {},
"run_command": "kedro run --to-nodes=evaluate_model_node",
"inputs": [
"regressor",
"X_test",
"y_test"
],
"outputs": [
"metrics"
]
}
18 changes: 18 additions & 0 deletions api/nodes/ab512939
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"model_options": {
"test_size": 0.2,
"random_state": 3,
"features": [
"engines",
"passenger_capacity",
"crew",
"d_check_complete",
"moon_clearance_complete",
"iata_approved",
"company_rating",
"review_scores_rating"
]
}
}
}
12 changes: 12 additions & 0 deletions api/nodes/acdb05cf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"code": "def preprocess_shuttles(shuttles: pd.DataFrame) -> pd.DataFrame:\n \"\"\"Preprocesses the data for shuttles.\n\n Args:\n shuttles: Raw data.\n Returns:\n Preprocessed data, with `price` converted to a float and `d_check_complete`,\n `moon_clearance_complete` converted to boolean.\n \"\"\"\n shuttles[\"d_check_complete\"] = _is_true(shuttles[\"d_check_complete\"])\n shuttles[\"moon_clearance_complete\"] = _is_true(shuttles[\"moon_clearance_complete\"])\n shuttles[\"price\"] = _parse_money(shuttles[\"price\"])\n return shuttles\n",
"filepath": "shareableviz-action/src/spaceflights_pandas_viz/pipelines/data_processing/nodes.py",
"parameters": {},
"run_command": "kedro run --to-nodes=preprocess_shuttles_node",
"inputs": [
"shuttles"
],
"outputs": [
"preprocessed_shuttles"
]
}
60 changes: 60 additions & 0 deletions api/nodes/aed46479
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"type": "pandas.csv_dataset.CSVDataset",
"filepath": "/home/runner/work/shareableviz-action/shareableviz-action/data/01_raw/companies.csv",
"run_command": null,
"preview": {
"index": [
0,
1,
2,
3,
4
],
"columns": [
"id",
"company_rating",
"company_location",
"total_fleet_count",
"iata_approved"
],
"data": [
[
3888,
"100%",
"Isle of Man",
1.0,
"f"
],
[
46728,
"100%",
null,
1.0,
"f"
],
[
34618,
"38%",
"Isle of Man",
1.0,
"f"
],
[
28619,
"100%",
"Bosnia and Herzegovina",
1.0,
"f"
],
[
8240,
null,
"Chile",
1.0,
"t"
]
]
},
"preview_type": "TablePreview",
"stats": null
}
8 changes: 8 additions & 0 deletions api/nodes/c071dac9
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "pandas.parquet_dataset.ParquetDataset",
"filepath": "/home/runner/work/shareableviz-action/shareableviz-action/data/02_intermediate/preprocessed_shuttles.pq",
"run_command": "kedro run --to-outputs=preprocessed_shuttles",
"preview": null,
"preview_type": null,
"stats": null
}
8 changes: 8 additions & 0 deletions api/nodes/c1311718
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "plotly.json_dataset.JSONDataset",
"filepath": "/home/runner/work/shareableviz-action/shareableviz-action/data/08_reporting/shuttle_passenger_capacity_plot_go.json",
"run_command": "kedro run --to-outputs=shuttle_passenger_capacity_plot_go",
"preview": null,
"preview_type": "PlotlyPreview",
"stats": null
}
8 changes: 8 additions & 0 deletions api/nodes/cae2d1c7
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "io.memory_dataset.MemoryDataset",
"filepath": null,
"run_command": "kedro run --to-outputs=X_train",
"preview": null,
"preview_type": null,
"stats": null
}
12 changes: 12 additions & 0 deletions api/nodes/d75ec4b0
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"code": "def create_confusion_matrix(companies: pd.DataFrame):\n actuals = [0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1]\n predicted = [1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1]\n data = {\"y_Actual\": actuals, \"y_Predicted\": predicted}\n df = pd.DataFrame(data, columns=[\"y_Actual\", \"y_Predicted\"])\n confusion_matrix = pd.crosstab(\n df[\"y_Actual\"], df[\"y_Predicted\"], rownames=[\"Actual\"], colnames=[\"Predicted\"]\n )\n sn.heatmap(confusion_matrix, annot=True)\n return plt\n",
"filepath": "shareableviz-action/src/spaceflights_pandas_viz/pipelines/reporting/nodes.py",
"parameters": {},
"run_command": null,
"inputs": [
"companies"
],
"outputs": [
"dummy_confusion_matrix"
]
}
8 changes: 8 additions & 0 deletions api/nodes/f1d596c2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "pandas.excel_dataset.ExcelDataset",
"filepath": "/home/runner/work/shareableviz-action/shareableviz-action/data/01_raw/shuttles.xlsx",
"run_command": null,
"preview": null,
"preview_type": "TablePreview",
"stats": null
}
8 changes: 8 additions & 0 deletions api/nodes/f6d9538c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "io.memory_dataset.MemoryDataset",
"filepath": null,
"run_command": "kedro run --to-outputs=y_test",
"preview": null,
"preview_type": null,
"stats": null
}
617 changes: 617 additions & 0 deletions api/pipelines/__default__

Large diffs are not rendered by default.

250 changes: 250 additions & 0 deletions api/pipelines/data_processing
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
{
"nodes": [
{
"id": "aed46479",
"name": "companies",
"tags": [],
"pipelines": [
"__default__",
"data_processing",
"reporting"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "pandas.csv_dataset.CSVDataset",
"stats": null
},
{
"id": "9e16ddd2",
"name": "preprocess_companies_node",
"tags": [],
"pipelines": [
"__default__",
"data_processing"
],
"type": "task",
"modular_pipelines": [],
"parameters": {}
},
{
"id": "493ad53a",
"name": "preprocessed_companies",
"tags": [],
"pipelines": [
"__default__",
"data_processing"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "pandas.parquet_dataset.ParquetDataset",
"stats": null
},
{
"id": "4ca0be7b",
"name": "companies_columns",
"tags": [],
"pipelines": [
"__default__",
"data_processing"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "tracking.json_dataset.JSONDataset",
"stats": null
},
{
"id": "acdb05cf",
"name": "preprocess_shuttles_node",
"tags": [],
"pipelines": [
"__default__",
"data_processing"
],
"type": "task",
"modular_pipelines": [],
"parameters": {}
},
{
"id": "f1d596c2",
"name": "shuttles",
"tags": [],
"pipelines": [
"__default__",
"data_processing"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "pandas.excel_dataset.ExcelDataset",
"stats": null
},
{
"id": "c071dac9",
"name": "preprocessed_shuttles",
"tags": [],
"pipelines": [
"__default__",
"data_processing",
"reporting"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "pandas.parquet_dataset.ParquetDataset",
"stats": null
},
{
"id": "28754fab",
"name": "create_model_input_table_node",
"tags": [],
"pipelines": [
"__default__",
"data_processing"
],
"type": "task",
"modular_pipelines": [],
"parameters": {}
},
{
"id": "7b2c6e04",
"name": "reviews",
"tags": [],
"pipelines": [
"__default__",
"data_processing"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "pandas.csv_dataset.CSVDataset",
"stats": null
},
{
"id": "23c94afb",
"name": "model_input_table",
"tags": [],
"pipelines": [
"__default__",
"data_processing",
"data_science"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "pandas.parquet_dataset.ParquetDataset",
"stats": null
}
],
"edges": [
{
"source": "9e16ddd2",
"target": "4ca0be7b"
},
{
"source": "aed46479",
"target": "9e16ddd2"
},
{
"source": "28754fab",
"target": "23c94afb"
},
{
"source": "c071dac9",
"target": "28754fab"
},
{
"source": "7b2c6e04",
"target": "28754fab"
},
{
"source": "acdb05cf",
"target": "c071dac9"
},
{
"source": "f1d596c2",
"target": "acdb05cf"
},
{
"source": "9e16ddd2",
"target": "493ad53a"
},
{
"source": "493ad53a",
"target": "28754fab"
}
],
"layers": [],
"tags": [],
"pipelines": [
{
"id": "__default__",
"name": "__default__"
},
{
"id": "data_processing",
"name": "data_processing"
},
{
"id": "reporting",
"name": "reporting"
},
{
"id": "data_science",
"name": "data_science"
}
],
"modular_pipelines": {
"__root__": {
"id": "__root__",
"name": "__root__",
"inputs": [],
"outputs": [],
"children": [
{
"id": "493ad53a",
"type": "data"
},
{
"id": "28754fab",
"type": "task"
},
{
"id": "f1d596c2",
"type": "data"
},
{
"id": "acdb05cf",
"type": "task"
},
{
"id": "c071dac9",
"type": "data"
},
{
"id": "7b2c6e04",
"type": "data"
},
{
"id": "aed46479",
"type": "data"
},
{
"id": "9e16ddd2",
"type": "task"
},
{
"id": "4ca0be7b",
"type": "data"
},
{
"id": "23c94afb",
"type": "data"
}
]
}
},
"selected_pipeline": "data_processing"
}
297 changes: 297 additions & 0 deletions api/pipelines/data_science
Original file line number Diff line number Diff line change
@@ -0,0 +1,297 @@
{
"nodes": [
{
"id": "23c94afb",
"name": "model_input_table",
"tags": [],
"pipelines": [
"__default__",
"data_processing",
"data_science"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "pandas.parquet_dataset.ParquetDataset",
"stats": null
},
{
"id": "329e963c",
"name": "split_data_node",
"tags": [],
"pipelines": [
"__default__",
"data_science"
],
"type": "task",
"modular_pipelines": [],
"parameters": {
"model_options": {
"test_size": 0.2,
"random_state": 3,
"features": [
"engines",
"passenger_capacity",
"crew",
"d_check_complete",
"moon_clearance_complete",
"iata_approved",
"company_rating",
"review_scores_rating"
]
}
}
},
{
"id": "ab512939",
"name": "params:model_options",
"tags": [],
"pipelines": [
"__default__",
"data_science"
],
"type": "parameters",
"modular_pipelines": [],
"layer": null,
"dataset_type": null,
"stats": null
},
{
"id": "cae2d1c7",
"name": "X_train",
"tags": [],
"pipelines": [
"__default__",
"data_science"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "io.memory_dataset.MemoryDataset",
"stats": null
},
{
"id": "872981f9",
"name": "X_test",
"tags": [],
"pipelines": [
"__default__",
"data_science"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "io.memory_dataset.MemoryDataset",
"stats": null
},
{
"id": "9ca016a8",
"name": "y_train",
"tags": [],
"pipelines": [
"__default__",
"data_science"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "io.memory_dataset.MemoryDataset",
"stats": null
},
{
"id": "f6d9538c",
"name": "y_test",
"tags": [],
"pipelines": [
"__default__",
"data_science"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "io.memory_dataset.MemoryDataset",
"stats": null
},
{
"id": "2ab3579f",
"name": "train_model_node",
"tags": [],
"pipelines": [
"__default__",
"data_science"
],
"type": "task",
"modular_pipelines": [],
"parameters": {}
},
{
"id": "93d834e1",
"name": "regressor",
"tags": [],
"pipelines": [
"__default__",
"data_science"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "pickle.pickle_dataset.PickleDataset",
"stats": null
},
{
"id": "aadc655d",
"name": "evaluate_model_node",
"tags": [],
"pipelines": [
"__default__",
"data_science"
],
"type": "task",
"modular_pipelines": [],
"parameters": {}
},
{
"id": "966b9734",
"name": "metrics",
"tags": [],
"pipelines": [
"__default__",
"data_science"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "tracking.metrics_dataset.MetricsDataset",
"stats": null
}
],
"edges": [
{
"source": "ab512939",
"target": "329e963c"
},
{
"source": "329e963c",
"target": "872981f9"
},
{
"source": "cae2d1c7",
"target": "2ab3579f"
},
{
"source": "9ca016a8",
"target": "2ab3579f"
},
{
"source": "329e963c",
"target": "9ca016a8"
},
{
"source": "93d834e1",
"target": "aadc655d"
},
{
"source": "aadc655d",
"target": "966b9734"
},
{
"source": "f6d9538c",
"target": "aadc655d"
},
{
"source": "329e963c",
"target": "cae2d1c7"
},
{
"source": "2ab3579f",
"target": "93d834e1"
},
{
"source": "872981f9",
"target": "aadc655d"
},
{
"source": "329e963c",
"target": "f6d9538c"
},
{
"source": "23c94afb",
"target": "329e963c"
}
],
"layers": [],
"tags": [],
"pipelines": [
{
"id": "__default__",
"name": "__default__"
},
{
"id": "data_processing",
"name": "data_processing"
},
{
"id": "reporting",
"name": "reporting"
},
{
"id": "data_science",
"name": "data_science"
}
],
"modular_pipelines": {
"__root__": {
"id": "__root__",
"name": "__root__",
"inputs": [],
"outputs": [],
"children": [
{
"id": "ab512939",
"type": "parameters"
},
{
"id": "f6d9538c",
"type": "data"
},
{
"id": "aadc655d",
"type": "task"
},
{
"id": "cae2d1c7",
"type": "data"
},
{
"id": "872981f9",
"type": "data"
},
{
"id": "329e963c",
"type": "task"
},
{
"id": "9ca016a8",
"type": "data"
},
{
"id": "966b9734",
"type": "data"
},
{
"id": "93d834e1",
"type": "data"
},
{
"id": "2ab3579f",
"type": "task"
},
{
"id": "23c94afb",
"type": "data"
}
]
}
},
"selected_pipeline": "data_science"
}
201 changes: 201 additions & 0 deletions api/pipelines/reporting
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
{
"nodes": [
{
"id": "d75ec4b0",
"name": "create_confusion_matrix",
"tags": [],
"pipelines": [
"__default__",
"reporting"
],
"type": "task",
"modular_pipelines": [],
"parameters": {}
},
{
"id": "aed46479",
"name": "companies",
"tags": [],
"pipelines": [
"__default__",
"data_processing",
"reporting"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "pandas.csv_dataset.CSVDataset",
"stats": null
},
{
"id": "369acf98",
"name": "dummy_confusion_matrix",
"tags": [],
"pipelines": [
"__default__",
"reporting"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "matplotlib.matplotlib_writer.MatplotlibWriter",
"stats": null
},
{
"id": "c071dac9",
"name": "preprocessed_shuttles",
"tags": [],
"pipelines": [
"__default__",
"data_processing",
"reporting"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "pandas.parquet_dataset.ParquetDataset",
"stats": null
},
{
"id": "97202ac0",
"name": "compare_passenger_capacity_exp",
"tags": [],
"pipelines": [
"__default__",
"reporting"
],
"type": "task",
"modular_pipelines": [],
"parameters": {}
},
{
"id": "a9506115",
"name": "shuttle_passenger_capacity_plot_exp",
"tags": [],
"pipelines": [
"__default__",
"reporting"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "plotly.plotly_dataset.PlotlyDataset",
"stats": null
},
{
"id": "81b5866f",
"name": "compare_passenger_capacity_go",
"tags": [],
"pipelines": [
"__default__",
"reporting"
],
"type": "task",
"modular_pipelines": [],
"parameters": {}
},
{
"id": "c1311718",
"name": "shuttle_passenger_capacity_plot_go",
"tags": [],
"pipelines": [
"__default__",
"reporting"
],
"type": "data",
"modular_pipelines": [],
"layer": null,
"dataset_type": "plotly.json_dataset.JSONDataset",
"stats": null
}
],
"edges": [
{
"source": "c071dac9",
"target": "97202ac0"
},
{
"source": "97202ac0",
"target": "a9506115"
},
{
"source": "81b5866f",
"target": "c1311718"
},
{
"source": "d75ec4b0",
"target": "369acf98"
},
{
"source": "c071dac9",
"target": "81b5866f"
},
{
"source": "aed46479",
"target": "d75ec4b0"
}
],
"layers": [],
"tags": [],
"pipelines": [
{
"id": "__default__",
"name": "__default__"
},
{
"id": "data_processing",
"name": "data_processing"
},
{
"id": "reporting",
"name": "reporting"
},
{
"id": "data_science",
"name": "data_science"
}
],
"modular_pipelines": {
"__root__": {
"id": "__root__",
"name": "__root__",
"inputs": [],
"outputs": [],
"children": [
{
"id": "97202ac0",
"type": "task"
},
{
"id": "c071dac9",
"type": "data"
},
{
"id": "81b5866f",
"type": "task"
},
{
"id": "c1311718",
"type": "data"
},
{
"id": "369acf98",
"type": "data"
},
{
"id": "aed46479",
"type": "data"
},
{
"id": "d75ec4b0",
"type": "task"
},
{
"id": "a9506115",
"type": "data"
}
]
}
},
"selected_pipeline": "reporting"
}
19 changes: 19 additions & 0 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"files": {
"main.css": "./static/css/main.f969b4e2.chunk.css",
"main.js": "./static/js/main.d4bbe472.chunk.js",
"runtime-main.js": "./static/js/runtime-main.8879ef7a.js",
"static/js/2.327af4c5.chunk.js": "./static/js/2.327af4c5.chunk.js",
"14bc9bf54256a8b7f8a7.worker.js": "./14bc9bf54256a8b7f8a7.worker.js",
"14bc9bf54256a8b7f8a7.worker.js.LICENSE.txt": "./14bc9bf54256a8b7f8a7.worker.js.LICENSE.txt",
"index.html": "./index.html",
"static/js/2.327af4c5.chunk.js.LICENSE.txt": "./static/js/2.327af4c5.chunk.js.LICENSE.txt",
"static/js/main.d4bbe472.chunk.js.LICENSE.txt": "./static/js/main.d4bbe472.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.8879ef7a.js",
"static/js/2.327af4c5.chunk.js",
"static/css/main.f969b4e2.chunk.css",
"static/js/main.d4bbe472.chunk.js"
]
}
25 changes: 25 additions & 0 deletions autoreload.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<script type="text/javascript">
// The etag value will be rendered on first page load
// by the server to store the timestamp of the last data update.
const etag = '{{ etag }}';

/**
* Periodically check the server whether we should reload the page
* since the content has been changed.
*/
function checkReloadStatus() {
fetch('/api/reload', {
method: 'GET',
headers: { 'If-None-Match': etag },
}).then((response) => {
// The server will return `304 NOT MODIFIED` if the content of the Kedro project hasn't changed.
// Otherwise, it will return a `200` with an empty body.
// We should only reload on 200 and ignore all other status code like 500 as well.
if (response.status === 200) {
location.reload();
}
});
}

setInterval(checkReloadStatus, 3000);
</script>
Binary file added favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="shortcut icon" href="./favicon.ico"/><title>Kedro-Viz</title><meta name="description" content="Kedro-Viz is an interactive development tool for building data science pipelines with Kedro."/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet"/><link href="./static/css/main.f969b4e2.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,l,a=r[0],i=r[1],f=r[2],p=0,s=[];p<a.length;p++)l=a[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(c&&c(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var i=t[a];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="./";var a=this["webpackJsonp@quantumblack/kedro-viz"]=this["webpackJsonp@quantumblack/kedro-viz"]||[],i=a.push.bind(a);a.push=r,a=a.slice();for(var f=0;f<a.length;f++)r(a[f]);var c=i;t()}([])</script><script src="./static/js/2.327af4c5.chunk.js"></script><script src="./static/js/main.d4bbe472.chunk.js"></script></body></html>
1 change: 1 addition & 0 deletions static/css/main.f969b4e2.chunk.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/js/2.327af4c5.chunk.js

Large diffs are not rendered by default.

111 changes: 111 additions & 0 deletions static/js/2.327af4c5.chunk.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/

/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/

/*! For license information please see plotly.min.js.LICENSE.txt */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/

/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* what-input - A global utility for tracking the current input method (mouse, keyboard or touch).
* @version v5.2.12
* @link https://github.com/ten1seven/what-input
* @license MIT
*/

/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
2 changes: 2 additions & 0 deletions static/js/main.d4bbe472.chunk.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions static/js/main.d4bbe472.chunk.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @license kiwi.js v1.1.2
* #------------------------------------------------------------------------------
* # Copyright (c) 2013, Nucleic Development Team & H. Rutjes.
* #
* # Distributed under the terms of the Modified BSD License.
* #
* # The full license is in the file COPYING.txt, distributed with this software.
* #------------------------------------------------------------------------------
**/
1 change: 1 addition & 0 deletions static/js/runtime-main.8879ef7a.js
6 changes: 6 additions & 0 deletions telemetry.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<script type="text/javascript">
window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.heapanalytics.com/js/heap-"+e+".js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])};
heap.load("{{ heap_app_id }}");
heap.identify("{{ heap_user_identity }}");
</script>
</head>

0 comments on commit 076cc92

Please sign in to comment.