Search is not available for this dataset
repo stringlengths 2 152 ⌀ | file stringlengths 15 239 | code stringlengths 0 58.4M | file_length int64 0 58.4M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 364
values |
|---|---|---|---|---|---|---|
pipelines | pipelines-master/components/contrib/google-cloud/dataproc/submit_pig_job/component.yaml | # Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 3,231 | 32.666667 | 101 | yaml |
pipelines | pipelines-master/components/contrib/google-cloud/dataproc/submit_pyspark_job/README.md |
# Name
Component: Data preparation using PySpark on Cloud Dataproc
# Labels
Cloud Dataproc, PySpark, Kubeflow
# Summary
A Kubeflow Pipeline component to prepare data by submitting a PySpark job to Cloud Dataproc.
# Facets
<!--Make sure the asset has data for the following facets:
Use case
Technique
Input data typ... | 6,196 | 33.620112 | 301 | md |
pipelines | pipelines-master/components/contrib/google-cloud/dataproc/submit_pyspark_job/component.yaml | # Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 3,065 | 33.449438 | 101 | yaml |
pipelines | pipelines-master/components/contrib/google-cloud/dataproc/submit_spark_job/README.md |
# Name
Component: Data preparation using Spark on YARN with Cloud Dataproc
# Labels
Spark, Kubeflow,YARN
# Facets
<!--Make sure the asset has data for the following facets:
Use case
Technique
Input data type
ML workflow
The data must map to the acceptable values for these facets, as documented on the “taxonom... | 6,981 | 33.736318 | 301 | md |
pipelines | pipelines-master/components/contrib/google-cloud/dataproc/submit_spark_job/component.yaml | # Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 3,297 | 33 | 101 | yaml |
pipelines | pipelines-master/components/contrib/google-cloud/dataproc/submit_sparksql_job/README.md |
# Name
Component: Data preparation using SparkSQL on YARN with Cloud Dataproc
# Label
Cloud Dataproc, YARN, SparkSQL, Kubeflow
# Summary
A Kubeflow pipeline component to prepare data by submitting a SparkSql job on YARN to Cloud Dataproc.
# Facets
<!--Make sure the asset has data for the following facets:
Use case
... | 7,425 | 39.140541 | 301 | md |
pipelines | pipelines-master/components/contrib/google-cloud/dataproc/submit_sparksql_job/component.yaml | # Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 3,268 | 33.052083 | 101 | yaml |
pipelines | pipelines-master/components/contrib/google-cloud/ml_engine/batch_predict/README.md |
# Name
Batch prediction using Cloud Machine Learning Engine
# Label
Cloud Storage, Cloud ML Engine, Kubeflow, Pipeline, Component
# Summary
A Kubeflow Pipeline component to submit a batch prediction job against a deployed model on Cloud ML Engine.
# Details
## Intended use
Use the component to run a batch ... | 7,770 | 37.661692 | 303 | md |
pipelines | pipelines-master/components/contrib/google-cloud/ml_engine/batch_predict/component.yaml | # Copyright 2018 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 3,298 | 35.252747 | 90 | yaml |
pipelines | pipelines-master/components/contrib/google-cloud/ml_engine/deploy/README.md |
# Name
Deploying a trained model to Cloud Machine Learning Engine
# Label
Cloud Storage, Cloud ML Engine, Kubeflow, Pipeline
# Summary
A Kubeflow Pipeline component to deploy a trained model from a Cloud Storage location to Cloud ML Engine.
# Details
## Intended use
Use the component to deploy a trained m... | 8,244 | 40.852792 | 364 | md |
pipelines | pipelines-master/components/contrib/google-cloud/ml_engine/deploy/component.yaml | # Copyright 2018 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 4,554 | 36.958333 | 138 | yaml |
pipelines | pipelines-master/components/contrib/google-cloud/ml_engine/train/README.md |
# Name
Component: Submitting an AI Platform training job as a pipeline step
# Label
AI Platform, Kubeflow
# Summary
A Kubeflow pipeline component to submit an AI Platform training job as a step in a pipeline.
# Facets
<!--Make sure the asset has data for the following facets:
Use case
Technique
Input data type
ML ... | 9,659 | 38.917355 | 318 | md |
pipelines | pipelines-master/components/contrib/google-cloud/ml_engine/train/component.yaml | # Copyright 2018 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 4,911 | 35.117647 | 108 | yaml |
pipelines | pipelines-master/components/contrib/google-cloud/storage/download/component.yaml | name: Download from GCS
inputs:
- {name: GCS path, type: String}
outputs:
- {name: Data}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/components/google-cloud/storage/download/component.yaml'
i... | 1,599 | 43.444444 | 229 | yaml |
pipelines | pipelines-master/components/contrib/google-cloud/storage/download_blob/component.yaml | name: Download from GCS
inputs:
- {name: GCS path, type: String}
outputs:
- {name: Data}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/components/google-cloud/storage/download_blob/component.ya... | 770 | 29.84 | 155 | yaml |
pipelines | pipelines-master/components/contrib/google-cloud/storage/download_dir/component.yaml | name: Download from GCS
inputs:
- {name: GCS path, type: String}
outputs:
- {name: Data}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/components/google-cloud/storage/download_dir/component.yam... | 756 | 29.28 | 154 | yaml |
pipelines | pipelines-master/components/contrib/google-cloud/storage/list/component.yaml | name: List blobs
inputs:
- {name: GCS path, type: String, description: 'GCS path for listing. For recursive listing use the "gs://bucket/path/**" syntax".'}
outputs:
- {name: Paths}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubuserco... | 896 | 33.5 | 150 | yaml |
pipelines | pipelines-master/components/contrib/google-cloud/storage/upload_to_explicit_uri/component.yaml | name: Upload to GCS
inputs:
- {name: Data}
- {name: GCS path, type: String}
outputs:
- {name: GCS path, type: String}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/components/google-cloud/stora... | 864 | 29.892857 | 164 | yaml |
pipelines | pipelines-master/components/contrib/google-cloud/storage/upload_to_unique_uri/component.yaml | name: Upload to GCS
description: Upload to GCS with unique URI suffix
inputs:
- {name: Data}
- {name: GCS path prefix, type: String}
outputs:
- {name: GCS path, type: String}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun... | 971 | 32.517241 | 162 | yaml |
pipelines | pipelines-master/components/contrib/json/Build_dict/component.py | from kfp.components import create_component_from_func
def build_dict(
key_1: str = None,
value_1: dict = None,
key_2: str = None,
value_2: dict = None,
key_3: str = None,
value_3: dict = None,
key_4: str = None,
value_4: dict = None,
key_5: str = None,
value_5: dict = None,
) -... | 1,131 | 25.325581 | 147 | py |
pipelines | pipelines-master/components/contrib/json/Build_dict/component.yaml | name: Build dict
description: Creates a JSON object from multiple key and value pairs.
inputs:
- {name: key_1, type: String, optional: true}
- {name: value_1, type: JsonObject, optional: true}
- {name: key_2, type: String, optional: true}
- {name: value_2, type: JsonObject, optional: true}
- {name: key_3, type: String,... | 5,226 | 32.941558 | 145 | yaml |
pipelines | pipelines-master/components/contrib/json/Build_list/component.py | from kfp.components import create_component_from_func
def build_list(
item_1: dict = None,
item_2: dict = None,
item_3: dict = None,
item_4: dict = None,
item_5: dict = None,
) -> list:
"""Creates a JSON array from multiple items.
Annotations:
author: Alexey Volkov <alexey.volkov@... | 926 | 27.090909 | 147 | py |
pipelines | pipelines-master/components/contrib/json/Build_list/component.yaml | name: Build list
description: Creates a JSON array from multiple items.
inputs:
- {name: item_1, type: JsonObject, optional: true}
- {name: item_2, type: JsonObject, optional: true}
- {name: item_3, type: JsonObject, optional: true}
- {name: item_4, type: JsonObject, optional: true}
- {name: item_5, type: JsonObject, o... | 3,645 | 32.449541 | 145 | yaml |
pipelines | pipelines-master/components/contrib/json/Combine_lists/component.py | from kfp.components import create_component_from_func
def combine_lists(
list_1: list = None,
list_2: list = None,
list_3: list = None,
list_4: list = None,
list_5: list = None,
) -> list:
"""Combines multiple JSON arrays into one.
Annotations:
author: Alexey Volkov <alexey.volkov... | 936 | 27.393939 | 150 | py |
pipelines | pipelines-master/components/contrib/json/Combine_lists/component.yaml | name: Combine lists
description: Combines multiple JSON arrays into one.
inputs:
- {name: list_1, type: JsonArray, optional: true}
- {name: list_2, type: JsonArray, optional: true}
- {name: list_3, type: JsonArray, optional: true}
- {name: list_4, type: JsonArray, optional: true}
- {name: list_5, type: JsonArray, optio... | 3,649 | 32.486239 | 145 | yaml |
pipelines | pipelines-master/components/contrib/json/Get_element_by_index/component.yaml | name: Get element by index from JSON
inputs:
- {name: Json}
- {name: Index, type: Integer}
outputs:
- {name: Output}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/components/json/Get_element_by... | 686 | 25.423077 | 146 | yaml |
pipelines | pipelines-master/components/contrib/json/Get_element_by_key/component.yaml | name: Get element by key from JSON
inputs:
- {name: Json}
- {name: Key, type: String}
outputs:
- {name: Output}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/components/json/Get_element_by_key/... | 679 | 25.153846 | 144 | yaml |
pipelines | pipelines-master/components/contrib/json/Get_keys/component.yaml | name: Get keys from JSON
inputs:
- {name: Json}
outputs:
- {name: Keys}
implementation:
container:
image: stedolan/jq:latest
command:
- sh
- -exc
- |
input_path=$0
output_path=$1
mkdir -p "$(dirname "$output_path")"
jq 'keys' "$input_path" > "$output_path"
- {inputPath:... | 352 | 17.578947 | 46 | yaml |
pipelines | pipelines-master/components/contrib/json/Query/component.yaml | name: Query JSON using JQ
inputs:
- {name: Json}
- {name: Query, type: String}
- {name: Options, type: String, default: '--raw-output'}
outputs:
- {name: Output}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_com... | 754 | 25.034483 | 131 | yaml |
pipelines | pipelines-master/components/contrib/keras/Train_classifier/_samples/sample_pipeline.py | import keras
import kfp
from kfp import components
chicago_taxi_dataset_op = components.load_component_from_url('https://raw.githubusercontent.com/kubeflow/pipelines/e3337b8bdcd63636934954e592d4b32c95b49129/components/datasets/Chicago%20Taxi/component.yaml')
pandas_transform_csv_op = components.load_component_from_ur... | 2,706 | 45.672414 | 256 | py |
pipelines | pipelines-master/components/contrib/keras/Train_classifier/from_CSV/component.py | from typing import NamedTuple
from kfp.components import create_component_from_func, InputPath, OutputPath
def keras_train_classifier_from_csv(
training_features_path: InputPath('CSV'),
training_labels_path: InputPath('CSV'),
network_json_path: InputPath('KerasModelJson'),
model_path: OutputPath('Keras... | 3,099 | 31.631579 | 163 | py |
pipelines | pipelines-master/components/contrib/keras/Train_classifier/from_CSV/component.yaml | name: Keras train classifier from csv
description: |-
Trains classifier model using Keras.
Annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
inputs:
- {name: training_features, type: CSV}
- {name: training_labels, type: CSV}
- {name: network_json, type: KerasModelJson}
- {name: loss_name... | 9,244 | 38.173729 | 210 | yaml |
pipelines | pipelines-master/components/contrib/kfp/Run_component/component.py | from typing import NamedTuple
def run_component_or_pipeline(
component_url: 'Url',
arguments: dict,
endpoint: str = None,
wait_timeout_seconds: float = None,
) -> NamedTuple('Outputs', [
('run_id', str),
('run_object', 'JsonObject'), # kfp.ApiRunDetails
]):
import json
import os
i... | 1,904 | 36.352941 | 149 | py |
pipelines | pipelines-master/components/contrib/kfp/Run_component/component.yaml | name: Run component or pipeline
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/components/kfp/Run_component/component.yaml'
inputs:
- {name: component_url, type: Url}
- {name: arguments, type: ... | 4,801 | 38.360656 | 145 | yaml |
pipelines | pipelines-master/components/contrib/kfp/Run_component/_samples/sample_pipeline.py | from kfp import components
kfp_endpoint = None
run_component_or_pipeline_op = components.load_component_from_url('https://raw.githubusercontent.com/kubeflow/pipelines/2d13b358690c761f64e5b59b70624de8f1f52a29/components/kfp/Run_component/component.yaml')
def my_pipeline():
run_component_or_pipeline_op(
... | 687 | 31.761905 | 206 | py |
pipelines | pipelines-master/components/contrib/kubernetes/Apply_object/component.yaml | name: Apply Kubernetes object
inputs:
- {name: Object, type: JsonObject}
outputs:
- {name: Name, type: String}
- {name: Kind, type: String}
- {name: Object, type: JsonObject}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun... | 1,102 | 29.638889 | 144 | yaml |
pipelines | pipelines-master/components/contrib/kubernetes/Create_PersistentVolumeClaim/component.yaml | name: Create PersistentVolumeClaim in Kubernetes
inputs:
- {name: Name, type: String}
- {name: Storage size, type: String, default: 1Gi}
- {name: Namespace, type: String, default: default}
outputs:
- {name: Name, type: String}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.... | 1,359 | 27.93617 | 160 | yaml |
pipelines | pipelines-master/components/contrib/kubernetes/Create_object/component.yaml | name: Create Kubernetes object
inputs:
- {name: Object, type: JsonObject}
outputs:
- {name: Name, type: String}
- {name: Kind, type: String}
- {name: Object, type: JsonObject}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-ku... | 1,105 | 29.722222 | 145 | yaml |
pipelines | pipelines-master/components/contrib/kubernetes/Delete_object/component.yaml | name: Delete Kubernetes object
inputs:
- {name: Name, type: String}
- {name: Kind, type: String}
outputs:
- {name: Name, type: String}
- {name: Kind, type: String}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_c... | 991 | 28.176471 | 145 | yaml |
pipelines | pipelines-master/components/contrib/kubernetes/Get_object/component.yaml | name: Get Kubernetes object
inputs:
- {name: Name, type: String}
- {name: Kind, type: String}
outputs:
- {name: Object, type: JsonObject}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/component... | 751 | 25.857143 | 142 | yaml |
pipelines | pipelines-master/components/contrib/ml_metrics/Aggregate_regression_metrics/component.py | from typing import NamedTuple
from kfp.components import create_component_from_func
def aggregate_regression_metrics(
metrics_1: dict,
metrics_2: dict = None,
metrics_3: dict = None,
metrics_4: dict = None,
metrics_5: dict = None,
) -> NamedTuple('Outputs', [
('number_of_items', int),
('ma... | 2,175 | 35.266667 | 171 | py |
pipelines | pipelines-master/components/contrib/ml_metrics/Aggregate_regression_metrics/component.yaml | name: Aggregate regression metrics
description: |-
Calculates regression metrics.
Annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
inputs:
- {name: metrics_1, type: JsonObject}
- {name: metrics_2, type: JsonObject, optional: true}
- {name: metrics_3, type: JsonObject, optional: true}
- ... | 6,099 | 38.102564 | 201 | yaml |
pipelines | pipelines-master/components/contrib/ml_metrics/Calculate_classification_metrics/_samples/sample_pipleine.py | from pathlib import Path
import kfp
from kfp.components import ComponentStore, create_component_from_func, InputPath, OutputPath, load_component_from_file
store = ComponentStore.default_store
chicago_taxi_dataset_op = store.load_component('datasets/Chicago_Taxi_Trips')
xgboost_train_on_csv_op = store.load_component(... | 3,012 | 31.397849 | 118 | py |
pipelines | pipelines-master/components/contrib/ml_metrics/Calculate_classification_metrics/from_CSV/component.py | from typing import NamedTuple
from kfp.components import InputPath, create_component_from_func
def calculate_classification_metrics_from_csv(
true_values_path: InputPath(),
predicted_values_path: InputPath(),
sample_weights_path: InputPath() = None,
average: str = 'binary'
) -> NamedT... | 2,641 | 33.763158 | 109 | py |
pipelines | pipelines-master/components/contrib/ml_metrics/Calculate_classification_metrics/from_CSV/component.yaml | name: Calculate classification metrics from csv
description: |-
Calculates classification metrics.
Annotations:
author: Anton Kiselev <akiselev@provectus.com>
inputs:
- {name: true_values}
- {name: predicted_values}
- {name: sample_weights, optional: true}
- {name: average, type: String, default: bin... | 5,645 | 57.206186 | 105 | yaml |
pipelines | pipelines-master/components/contrib/ml_metrics/Calculate_regression_metrics/_samples/sample_pipleine.py | import kfp
from kfp import components
chicago_taxi_dataset_op = components.load_component_from_url('https://raw.githubusercontent.com/kubeflow/pipelines/e3337b8bdcd63636934954e592d4b32c95b49129/components/datasets/Chicago%20Taxi/component.yaml')
xgboost_train_on_csv_op = components.load_component_from_url('https://ra... | 2,619 | 48.433962 | 253 | py |
pipelines | pipelines-master/components/contrib/ml_metrics/Calculate_regression_metrics/from_CSV/component.py | from typing import NamedTuple
from kfp.components import InputPath, OutputPath, create_component_from_func
def calculate_regression_metrics_from_csv(
true_values_path: InputPath(),
predicted_values_path: InputPath(),
) -> NamedTuple('Outputs', [
('number_of_items', int),
('max_absolute_error', float),
... | 2,541 | 34.802817 | 180 | py |
pipelines | pipelines-master/components/contrib/ml_metrics/Calculate_regression_metrics/from_CSV/component.yaml | name: Calculate regression metrics from csv
description: |-
Calculates regression metrics.
Annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/... | 5,755 | 38.156463 | 210 | yaml |
pipelines | pipelines-master/components/contrib/notebooks/Run_notebook_using_papermill/component.yaml | name: Run notebook using papermill
description: |
Run Jupyter notebook using papermill.
The notebook will receive the parameter values passed to it as well as the INPUT_DATA_PATH and OUTPUT_DATA_PATH variables that will be set to the input data path (if provided) and directory for the optional output data.
inputs:
... | 2,574 | 48.519231 | 221 | yaml |
pipelines | pipelines-master/components/contrib/notebooks/samples/sample_pipeline.py | kfp_endpoint = None
import kfp
from kfp import components
download_op = components.load_component_from_url('https://raw.githubusercontent.com/kubeflow/pipelines/240543e483076ae718f82c6f280441daa2f041fd/components/web/Download/component.yaml')
run_notebook_op = components.load_component_from_url('https://raw.githubuse... | 1,041 | 48.619048 | 214 | py |
pipelines | pipelines-master/components/contrib/nuclio/README.md | # Nuclio (Serverless) Components
[Nuclio](https://nuclio.io/) is a native and high performance serverless platform over Kubernetes
which automate the process of build, deployment, monitoring, and auto-scaling of micro-services.
Nuclio support variety of data and data-science related features (e.g. stream processing,
... | 2,091 | 45.488889 | 149 | md |
pipelines | pipelines-master/components/contrib/nuclio/delete/component.yaml | name: nuclio delete
description: delete a nuclio function.
inputs:
- {name: Name, type: String, description: 'function name'}
- {name: Namespace, type: String, description: 'Kubernetes namespace', default: ''}
- {name: Dashboard, type: String, description: 'nuclio dashboard service url', default: 'http://nuclio-d... | 562 | 39.214286 | 128 | yaml |
pipelines | pipelines-master/components/contrib/nuclio/deploy/component.yaml | name: nuclio deploy
description: auto build and deploy nuclio function.
inputs:
- {name: Url, type: String, description: 'url/path to source code, zip archive, git path, or notebook'}
- {name: Name, type: String, description: 'function name'}
- {name: Project, type: String, description: 'project name', default: '... | 1,382 | 48.392857 | 128 | yaml |
pipelines | pipelines-master/components/contrib/nuclio/invoker/component.yaml | name: nuclio invoker
description: invoke nuclio function.
inputs:
- {name: Url, type: String, description: 'function URL/endpoint'}
- {name: Body, type: String, description: 'request body', default: ''}
- {name: Log level, type: String, description: 'log level', default: 'info'}
- {name: Method, type: String, d... | 704 | 32.571429 | 85 | yaml |
pipelines | pipelines-master/components/contrib/openvino/model_convert/README.md | # Model optimization component
This component is executing model optimization process using OpenVINO Toolkit and generate as output the model in
Intermediate Representation format.
Component takes the following arguments:
* model input GCS path
* model optimizer parameters
* model output GCS path
```bash
usage: con... | 18,050 | 54.033537 | 178 | md |
pipelines | pipelines-master/components/contrib/openvino/model_convert/containers/convert_model.py | #!/usr/bin/python3
import argparse
import subprocess
import re
import os
def is_insecure_path(path):
# check if the path do not include insecure characters
if not re.match(r"^gs:\/\/[\.\w\/-]*$", path):
is_insecure = True
else:
is_insecure = False
return is_insecure
def are_insecure... | 3,617 | 32.813084 | 94 | py |
pipelines | pipelines-master/components/contrib/openvino/ovms-deployer/README.md | # Deployer of OpenVINO Model Server
This component triggers deployment of [OpenVINO Model Server](https://github.com/IntelAI/OpenVINO-model-server) in Kubernetes.
It applies the passed component parameters on jinja template and applied deployment and server records.
```bash
./deploy.sh
--model-export-path
... | 619 | 18.375 | 126 | md |
pipelines | pipelines-master/components/contrib/openvino/ovms-deployer/containers/apply_template.py | from jinja2 import Template
import os
f = open("ovms.j2","r")
ovms_template = f.read()
t = Template(ovms_template)
ovms_k8s = t.render(os.environ)
f.close
f = open("ovms.yaml", "w")
f.write(ovms_k8s)
f.close
print(ovms_k8s) | 226 | 15.214286 | 31 | py |
pipelines | pipelines-master/components/contrib/openvino/ovms-deployer/containers/classes.py | imagenet_classes = {0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark'... | 49,565 | 48.516484 | 149 | py |
pipelines | pipelines-master/components/contrib/openvino/ovms-deployer/containers/deploy.sh | #!/bin/bash -e
set -x
KUBERNETES_NAMESPACE="${KUBERNETES_NAMESPACE:-kubeflow}"
SERVER_NAME="${SERVER_NAME:-model-server}"
SERVER_ENDPOINT_OUTPUT_FILE="${SERVER_ENDPOINT_OUTPUT_FILE:-/tmp/server_endpoint/data}"
while (($#)); do
case $1 in
"--model-export-path")
shift
export MODEL_EXPORT_PATH="$1... | 4,411 | 27.464516 | 175 | sh |
pipelines | pipelines-master/components/contrib/openvino/ovms-deployer/containers/evaluate.py | #!/usr/bin/env python
import grpc
import numpy as np
import tensorflow.contrib.util as tf_contrib_util
import datetime
import argparse
from tensorflow_serving.apis import predict_pb2
from tensorflow_serving.apis import prediction_service_pb2_grpc
from urllib.parse import urlparse
import requests
import cv2
import os
im... | 6,003 | 41.28169 | 232 | py |
pipelines | pipelines-master/components/contrib/openvino/predict/README.md | # Inference component with OpenVINO inference engine
This component takes the following parameters:
* path to the model in Intermediate Representation format ( xml and bin files)
* numpy file with the input dataset. Input shape should fit to the used model definition.
* classification labels which can be used to calcu... | 2,503 | 38.125 | 115 | md |
pipelines | pipelines-master/components/contrib/openvino/predict/containers/classes.py | #
# Copyright (c) 2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 50,156 | 48.318584 | 149 | py |
pipelines | pipelines-master/components/contrib/openvino/predict/containers/predict.py | from openvino.inference_engine import IENetwork, IEPlugin
import argparse
import numpy as np
from urllib.parse import urlparse
from google.cloud import storage
from google.auth import exceptions
import classes
import datetime
from shutil import copy
import os
import json
def get_local_file(source_path):
parsed_pat... | 7,152 | 39.185393 | 169 | py |
pipelines | pipelines-master/components/contrib/openvino/tf-slim/README.md | # Slim models generator
This component is automating implementation of [slim models](https://github.com/tensorflow/models/blob/master/research/slim).
It can create a graph from slim models zoo, load the variables pre-trained checkpoint and export the model in the form
of Tensorflow `frozen graph` and `saved model`.
... | 3,382 | 41.2875 | 137 | md |
pipelines | pipelines-master/components/contrib/openvino/tf-slim/containers/slim_model.py | import tensorflow as tf
from tensorflow.python.saved_model import signature_constants
from tensorflow.python.saved_model import tag_constants
from nets import nets_factory
from tensorflow.python.platform import gfile
import argparse
import validators
import os
import requests
import tarfile
from subprocess import Popen... | 8,100 | 36.331797 | 79 | py |
pipelines | pipelines-master/components/contrib/pandas/Transform_DataFrame/_samples/sample_pipeline.py | import kfp
from kfp import components
chicago_taxi_dataset_op = components.load_component_from_url('https://raw.githubusercontent.com/kubeflow/pipelines/e3337b8bdcd63636934954e592d4b32c95b49129/components/datasets/Chicago%20Taxi/component.yaml')
convert_csv_to_apache_parquet_op = components.load_component_from_url('h... | 3,006 | 49.966102 | 238 | py |
pipelines | pipelines-master/components/contrib/pandas/Transform_DataFrame/in_ApacheParquet_format/component.py | from kfp.components import InputPath, OutputPath, create_component_from_func
def Pandas_Transform_DataFrame_in_ApacheParquet_format(
table_path: InputPath('ApacheParquet'),
transformed_table_path: OutputPath('ApacheParquet'),
transform_code: 'PythonCode',
):
'''Transform DataFrame loaded from an Apache... | 1,772 | 35.9375 | 182 | py |
pipelines | pipelines-master/components/contrib/pandas/Transform_DataFrame/in_ApacheParquet_format/component.yaml | name: Pandas Transform DataFrame in ApacheParquet format
description: |-
Transform DataFrame loaded from an ApacheParquet file.
Inputs:
table: DataFrame to transform.
transform_code: Transformation code. Code is written in Python and can consist of multiple lines.
The DataFram... | 4,210 | 44.771739 | 707 | yaml |
pipelines | pipelines-master/components/contrib/pandas/Transform_DataFrame/in_CSV_format/component.py | from kfp.components import InputPath, OutputPath, create_component_from_func
def Pandas_Transform_DataFrame_in_CSV_format(
table_path: InputPath('CSV'),
transformed_table_path: OutputPath('CSV'),
transform_code: 'PythonCode',
):
'''Transform DataFrame loaded from a CSV file.
Inputs:
table:... | 1,705 | 31.807692 | 172 | py |
pipelines | pipelines-master/components/contrib/pandas/Transform_DataFrame/in_CSV_format/component.yaml | name: Pandas Transform DataFrame in CSV format
description: |-
Transform DataFrame loaded from a CSV file.
Inputs:
table: Table to transform.
transform_code: Transformation code. Code is written in Python and can consist of multiple lines.
The DataFrame variable is called "df"... | 4,114 | 41.864583 | 678 | yaml |
pipelines | pipelines-master/components/contrib/presto/query/component.yaml | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 1,737 | 30.6 | 74 | yaml |
pipelines | pipelines-master/components/contrib/presto/query/src/program.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | 1,977 | 25.026316 | 76 | py |
pipelines | pipelines-master/components/contrib/sample/C#_script/component.yaml | name: Filter text
inputs:
- {name: Text}
- {name: Pattern, default: '.*'}
outputs:
- {name: Filtered text}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/components/sample/C#_script/component.ya... | 1,145 | 26.95122 | 137 | yaml |
pipelines | pipelines-master/components/contrib/sample/Python_script/component.yaml | name: Filter text
inputs:
- {name: Text}
- {name: Pattern, default: '.*'}
outputs:
- {name: Filtered text}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/components/sample/Python_script/componen... | 1,372 | 29.511111 | 141 | yaml |
pipelines | pipelines-master/components/contrib/sample/R_script/component.yaml | name: Filter text
inputs:
- {name: Text}
- {name: Pattern, default: '.*'}
outputs:
- {name: Filtered text}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/components/sample/R_script/component.yam... | 1,110 | 26.097561 | 136 | yaml |
pipelines | pipelines-master/components/contrib/sample/Shell_script/component.yaml | name: Filter text using shell and grep
inputs:
- {name: Text}
- {name: Pattern, default: '.*'}
outputs:
- {name: Filtered text}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/components/sample/S... | 703 | 25.074074 | 140 | yaml |
pipelines | pipelines-master/components/contrib/sample/keras/train_classifier/README.md | # Keras - Train classifier
### Trains classifier using Keras sequential model
## Inputs
|Name|Type|Default|Description|
|---|---|---|---|
|training_set_features_path|GcsPath: {data_type: TSV}||Local or GCS path to the training set features table.|
|training_set_labels_path|GcsPath: {data_type: TSV}||Local or GCS path ... | 3,894 | 48.935897 | 246 | md |
pipelines | pipelines-master/components/contrib/sample/keras/train_classifier/build_image.sh | #!/bin/bash -e
# Copyright 2018 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 1,385 | 42.3125 | 142 | sh |
pipelines | pipelines-master/components/contrib/sample/keras/train_classifier/component.yaml | name: Keras - Train classifier
description: Trains classifier using Keras sequential model
inputs:
- {name: training_set_features_path, type: {GcsPath: {data_type: TSV}}, description: 'Local or GCS path to the training set features table.'}
- {name: training_set_labels_path, type: {GcsPath: {data_type: TSV}}, descr... | 2,629 | 81.1875 | 360 | yaml |
pipelines | pipelines-master/components/contrib/sample/keras/train_classifier/run_tests.sh | #!/bin/bash -e
# Copyright 2018 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 700 | 37.944444 | 81 | sh |
pipelines | pipelines-master/components/contrib/sample/keras/train_classifier/src/train.py | # Copyright 2018 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 3,504 | 42.8125 | 258 | py |
pipelines | pipelines-master/components/contrib/sample/keras/train_classifier/tests/test_component.py | # Copyright 2018 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 2,562 | 38.430769 | 104 | py |
pipelines | pipelines-master/components/contrib/tables/Remove_header/component.yaml | name: Remove header
description: Remove the header line from CSV and TSV data (unconditionally)
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com>
canonical_location: 'https://raw.githubusercontent.com/Ark-kun/pipeline_components/master/components/tables/Remove_header/component.yaml'
inp... | 559 | 24.454545 | 141 | yaml |
pipelines | pipelines-master/components/contrib/tensorflow/tensorboard/prepare_tensorboard/component.yaml | name: Create Tensorboard visualization
description: |
Pre-creates Tensorboard visualization for a given Log dir URI.
This way the Tensorboard can be viewed before the training completes.
The output Log dir URI should be passed to a trainer component that will write Tensorboard logs to that directory.
inputs:
- {n... | 1,436 | 30.933333 | 163 | yaml |
pipelines | pipelines-master/components/contrib/web/Download/component-sdk-v2.yaml | name: Download data (KFP SDK v2)
description: Downloads data from the specified URL. (Updated for KFP SDK v2.)
inputs:
- {name: Url, type: String}
- {name: curl options, type: String, default: '--location', description: 'Additional options given to the curl bprogram. See https://curl.haxx.se/docs/manpage.html'}
outputs... | 966 | 34.814815 | 165 | yaml |
pipelines | pipelines-master/components/contrib/web/Download/component.yaml | name: Download data
inputs:
- {name: Url, type: URI}
- {name: curl options, type: string, default: '--location', description: 'Additional options given to the curl bprogram. See https://curl.haxx.se/docs/manpage.html'}
outputs:
- {name: Data}
metadata:
annotations:
author: Alexey Volkov <alexey.volkov@ark-kun.com... | 1,015 | 35.285714 | 165 | yaml |
pipelines | pipelines-master/components/google-cloud/README.md | # Google Cloud Pipeline Components
[](https://github.com/kubeflow/pipelines/tree/master/components/google-cloud)
[](https://badge.fury.io/py/google-c... | 3,017 | 67.590909 | 455 | md |
pipelines | pipelines-master/components/google-cloud/RELEASE.md | ## Upcoming release
## Release 2.1.0
* Add AutoML tabular and forecasting components to `preview` namespace
* Fix bug where `parent_model` parameter of `ModelUploadOp` ignored
* Fix circular import bug for model evaluation components
* Apply latest GCPC image vulnerability resolutions (base OS and software updates)
#... | 23,498 | 48.786017 | 217 | md |
pipelines | pipelines-master/components/google-cloud/setup.py | # Copyright 2021 The Kubeflow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 5,097 | 38.215385 | 112 | py |
pipelines | pipelines-master/components/google-cloud/docs/.readthedocs.yml | # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2
sphinx:
configuration: components/google-cloud/docs/source/conf.py
python:
version: 3.7
install:
- method: pip
path: components/google-cloud
extra_requirements:
- docs
| 285 | 22.833333 | 75 | yml |
pipelines | pipelines-master/components/google-cloud/docs/build_and_serve_from_github.sh | # run from components/google-cloud
pip3 install -e "..[docs]"
builddir=$(mktemp -d)
sphinx-build -M html "source" $builddir
pushd $builddir/html
python3 -m http.server
popd | 172 | 23.714286 | 39 | sh |
pipelines | pipelines-master/components/google-cloud/docs/source/conf.py | # Copyright 2023 The Kubeflow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 11,228 | 29.348649 | 194 | py |
pipelines | pipelines-master/components/google-cloud/docs/source/_static/custom.css | [data-md-color-primary=googleblue]{--md-primary-fg-color:#4285F4;--md-primary-fg-color--light:##4285F4;--md-primary-fg-color--dark:##4285F4;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,.7)}
.rst-versions.rst-badge {
display: none !important;
} | 272 | 53.6 | 215 | css |
pipelines | pipelines-master/components/google-cloud/google_cloud_pipeline_components/__init__.py | # Copyright 2021 The Kubeflow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 711 | 43.5 | 74 | py |
pipelines | pipelines-master/components/google-cloud/google_cloud_pipeline_components/_image.py | # Copyright 2023 The Kubeflow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 792 | 43.055556 | 74 | py |
pipelines | pipelines-master/components/google-cloud/google_cloud_pipeline_components/utils.py | # Copyright 2023 The Kubeflow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 10,685 | 31.981481 | 147 | py |
pipelines | pipelines-master/components/google-cloud/google_cloud_pipeline_components/version.py | # Copyright 2021 The Kubeflow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 677 | 38.882353 | 74 | py |
pipelines | pipelines-master/components/google-cloud/google_cloud_pipeline_components/_implementation/__init__.py | # Copyright 2023 The Kubeflow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 606 | 42.357143 | 74 | py |
pipelines | pipelines-master/components/google-cloud/google_cloud_pipeline_components/_implementation/model/__init__.py | # Copyright 2023 The Kubeflow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 811 | 35.909091 | 123 | py |