Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create examples for the Assembly section in the Python documentation #8872

Closed
exalate-issue-sync bot opened this issue May 12, 2023 · 1 comment
Closed
Assignees

Comments

@exalate-issue-sync
Copy link

The http://docs.h2o.ai/h2o/latest-stable/h2o-py/docs/assembly.html# section in the Python documentation is missing examples.

The source file is located at h2o-3/h2o-py/h2o/assembly.py

For the first example, please also include the following import statements:
from h2o.assembly import *
from h2o.transforms.preprocessing import *

Also for the first example, show the output of {{result}}.

For the remaining examples, you can create the following datasets and then assemble them:
{code}
python_list1 = [[4,4,4,4],[4,4,4,4]]
python_list2 = [[2,2,2,2], [2,2,2,2]]
frame1 = h2o.H2OFrame(python_obj=python_list1)
frame2 = h2o.H2OFrame(python_obj=python_list2)
H2OAssembly.divide(frame1, frame2)
{code}
etc.

More information here: https://github.com/h2oai/h2o-3/blob/master/h2o-py/tests/testdir_apis/H2OAssembly/pyunit_h2oassembly_static_methods.py

Leave the example for names blank for now.

@h2o-ops
Copy link
Collaborator

h2o-ops commented May 14, 2023

JIRA Issue Migration Info

Jira Issue: PUBDEV-6761
Assignee: hannah.tillman
Reporter: Angela Bartz
State: Resolved
Fix Version: 3.28.0.1
Attachments: N/A
Development PRs: Available

Linked PRs from JIRA

#3809

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants