forked from h2oai/h2o-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9889302
commit c233d98
Showing
11 changed files
with
107 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<p>This tutorial shows how to use the GBM method in H<sub>2</sub>O for model training and classification.</p> | ||
|
||
<p>GBM is a method for regression and classification that builds a forest of gradient boosted trees. The trees are built from a training dataset and can be used to make predictions on a test dataset.</p> | ||
|
||
<p> | ||
Vocabulary: | ||
<ul> | ||
<li><a href="http://en.wikipedia.org/wiki/Gradient_boosting">Gradient boosting</a></li> | ||
</ul> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<p> | ||
We will use the common <a href='http://archive.ics.uci.edu/ml/datasets/Iris'>Iris dataset</a> for training. | ||
</p> | ||
|
||
<p> | ||
The iris dataset is provided <a href="/datasets/iris.csv">here</a>. Please, download it and save it on your disk. | ||
</p> | ||
|
||
<p> | ||
To upload the dataset into H<sub>2</sub>O application, please, use the menu option <span class='label mref'>Data > Upload</span> or direct <a href="/Upload.html" target="_blank">link</a>. | ||
|
||
<p> | ||
Alternatively, Data can be imported from a URL directly into H<sub>2</sub>O application. | ||
Use the menu option <span class='label mref'>Data > Import Files</span> or direct | ||
<a href="/2/ImportFiles2.html?path=https%3A%2F%2Fraw.github.com%2F0xdata%2Fh2o%2Fmaster%2Fsmalldata%2Firis%2Firis.csv" target="_blank">link</a>. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<p> | ||
<!--To parse the uploaded dataset (most likely already done), use the menu option <span class='label mref'>Data > Parse</span> or direct <a href="/2/Parse2.query?source_key=iris.csv" target="_blank">link</a>.--> | ||
The uploaded dataset was automatically parsed during the previous step. | ||
You can always use the menu option <span class='label mref'>Data > Parse</span> to parse data. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<p> | ||
The parsed dataset can be inspected by the menu option <span class='label mref'>Data > Inspect</span> or by direct | ||
<a href="/2/Inspect2.html?src_key=iris.hex" target="_blank">link</a>. | ||
</p> | ||
|
||
<p>The inspect view shows the columns and rows for the dataset. For each column it displays its type, arity, basic statistical information (min/max/min/variance), and number of missing or invalid rows. The whole dataset can be explored row by row if desired.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<p> | ||
Now that we have loaded the iris dataset into H<sub>2</sub>O, we can build a GBM | ||
model. For this purpose, please use the menu option <span class='label | ||
mref'>Model > GBM</span> or direct <a | ||
href="/2/GBM.query?source=iris.hex&destination_key=model&response=4&ntrees=20&ignore=&learn_rate=0.2" | ||
target="_blank">link</a>. | ||
<p> | ||
</p> | ||
The GBM method has multiple tuning parameters that can affect the model it will | ||
build. For example, you can increase the number of trees, the maximum tree | ||
depth or the learning rate. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<p> | ||
Running GBM produces a model and its progress is displayed | ||
<a href='2/GBMModelView.html?_modelKey=model' target='_blank'>here</a>. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<p> | ||
The model can be used to make a prediction on a test set via | ||
the menu option <span class='label mref'>Score > Predict</span> or direct <a href="/2/Predict.query?model=model&data=iris.hex&prediction=pred" target="_blank">link</a>. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<p> | ||
The prediction can now be scored via | ||
the menu option <span class='label mref'>Score > Confusion Matrix</span> or direct <a href="/2/ConfusionMatrix.query?actual=iris.hex&vactual=4&predict=pred&vpredict=predict" target="_blank">link</a>. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package water.api; | ||
|
||
/** | ||
* Basic page introducing tutorial for GBM on Iris | ||
*/ | ||
public class TutorialGBM extends TutorialWorkflow { | ||
|
||
private final transient TutorWorkflow _wf; | ||
private final static String[][] TUTORIAL_STEPS = new String[][]{ | ||
/* Title Short Summary File containing step description */ | ||
new String[] { "Step 1", "Introduction", "/tutorials/gbm.iris/step1.html" }, | ||
new String[] { "Step 2", "Dataset inhale", "/tutorials/gbm.iris/step2.html" }, | ||
new String[] { "Step 3", "Parsing the dataset", "/tutorials/gbm.iris/step3.html" }, | ||
new String[] { "Step 4", "Inspecting the dataset", "/tutorials/gbm.iris/step4.html" }, | ||
new String[] { "Step 5", "Building the model", "/tutorials/gbm.iris/step5.html" }, | ||
new String[] { "Step 6", "Inspecting the model", "/tutorials/gbm.iris/step6.html" }, | ||
new String[] { "Step 7", "Predict on a test set", "/tutorials/gbm.iris/step7.html" }, | ||
new String[] { "Step 8", "Scoring the prediction", "/tutorials/gbm.iris/step8.html" }, | ||
}; | ||
|
||
public TutorialGBM() { | ||
_wf = new TutorWorkflow("GBM Tutorial"); | ||
int i = 1; | ||
for (String[] info : TUTORIAL_STEPS) { | ||
_wf.addStep(i++, new FileTutorStep(info)); | ||
} | ||
} | ||
|
||
@Override | ||
protected TutorWorkflow getWorkflow() { | ||
return _wf; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters