- Is it possible to guarantee reproducibility in single node cluster?
The following criteria must be met to guarantee reproducibility in a single node cluster:
- Same training data
- Note: If you have H2O import a whole directory with multiple files instead of a single file, we do not guarantee reproducibility because the data may be shuffled during import.
- Same parameters used to train the model
- Same seed set if sampling is done
- Parameters that perform sampling:
- No early stopping or early stopping with
score_tree_intervalexplicitly specified and same validation data
- If using cross validation for early stopping, seed must be set
- Is it possible to guarantee reproducibility in multi-node clusters?
The following criteria must be met to guarantee reproducibility in a multi-node cluster:
Reproducible requirements for single node cluster are met. (See above.)
The cluster configuration is the same.
- Clusters must have the same number of nodes.
- Modes must have the same number of CPU cores available (or same restriction on number of threads).
The model training is triggered from the leader node of the cluster. (See note below.)Note: When H2O is running on Hadoop, the leader node is automatically returned by the h2odriver as the node that the user should connect to. In multi-node deployments of Standalone H2O, the leader node has to be manually identified by the user. Flow users can easily check whether they are connected to the leader node by opening Cluster Status (from the Admin menu) and checking that the first node has the same IP address as they see in their browser’s address bar.
Note: In H2O versions prior to 188.8.131.52, the node automatically returned by the h2odriver while running on Hadoop was not guaranteed to be the leader node. If you are using a version prior to 184.108.40.206 and you are running H2O on Hadoop, the leader node has to be manually identified by the user for reproducibility.
- How deterministic is GBM?
As long as criteria for reproducibility is met (see above), GBM is deterministic up to floating point rounding errors (out-of-order atomic addition of multiple threads during histogram building).
- What are the best practices to ensure reproducibility?
When building a model the user should perform the following steps to make sure the model can be reproduced in the future:
- Save any script used to pre-process the data before model training.
- In the event that you will need to reproduce your model, it is important to save the steps used to create the training data.
- This should include how the data is imported into the H2O cluster and whether any data types have been modified (i.e., was a numeric column converted to categorical).
- Save information about the H2O cluster.
- What are the number of nodes in the cluster?
- What are the number of CPU cores available?
- Save the H2O binary model.
- Refer to Saving and Loading a Model for more information.
- The binary model will contain the H2O version and the parameters used to train the model.