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

add examples on how to get to reproducibility information in R and py to docs #7236

Closed
exalate-issue-sync bot opened this issue May 11, 2023 · 4 comments
Assignees

Comments

@exalate-issue-sync
Copy link

[https://docs.h2o.ai/h2o/latest-stable/h2o-docs/data-science/gbm-faq/reproducibility.html|https://docs.h2o.ai/h2o/latest-stable/h2o-docs/data-science/gbm-faq/reproducibility.html] should contain also API specific examples

!Screenshot 2021-11-18 at 16.32.44.png|width=919,height=638!

in part which is marked by yellow, there should be this ( and current snippet

{noformat}model._model_json['output']['reproducibility_information_table']{noformat}

should be removed):

py example:

{noformat} mojo_model = h2o.upload_mojo(mojo_path=mojo_path)

# Extract some of model's reproducibility information:
# Extract java version: 
 java_version = mojo_model._model_json['output']['reproducibility_information_table'][0]['java_version'][0]
# Extract h2o cluster version:
 h2o_cluster_version = mojo_model._model_json['output']['reproducibility_information_table'][1]['h2o_cluster_version'][0]

{noformat}

R example:

{noformat} # Mojo Import
mojo_model <- h2o.import_mojo(mojo_path)

# Extract some of model's reproducibility information:
# Extract java version: 
java_version = mojo_model@model$reproducibility_information_table[[1]]['java_version']
# Extract h2o cluster version:
h2o_cluster_version = mojo_model@model$reproducibility_information_table[[2]]['h2o_cluster_version']{noformat}
@exalate-issue-sync
Copy link
Author

Zuzana Olajcová commented: [~accountid:5d1185d4f46aa30c271c7cc6] can you please adjust the docs content according to the ticket description?

@h2o-ops-ro
Copy link
Collaborator

JIRA Issue Details

Jira Issue: PUBDEV-8424
Assignee: hannah.tillman
Reporter: Zuzana Olajcová
State: Resolved
Fix Version: 3.34.0.5
Attachments: Available (Count: 1)
Development PRs: Available

@h2o-ops-ro
Copy link
Collaborator

Attachments From Jira

Attachment Name: Screenshot 2021-11-18 at 16.32.44.png
Attached By: Zuzana Olajcová
File Link:https://h2o-3-jira-github-migration.s3.amazonaws.com/PUBDEV-8424/Screenshot 2021-11-18 at 16.32.44.png

@h2o-ops-ro
Copy link
Collaborator

Linked PRs from JIRA

#5897

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