Search in sources :

Example 11 with GLMModel

use of hex.glm.GLMModel in project h2o-3 by h2oai.

the class ModelSerializationTest method prepareGLMModel.

private GLMModel prepareGLMModel(String dataset, String[] ignoredColumns, String response, GLMModel.GLMParameters.Family family) {
    Frame f = parse_test_file(dataset);
    try {
        GLMModel.GLMParameters params = new GLMModel.GLMParameters();
        params._train = f._key;
        params._ignored_columns = ignoredColumns;
        params._response_column = response;
        params._family = family;
        return new GLM(params).trainModel().get();
    } finally {
        if (f != null)
            f.delete();
    }
}
Also used : Frame(water.fvec.Frame) GLMModel(hex.glm.GLMModel) GLM(hex.glm.GLM)

Aggregations

GLMModel (hex.glm.GLMModel)11 Frame (water.fvec.Frame)5 GLM (hex.glm.GLM)4 Test (org.junit.Test)4 GBM (hex.tree.gbm.GBM)3 GBMModel (hex.tree.gbm.GBMModel)3 DeepLearning (hex.deeplearning.DeepLearning)2 DeepLearningModel (hex.deeplearning.DeepLearningModel)2 DRF (hex.tree.drf.DRF)2 DRFModel (hex.tree.drf.DRFModel)2 NFSFileVec (water.fvec.NFSFileVec)2 DataInfo (hex.DataInfo)1 GLMOutput (hex.glm.GLMModel.GLMOutput)1 Grid (hex.grid.Grid)1 GridSearch (hex.grid.GridSearch)1 L_BFGS (hex.optimization.L_BFGS)1 Quantile (hex.quantile.Quantile)1 QuantileModel (hex.quantile.QuantileModel)1 DRFParametersV3 (hex.schemas.DRFV3.DRFParametersV3)1 DeepLearningParametersV3 (hex.schemas.DeepLearningV3.DeepLearningParametersV3)1