Commit Graph

7 Commits

Author SHA1 Message Date
Ricardo Martinelli de Oliveira 6275177e6e
Fix metrics visualization v2 sample (#10399) 2024-01-17 16:54:30 -08:00
Chen Sun 684779eb2e
fix(samples): update sklearn package name (#8439) 2022-11-10 12:35:00 +00:00
Yaqi Ji 8bb0d0e025
feat(sdk)!: move v2 to main namespace (#7376)
* feat(sdk)!: move v2 to main namespace

* edit samples
2022-03-04 21:56:51 +00:00
Ajay Gopinathan f3f383c2ff
chore(sdk): Refactor and move all v2 related code to under the v2 namespace. (#6358)
* Refactor and move all v2 related code to under the v2 namespace.

Most of the changes are around imports and restructuring of the
codebase. While it looks like a lot of code was added, most of the code
already existed and was simply moved or copied over to v2. The only
exceptions are:
- under kfp/v2/components/component_factory.py: some helper functions
  were copied with simplification from _python_op.py
- we no longer strip the `_path` suffix in v2 components.

Note: there is still some duplication of code (particularly between
component_factory.py and _python_op.py), but it's ok for now since we
intend to replace some of this with v2 ComponentSpec + BaseComponent.

* Update setup.py.

* update tests.

* revert accidental change of gcpc

* Fix component entrypoint.

* Update goldens.

* fix tests.

* fix merge conflict.

* revert gcpc change.

* fix tests.

* fix tests.

* Add type aliases for moved files.

* merge and update goldens.
2021-08-17 19:25:37 -07:00
James Liu 5203ecf273
test: Update visualization v2 to output HTML and Markdown. Partial #3970 (#6349)
* test: Update visualization v2 to output HTML and Markdown.

* address comment

* vis test
2021-08-17 04:46:42 -07:00
Ajay Gopinathan c5591f2652
feat(sdk): Enable the use of Executor from KFP package for v2 lightweight components (#6202)
* Enable the use of v2 Executor from KFP package.

This avoids the need to paste Executor code for v2 components into
the entrypoint of lightweight components.

* Update tests.

* quote package path.

* quote package path.

* escape fragment

* Update golden files.

* update goldens.

* Cleanup.

* More cleanup.

* update goldens.

* style updates.

* clean up sample tests.

* fix trailing comma

* Try using signed urls.

* fix

* fix presubmit

* try /bin/bash for Makefile shell

* undo signed url change.

Co-authored-by: Yuan (Bob) Gong <4957653+Bobgy@users.noreply.github.com>
2021-08-05 14:53:03 -07:00
capri-xiyue ecb7dbc0b1
chore(v2): metrics_visualization_v2 sample + fixed output artifact path creation (#5575)
* fixed output artifact path creation

* added metrics visualization sample test

* added metrics visualization test

* resolved comments

* allow component to not produce output file

* refactored code
2021-05-10 12:06:45 -07:00