forked from h2oai/h2o-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
768 lines (717 loc) · 34.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>
Download H2O SUBST_PROJECT_VERSION
</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http:https://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
<style type="text/css">
/* Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
/* Local styles */
html, body {
background: #ededed;
font-family: 'Open Sans', sans-serif;
font-weight: 400;
}
p, ul {
font-size: 12px;
}
a {
color: #4388db;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
h2 {
font-style: normal;
font-variant: normal;
font-weight: 300;
line-height: 23px;
margin: 20px 0 10px 0;
}
#container {
width: 768px;
background: #fff;
margin: 0px auto;
-webkit-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.25);
-moz-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.25);
box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.25);
}
#title {
height: 200px;
background: #fbe93a;
}
#title h1 {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGMAAABDCAYAAACIl7ujAAAI/UlEQVR4Ae2de2wVRRTG29InLdCW0pbSqlECREU0KCCIBoUGQsQXSpCEiEAEAY0YwERjAkSMBCQq4aEhPiJiBIIYNAqEaOThH6gBEsLDF7SU0gctUAptKfV3mt6ybHfvnpbeMjd7N9ns7plvzsx838zszOzcNjoqcgRlICMjo098fHx+TEzMgIaGhv6Ac6Kjo7txn8z1Itdz2Iq4P3T16tUDtbW128vKyo4FdeoSGJ2Xl9fgEtZsrq+vX1lUVDSn2aC8ycnJ+ahTp06zveAFBQXRXpiODE9JSenRrVu3GaQ5CRH6tjZtRDlCnPXnz59fc+HChTJt/Bgt0A84EaFXr16rU1NTTyLCorYIITwRrx/nYgQtwN+qLl26ZGj4i4jRxFJ2dvbMtLS0o5A4gy4nUUOeF0b84G8mohzt2bPnS174iBhRUSnU3k1xcXGrICvNi7C2hCNKemxs7BrS+Zr4yW4+fC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7iRTzdLdw0e9i2DJbX3+E9MdWNUFrECYaWjzHLLnHDmGY3cZ7hyREt4hUmhx+4ARGiABFG0Cr+dsOYaA87MRBiIl3TelqFY94R4jgtYiQfkU6aSHiwPDkWKFiEmxnGLDufCdg2xIhzygdCHGTGm2/9YOOEM9UWNmLwsX8QXdMuWkSLjQZCLkL8xnLHGG5bLJWYSr49X2EhBn8NrS/rTrsRIsNegKbnCuYSC2gxQZdRWKzb4BLfCLPxYsjOPjaU7UWIG/4Zm2l/8c1eA4we2rJ6miYbCqjxNyyEveAmPps86UtiQ5q8rO8ykbhQ5MlUMWKb9kwNDUWhTfVpohjRCLGOd0SbNq+ZSrQmX8aJwaRuKUJM1mQ+gokwEGEgwkCEgQgDEQYiDEQYiDBwjQHVfwm4Bo/chZIB4+YZoSys6b4jYhikUEQMg8T4H+LNJUd1pdXbAAAAAElFTkSuQmCC);
background-repeat: no-repeat;
background-position: center 68px;
height:145px;
}
#title h1 span {
display: none;
}
#title .version {
text-align: center;
}
#title .links {
text-align: right;
padding-right: 15px;
height: 30px;
line-height: 30px;
}
#title .links a {
color: #1c1c1d;
}
#title .links a:hover {
color: #000
}
#subtitle {
background: #1c1c1c;
color: #fff;
text-align: center;
padding: 10px;
}
#subtitle p {
font-size: 16px;
font-style: normal;
font-variant: normal;
font-weight: 300;
line-height: 23px;
}
#content {
padding: 25px;
}
#tabs {
font-size: 11px;
text-transform: uppercase;
border-bottom: 1px solid #ddd;
}
#tabs span {
display: inline-block;
height: 25px;
line-height: 25px;
padding: 0px 15px;
cursor: pointer;
color: #aaa;
}
#tabs span:hover {
color: #4388db;
text-decoration: underline;
}
#tabs span.active {
color: #000;
background: #fff;
position: relative;
top: 1px;
border: 1px solid #ddd;
border-bottom-width: 0;
text-decoration: none;
}
#content p {
margin-bottom: 15px;
}
#content li {
line-height: 25px;
}
#content p.terminal {
background: #ebebeb;
padding: 15px;
font-family: monospace;
line-height: 15px;
}
#content p.terminal em {
color: green;
}
#downloads {
text-align: center;
margin-top: 20px;
}
a.download-button {
display: inline-block;
background-color: #1c1c1c;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAzUlEQVRIx+2TzQ2DMAyFMwCHHjoop4oVmKJj9MQkjFAxQX6oLWFkpYlxcNUTlp6UQ9578SdwTpgY45hSWiXhHXd2IGBcDwbvmAropVvY1/lnBYIuRBeifyLy3t/B0DNNCkQT92CGWAK//uMIS+2MXtUmvEQrdXheokDUHt6C63Q4KxkELIMpPC/JsLSFg+kJeqHgU+ukTUrh6CE/ZpUKZgoIIdxqm9Rejh6Gby4WEIJagTToYQjLBcTZUiBuwFZcQO9GLWpE1tFsYNVe8AFIAT1j7+DRSgAAAABJRU5ErkJggg==);
background-repeat: no-repeat;
background-position: 15px center;
color: #fff;
text-transform: uppercase;
font-size: 11px;
height: 50px;
line-height: 50px;
padding: 0 20px 0 45px;
}
a.download-button:hover {
text-decoration: none;
background-color: #555;
}
#documentation {
border-top: 1px solid #ddd;
}
</style>
<script>
//
// Google Analytics
//User ID Generation
var prefix = ['abc', 'def', 'ghi'],
middle = ['123', '456', '789'],
suffix = ['rst', 'uvw', 'xyz'],
random = function() {
return Math.floor(Math.random() * 3);
};
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+d.toUTCString();
document.cookie = cname + "=" + cvalue + "; " + expires;
}
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for(var i=0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1);
if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
}
return "";
}
var user = getCookie("username");
if (user == "") {
var user = "User-" + prefix[random()] + '-' + Math.floor((Math.random() * 60000) + 1) + '-' + suffix[random()]; // e.g. abc-123-rst
if (user != "" && user != null) {
setCookie("username", user, 365);
}
}
// Simple pseudo-random user id - 27 possible values
var customUserId = user; // e.g. abc-123-rst
function getHitTime() {
// Get local time as ISO string with offset at the end
var now = new Date();
var tzo = -now.getTimezoneOffset();
var dif = tzo >= 0 ? '+' : '-';
var pad = function(num) {
var norm = Math.abs(Math.floor(num));
return (norm < 10 ? '0' : '') + norm;
};
return now.getFullYear()
+ '-' + pad(now.getMonth()+1)
+ '-' + pad(now.getDate())
+ 'T' + pad(now.getHours())
+ ':' + pad(now.getMinutes())
+ ':' + pad(now.getSeconds())
+ '.' + pad(now.getMilliseconds())
+ dif + pad(tzo / 60)
+ ':' + pad(tzo % 60);
}
console.log(customUserId);
// test
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-29263631-3');
ga('create', 'UA-64842905-1', 'auto', {'name': 'newTracker'}, {'allowLinker': true },{'userId': customUserId});
ga('newTracker.require', 'linker');
ga('linker:autoLink', ['h2o.ai','leadpages.co', 'amazonaws.com','0xdata.com']);
ga('send', 'pageview', { 'title': 'H2O Downloads for SUBST_PROJECT_VERSION' });
// New Tracker Sending Custom Dimension
ga(function(tracker) {
ga('newTracker.set', 'dimension1', tracker.get('clientId'));
ga('newTracker.set', 'dimension2', new Date().getTime() + '.' + Math.random().toString(36).substring(5));
ga('newTracker.set', 'dimension3', getHitTime());
ga('newTracker.set', 'dimension4', customUserId);
ga('newTracker.send', 'pageview');
});
<!-- GA sending events -->
function trackLink(id, category, action) {
var link = document.getElementById(id);
link.onclick = function() {
ga('send', 'event', category, action, 'SUBST_PROJECT_VERSION');
if(id.indexOf("btnCopy")==-1)
setTimeout(function() { location.href = link.href; }, 300);
return false;
};
}
function initializeTabs() {
var zipTab = document.getElementById('quickstart-zip-tab');
var zipPanel = document.getElementById('quickstart-zip');
var rTab = document.getElementById('quickstart-r-tab');
var rPanel = document.getElementById('quickstart-r');
var pyTab = document.getElementById('quickstart-py-tab');
var pyPanel = document.getElementById('quickstart-py');
var hadoopTab = document.getElementById('quickstart-hadoop-tab');
var hadoopPanel = document.getElementById('quickstart-hadoop');
var mavenTab = document.getElementById('quickstart-maven-tab');
var mavenPanel = document.getElementById('quickstart-maven');
var showZipTab = function() {
zipPanel.style.display = 'block';
zipTab.className = 'active';
rPanel.style.display = 'none';
rTab.className = '';
pyPanel.style.display = 'none';
pyTab.className = '';
hadoopPanel.style.display = 'none';
hadoopTab.className = '';
mavenPanel.style.display = 'none';
mavenTab.className = '';
};
var showRTab = function() {
zipPanel.style.display = 'none';
zipTab.className = '';
rPanel.style.display = 'block';
rTab.className = 'active';
pyPanel.style.display = 'none';
pyTab.className = '';
hadoopPanel.style.display = 'none';
hadoopTab.className = '';
mavenPanel.style.display = 'none';
mavenTab.className = '';
};
var showPyTab = function() {
zipPanel.style.display = 'none';
zipTab.className = '';
rPanel.style.display = 'none';
rTab.className = '';
pyPanel.style.display = 'block';
pyTab.className = 'active';
hadoopPanel.style.display = 'none';
hadoopTab.className = '';
mavenPanel.style.display = 'none';
mavenTab.className = '';
};
var showHadoopTab = function(){
zipPanel.style.display = 'none';
zipTab.className = '';
rPanel.style.display = 'none';
rTab.className = '';
pyPanel.style.display = 'none';
pyTab.className = '';
hadoopPanel.style.display = 'block';
hadoopTab.className = 'active';
mavenPanel.style.display = 'none';
mavenTab.className = '';
};
var showMavenTab = function(){
zipPanel.style.display = 'none';
zipTab.className = '';
rPanel.style.display = 'none';
rTab.className = '';
pyPanel.style.display = 'none';
pyTab.className = '';
hadoopPanel.style.display = 'none';
hadoopTab.className = '';
mavenPanel.style.display = 'block';
mavenTab.className = 'active';
};
zipTab.onclick = showZipTab;
rTab.onclick = showRTab;
pyTab.onclick= showPyTab;
hadoopTab.onclick = showHadoopTab;
mavenTab.onclick = showMavenTab;
var hash = window.location.hash;
if(hash && hash.indexOf('#R') == 0) {
showRTab();
}
if (hash && hash.indexOf('#Python') == 0) {
showPyTab();
}
if (hash && hash.indexOf('#Hadoop') == 0) {
showHadoopTab();
}
if (hash && hash.indexOf('#Maven') == 0) {
showMavenTab();
}
}
<!-- DOM 0 style without jquery -->
trackLinks = function() {
trackLink('download-zip', 'Download', 'ZIP');
trackLink('doc-flow', 'Documentation', 'Flow');
trackLink('doc-r-pdf', 'Documentation', 'R');
trackLink('doc-py', 'Documentation', 'Hadoop');
trackLink('doc-rest', 'Documentation', 'REST API');
trackLink('doc-h2o-core-javadoc', 'Documentation', 'H2O Core Javadoc');
trackLink('doc-h2o-algos-javadoc', 'Documentation', 'H2O Algos Javadoc');
trackLink('doc-h2o-genmodel-javadoc', 'Documentation', 'H2O Generated POJO Model Javadoc');
trackLink('doc-h2o-scala-javadoc', 'Documentation', 'H2O Scala Javadoc');
trackLink('btnCopy1','Copy to Clipboard', 'Run H2O From Terminal');
trackLink('btnCopy2','Copy to Clipboard', 'Use H2O directly from Python');
trackLink('btnCopy3','Copy to Clipboard', 'Use H2O Directly from R');
trackLink('btnCopy4','Copy to Clipboard', 'Run H2O on Hadoop');
trackLink('btnCopy5','Copy to Clipboard', 'Run H2O on Hadoop');
trackLink('btnCopy6','Copy to Clipboard', 'Run H2O on Maven');
trackLink('btnCopy7','Copy to Clipboard', 'Run H2O on Hadoop');
trackLink('btnCopy8','Copy to Clipboard', 'Use H2O directly from Python');
}
populatePageWithBuildInfoJson = function(obj) {
var out;
var i;
out = "";
out += "<ul>\n";
user_documents = obj.user_documents;
for (i = 0; i < user_documents.length; i++) {
doc = user_documents[i];
out += "<li>";
out += "<a id=\"";
out += doc.id;
out += "\"";
out += " href=\"";
out += doc.path
out += "\">";
out += doc.name;
out += "</a>";
out += "</li>";
out += "\n";
}
out += "</ul>\n";
tmp = document.getElementById("user_documentation")
tmp.innerHTML = out;
out = "";
out += "<ul>\n";
developer_documents = obj.developer_documents;
for (i = 0; i < developer_documents.length; i++) {
doc = developer_documents[i];
out += "<li>";
out += "<a id=\"";
out += doc.id;
out += "\"";
out += " href=\"";
out += doc.path
out += "\">";
out += doc.name;
out += "</a>";
out += "</li>";
out += "\n";
}
out += "</ul>\n";
tmp = document.getElementById("developer_documentation")
tmp.innerHTML = out;
out = "";
out += "<ul>\n";
booklets = obj.booklets;
for (i = 0; i < booklets.length; i++) {
doc = booklets[i];
out += "<li>";
out += "<a id=\"";
out += doc.id;
out += "\"";
out += " href=\"";
out += doc.path
out += "\">";
out += doc.name;
out += "</a>";
out += "</li>";
out += "\n";
}
out += "</ul>\n";
tmp = document.getElementById("booklets")
tmp.innerHTML = out;
out = "";
out += "<ul>\n";
hadoop_distributions = obj.hadoop_distributions;
for (i = 0; i < hadoop_distributions.length; i++) {
dist = hadoop_distributions[i];
var url = location.href;
var url2 = url.substring(0, url.lastIndexOf("/"));
out += "wget ";
out += url2;
out += "/";
out += dist.zip_file_path;
out += "<br/>";
out += "\n";
}
out += "</ul>\n";
tmp = document.getElementById("to_copy4")
tmp.innerHTML = out;
}
readBuildInfoJsonFile = function() {
var xmlhttp = new XMLHttpRequest();
var url = "buildinfo.json";
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
var myObj = JSON.parse(xmlhttp.responseText);
populatePageWithBuildInfoJson(myObj);
// Must be after populating the page or id's won't be found.
trackLinks();
initializeTabs();
}
}
xmlhttp.open("GET", url, true);
xmlhttp.send();
}
window.onload = function() {
readBuildInfoJsonFile();
}
</script>
</head>
<body>
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-K3XHT8"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-K3XHT8');</script>
<!-- End Google Tag Manager -->
<!--[if lt IE 8]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http:https://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div id="container">
<div id="title">
<p class="links">
<a href="http:https://h2o.ai">H<sub>2</sub>O.ai</a> | <a href="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/h2oai/h2o-dev">Github</a>
</p>
<h1><span>H<sub>2</sub>O</span></h1>
<p class="version">Version SUBST_PROJECT_VERSION</p>
</div>
<div id="subtitle">
<p>Fast Scalable Machine Learning API<br/>For Smarter Applications</p>
</div>
<div id="content">
<div id="tabs">
<span id="quickstart-zip-tab" class="active">Download and Run</span>
<span id = "quickstart-r-tab">Install in R</span>
<span id = "quickstart-py-tab">Install in Python</span>
<span id = "quickstart-hadoop-tab">Install on Hadoop</span>
<span id = "quickstart-maven-tab">Use from Maven</span>
</div>
<!-- Clipboard Icon !-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/2.4.1/octicons.min.css">
<script type="text/javascript" src="ZeroClipboard.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script>
<script src="//app-ab12.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1016"></form>
<script></script>
<script type="text/javascript">
$(document).ready(function () {
var firstAdd=false;
ZeroClipboard.config({moviePath:'ZeroClipboard.swf'});
var clip = new ZeroClipboard($(".copy_button"));
$(".copy_button").click(function(event){
event.preventDefault();
MktoForms2.loadForm("//app-ab12.marketo.com", "644-PKX-778", 1113, function (form){MktoForms2.lightbox(form).show();});
MktoForms2.whenReady(function (form) {
if($(".mktoModalMain").first().html().indexOf('class="abc"')==-1)
{
$(".mktoModalMain").first().prepend('<img alt="Deep Learning Booklet" itemprop="image" src="https://s3.amazonaws.com/titlepages.leanpub.com/deeplearning/large?1437107332" style="float:left">');
$(".mktoModalMain form").wrap('<div class="abc" style="width:330px;float:left;margin-left:10px"></div>');
$(".abc").first().prepend('<h1 style="text-align:center;margin-top:12px;font-size:19px">Copied!</h1><p style="margin: 17px 12px 14px 12px;text-align:center;font-size: 13px;">Sign up below to get access to our Deep Learning book.</p>');
}
else{
$(".mktoModalMain .abc h1").html("Copied!");
}
});
});
$("#download-zip").click(function(event){
event.preventDefault();
MktoForms2.loadForm("//app-ab12.marketo.com", "644-PKX-778", 1113, function (form){MktoForms2.lightbox(form).show();});
MktoForms2.whenReady(function (form) {
if($(".mktoModalMain").first().html().indexOf('class="abc"')==-1)
{
$(".mktoModalMain").first().prepend('<img alt="Deep Learning Booklet" itemprop="image" src="https://s3.amazonaws.com/titlepages.leanpub.com/deeplearning/large?1437107332" style="float:left">');
$(".mktoModalMain form").wrap('<div class="abc" style="width:330px;float:left;margin-left:10px"></div>');
$(".abc").first().prepend('<h1 style="text-align:center;margin-top:12px;font-size:19px">Downloading...</h1><p style="margin: 17px 12px 14px 12px;text-align:center;font-size: 13px;">Sign up below to get access to our Deep Learning book.</p>');
}
else{
$(".mktoModalMain .abc h1").html("Downloading...");
}
});
});
clip.on( 'mouseover', function(client) {
console.log('mouseover');
} );
clip.on('complete', function (client, args) {
alert('clipDetail complete');
});
});
</script>
<style>
.btn {
float:right;
position: relative;
display: inline-block;
padding: 3px 8px;
font-size: 13px;
font-weight: bold;
line-height: 20px;
color: #333;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
background-color: #eee;
background-image: -webkit-linear-gradient(#fcfcfc, #eee);
background-image: linear-gradient(#fcfcfc, #eee);
border: 1px solid #d5d5d5;
border-radius: 3px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-appearance: none;
-webkit-transition:all .5s linear;
transition:all .5s linear;
-moz-transition:all .5s linear;
-ms-transition:all .5s linear;
}
.octicon-clippy{font-size:30px;}
.zeroclipboard-is-hover .octicon-clippy{
color:#4388db !important;
}
</style>
<div id="panels">
<div id="quickstart-zip">
<div id="downloads">
<a id="download-zip" class="download-button" href="h2o-SUBST_PROJECT_VERSION.zip">Download H<sub>2</sub>O</a>
</div>
<h2>Get started with H<sub>2</sub>O in 3 easy steps</h2>
<p>1. Download H<sub>2</sub>O. This is a zip file that contains everything you need to get started.</p>
<p>2. From your terminal, run:</p>
<button class="btn copy_button" id="btnCopy1" data-copied-hint="Copied!" data-clipboard-target='to_copy1'>
<span class="octicon octicon-clippy"></span>
</button>
<p class="terminal" id="to_copy1">
cd ~/Downloads<br/>
unzip h2o-SUBST_PROJECT_VERSION.zip<br/>
cd h2o-SUBST_PROJECT_VERSION<br/>
java -jar h2o.jar<br/>
</p>
<p>3. Point your browser to <a href="http:https://localhost:54321/" target="_blank">http:https://localhost:54321</a>
</div>
<div id="quickstart-py" style="display:none">
<h2>Use H<sub>2</sub>O directly from Python</h2>
<p>1. Prerequisite: Python 2.7</p>
<p>2. Install dependencies (prepending with `sudo` if needed):</p>
<button class="btn copy_button" id="btnCopy8" data-copied-hint="Copied!" data-clipboard-target='to_copy8'>
<span class="octicon octicon-clippy"></span>
</button>
<p class="terminal" id="to_copy8">
pip install requests<br/>
pip install tabulate<br/>
pip install scikit-learn
</p>
<p>At the command line, copy and paste these commands one line at a time:</p>
<button class="btn copy_button" id="btnCopy2" data-copied-hint="Copied!" data-clipboard-target='to_copy2'>
<span class="octicon octicon-clippy"></span>
</button>
<p class="terminal" id="to_copy2">
<em># The following command removes the H<sub>2</sub>O module for Python.</em><br/>
pip uninstall h2o<br/>
<br/>
<em># Next, use pip to install this version of the H<sub>2</sub>O Python module.</em><br/>
pip install <script type="text/javascript">var url = location.href; var url2 = url.substring(0, url.lastIndexOf("/")); document.write(url2);</script>/Python/SUBST_WHEEL_FILE_NAME<br/>
</div>
<div id="quickstart-r" style="display:none">
<h2>Use H<sub>2</sub>O directly from R</h2>
<p>Copy and paste these commands into R one line at a time:</p>
<button class="btn copy_button" id="btnCopy3" data-copied-hint="Copied!" data-clipboard-target='to_copy3'>
<span class="octicon octicon-clippy"></span>
</button>
<p class="terminal" id="to_copy3"data-clipboard-target='to_copy3'>
<em># The following two commands remove any previously installed H<sub>2</sub>O packages for R.</em><br/>
if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) }<br/>
if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") }<br/>
<br/>
<em># Next, we download packages that H<sub>2</sub>O depends on.</em><br/>
if (! ("methods" %in% rownames(installed.packages()))) { install.packages("methods") }<br/>
if (! ("statmod" %in% rownames(installed.packages()))) { install.packages("statmod") }<br/>
if (! ("stats" %in% rownames(installed.packages()))) { install.packages("stats") }<br/>
if (! ("graphics" %in% rownames(installed.packages()))) { install.packages("graphics") }<br/>
if (! ("RCurl" %in% rownames(installed.packages()))) { install.packages("RCurl") }<br/>
if (! ("jsonlite" %in% rownames(installed.packages()))) { install.packages("jsonlite") }<br/>
if (! ("tools" %in% rownames(installed.packages()))) { install.packages("tools") }<br/>
if (! ("utils" %in% rownames(installed.packages()))) { install.packages("utils") }<br/>
<br/>
<em># Now we download, install and initialize the H<sub>2</sub>O package for R.</em><br/>
install.packages("h2o", type="source", repos=(c("<script type="text/javascript">var url = location.href; var url2 = url.substring(0, url.lastIndexOf("/")); document.write(url2);</script>/R")))<br/>
library(h2o)<br/>
localH2O = h2o.init(nthreads=-1)<br/>
<br/>
<em># Finally, let's run a demo to see H<sub>2</sub>O at work.</em><br/>
demo(h2o.kmeans)
</div>
<div id="quickstart-hadoop" style="display:none">
<h2>Run H<sub>2</sub>O on Hadoop in just 3 steps</h2>
<p>1. Download H<sub>2</sub>O for your version of Hadoop. This is a zip file that contains everything you need to get started.</p>
<button class="btn copy_button" id="btnCopy4" data-copied-hint="Copied!" data-clipboard-target='to_copy4'>
<span class="octicon octicon-clippy"></span>
</button>
<p class="terminal" id="to_copy4"></p>
<p>2. Unpack the zip file and launch a 6g instance of H<sub>2</sub>O: </p>
<button class="btn copy_button" id="btnCopy7" data-copied-hint="Copied!" data-clipboard-target='to_copy7'>
<span class="octicon octicon-clippy"></span>
</button>
<p class="terminal" id="to_copy7">
unzip h2o-SUBST_PROJECT_VERSION-*.zip<br/>
cd h2o-SUBST_PROJECT_VERSION-*<br/>
hadoop jar h2odriver.jar -nodes 1 -mapperXmx 6g -output hdfsOutputDirName<br/>
</p>
<p>3. Point your browser to H2O (see "Open H2O Flow in your web browser" in the output below):</p>
<button class="btn copy_button" id="btnCopy5" data-copied-hint="Copied!" data-clipboard-target='to_copy5'>
<span class="octicon octicon-clippy"></span>
</button>
<p class="terminal" id="to_copy5">
Determining driver host interface for mapper->driver callback...<br/>
[Possible callback IP address: 172.16.2.181]<br/>
[Possible callback IP address: 127.0.0.1]<br/>
...<br/>
Waiting for H2O cluster to come up...<br/>
H2O node 172.16.2.188:54321 requested flatfile<br/>
Sending flatfiles to nodes...<br/>
[Sending flatfile to node 172.16.2.188:54321]<br/>
H2O node 172.16.2.188:54321 reports H2O cluster size 1<br/>
H2O cluster (1 nodes) is up<br/>
(Note: Use the -disown option to exit the driver after cluster formation)<br/>
<br/>
<em>Open H2O Flow in your web browser: http:https://172.16.2.188:54321</em><br/>
<br/>
(Press Ctrl-C to kill the cluster)<br/>
Blocking until the H2O cluster shuts down...<br/>
</p>
</div>
<div id="quickstart-maven" style="display:none">
<h2>Gradle-style specification for Maven artifacts</h2>
<p>See the <a href="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/h2oai/h2o-droplets">h2o-droplets github repository</a> for a working example.</p>
<button class="btn copy_button" id="btnCopy6" data-copied-hint="Copied!" data-clipboard-target='to_copy6'>
<span class="octicon octicon-clippy"></span>
</button>
<p class="terminal" id="to_copy6">
def h2oProjectVersion = "SUBST_PROJECT_VERSION"</br>
</br>
repositories {</br>
maven {</br>
url "<script type="text/javascript">var url = location.href; var url2 = url.substring(0, url.lastIndexOf("/")); document.write(url2);</script>/maven/repo/"</br>
}</br>
}</br>
</br>
dependencies {</br>
compile "ai.h2o:h2o-algos:${h2oProjectVersion}"</br>
compile "ai.h2o:h2o-app:${h2oProjectVersion}"</br>
compile "ai.h2o:h2o-core:${h2oProjectVersion}"</br>
compile "ai.h2o:h2o-genmodel:${h2oProjectVersion}"</br>
compile "ai.h2o:h2o-persist-hdfs:${h2oProjectVersion}"</br>
compile "ai.h2o:h2o-web:${h2oProjectVersion}"</br>
}</br>
</div>
</div>
<div id="documentation">
<h2>User Documentation</h2>
<div id="user_documentation"></div>
<h2>Developer Documentation</h2>
<div id="developer_documentation"></div>
<h2>Booklets</h2>
<div id="booklets"></div>
</div>
</div>
</div>
</body>
</html>