All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.h2o.automl.leaderboard.ModelGroup Maven / Gradle / Ivy

There is a newer version: 3.46.0.6
Show newest version
package ai.h2o.automl.leaderboard;

import ai.h2o.automl.ModelingStep;
import hex.Model;
import water.Iced;
import water.Key;

public class ModelGroup extends Iced implements LeaderboardCell {
    public static final LeaderboardColumn COLUMN = new LeaderboardColumn("group", "int", "%s", true);
    final Key _modelId;
    final int _priorityGroup;

    public ModelGroup(Model model, ModelingStep step) {
        _modelId = model._key;
        _priorityGroup = step == null ? -1 : step.getPriorityGroup();
    }

    @Override
    public LeaderboardColumn getColumn() {
        return COLUMN;
    }

    @Override
    public Key getModelId() {
        return _modelId;
    }

    @Override
    public Integer getValue() {
        return _priorityGroup;
    }

    @Override
    public void setValue(Integer value) {
        throw new UnsupportedOperationException();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy