Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xu Jitao
testjenkins
Commits
e4e75dc0
Commit
e4e75dc0
authored
Feb 14, 2018
by
Tiphagne Thomas
Browse files
Test merge
parent
f355aa64
Changes
1
Hide whitespace changes
Inline
Side-by-side
hello_world.py
View file @
e4e75dc0
print
(
"hello world"
)
import
h2o
from
h2o.automl
import
H2OAutoML
h2o
.
init
()
train
=
h2o
.
import_file
(
"https://s3.amazonaws.com/erin-data/higgs/higgs_train_10k.csv"
)
test
=
h2o
.
import_file
(
"https://s3.amazonaws.com/erin-data/higgs/higgs_test_5k.csv"
)
x
=
train
.
columns
y
=
"response"
x
.
remove
(
y
)
train
[
y
]
=
train
[
y
].
asfactor
()
test
[
y
]
=
test
[
y
].
asfactor
()
aml
=
H2OAutoML
(
max_runtime_secs
=
130
)
aml
.
train
(
x
=
x
,
y
=
y
,
training_frame
=
train
,
leaderboard_frame
=
test
)
print
(
aml
.
leaderboard
)
print
(
aml
.
leader
)
print
(
aml
.
predict
(
test
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment