index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos/tree/SharedTreeSubgraph.java | package hex.genmodel.algos.tree;
import hex.genmodel.tools.PrintMojo;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Subgraph for representing a tree.
* A subgraph contains nodes.
*/
public class SharedTreeSubgraph {
public... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos/tree/TreeBackedMojoModel.java | package hex.genmodel.algos.tree;
public interface TreeBackedMojoModel extends SharedTreeGraphConverter {
int getNTreeGroups();
int getNTreesPerGroup();
double getInitF();
String[] getDecisionPath(final double[] row);
SharedTreeMojoModel.LeafNodeAssignments getLeafNodeAssignments(final double[]... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos/tree/TreeSHAP.java | // Code in this file started as 1-1 conversion of Native XGBoost implementation in C++ to Java
// please see:
// https://github.com/dmlc/xgboost/blob/master/src/tree/tree_model.cc
// All credit for this implementation goes to XGBoost Contributors:
// https://github.com/dmlc/xgboost/blob/master/CONTRIBUTORS.md
// ... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos/tree/TreeSHAPEnsemble.java | package hex.genmodel.algos.tree;
import java.util.Collection;
public class TreeSHAPEnsemble<R> implements TreeSHAPPredictor<R> {
private final TreeSHAPPredictor<R>[] _predictors;
private final float _initPred;
private final int _wsMakerIndex;
@SuppressWarnings("unchecked")
public TreeSHAPEnsemble(Collecti... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos/tree/TreeSHAPPredictor.java | package hex.genmodel.algos.tree;
import java.io.Serializable;
public interface TreeSHAPPredictor<R> extends Serializable {
float[] calculateContributions(final R feat, float[] out_contribs);
float[] calculateContributions(final R feat,
float[] out_contribs, int condition, int c... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos/upliftdrf/UpliftDrfMojoModel.java | package hex.genmodel.algos.upliftdrf;
import hex.ModelCategory;
import hex.genmodel.algos.tree.SharedTreeMojoModel;
public class UpliftDrfMojoModel extends SharedTreeMojoModel {
protected double[] _thresholds;
public UpliftDrfMojoModel(String[] columns, String[][] domains, String responseColumn, Str... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos/upliftdrf/UpliftDrfMojoReader.java | package hex.genmodel.algos.upliftdrf;
import hex.genmodel.algos.tree.SharedTreeMojoReader;
import java.io.IOException;
/**
*/
public class UpliftDrfMojoReader extends SharedTreeMojoReader<UpliftDrfMojoModel> {
@Override
public String getModelName() {
return "Distributed Uplift Random Forest";
}
... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos/word2vec/Word2VecMojoModel.java | package hex.genmodel.algos.word2vec;
import hex.genmodel.MojoModel;
import java.util.HashMap;
public class Word2VecMojoModel extends MojoModel implements WordEmbeddingModel {
int _vecSize;
HashMap<String, float[]> _embeddings;
Word2VecMojoModel(String[] columns, String[][] domains, String responseName) {
... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos/word2vec/Word2VecMojoReader.java | package hex.genmodel.algos.word2vec;
import hex.genmodel.ModelMojoReader;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.HashMap;
import java.util.Iterator;
public class Word2VecMojoReader extends ModelMojoReader<Word2VecMojoModel> {
@Override
public String getModelName() {
return ... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/algos/word2vec/WordEmbeddingModel.java | package hex.genmodel.algos.word2vec;
/**
* Interface for models implementing Word Embeddings
*/
public interface WordEmbeddingModel {
/**
* Dimensionality of the vector space of this Word Embedding model
* @return length of word embeddings
*/
int getVecSize();
/**
* Transforms a given a word into... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/annotations/ModelPojo.java | package hex.genmodel.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation to simplify identification of model pojos.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TY... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/DeepLearningModelAttributes.java | package hex.genmodel.attributes;
import com.google.gson.JsonObject;
import hex.genmodel.MojoModel;
import hex.genmodel.attributes.parameters.VariableImportancesHolder;
public class DeepLearningModelAttributes extends ModelAttributes implements VariableImportancesHolder {
private final VariableImportances _variab... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/ModelAttributes.java | package hex.genmodel.attributes;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import hex.genmodel.MojoModel;
import hex.genmodel.algos.glm.GlmMojoModel;
import hex.genmodel.algos.glm.GlmMultinomialMojoModel;
import hex.genmodel.algos.glm.GlmOrdinalMojoModel;
import hex.genmodel.attributes.metri... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/ModelAttributesGLM.java | package hex.genmodel.attributes;
import com.google.gson.JsonObject;
import hex.genmodel.MojoModel;
import hex.genmodel.attributes.parameters.VariableImportancesHolder;
public class ModelAttributesGLM extends ModelAttributes implements VariableImportancesHolder {
public final Table _coefficients_table;
private fi... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/ModelJsonReader.java | package hex.genmodel.attributes;
import com.google.gson.*;
import hex.genmodel.*;
import hex.genmodel.attributes.parameters.ColumnSpecifier;
import hex.genmodel.attributes.parameters.KeyValue;
import hex.genmodel.attributes.parameters.ParameterKey;
import hex.genmodel.attributes.parameters.StringPair;
import water.log... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/SerializedName.java | package hex.genmodel.attributes;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
@Retention(RetentionPolicy.RUNTIME)
@Target({FIELD})
public @interface SerializedName {
String value();
Strin... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/SharedTreeModelAttributes.java | package hex.genmodel.attributes;
import com.google.gson.JsonObject;
import hex.genmodel.MojoModel;
import hex.genmodel.attributes.parameters.VariableImportancesHolder;
public class SharedTreeModelAttributes extends ModelAttributes implements VariableImportancesHolder {
private final VariableImportances _variableI... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/Table.java | package hex.genmodel.attributes;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Objects;
/**
* A two-dimensional table capable of containing generic values in each cell.
* Useful for description of various models.
*/
public class Table implements Serializable {
private String _tableHea... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/VariableImportances.java | package hex.genmodel.attributes;
import com.google.gson.JsonObject;
import hex.genmodel.attributes.parameters.KeyValue;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Comparator;
/**
* Represents model's variables and their relative importances in the model.
* The structure is model-indepe... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetrics.java | package hex.genmodel.attributes.metrics;
import java.io.Serializable;
public class MojoModelMetrics implements Serializable {
public long _frame_checksum;
public String _description;
public String _model_category;
public long _scoring_time;
public String _custom_metric_name;
public double _custom_metric_... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetricsAnomaly.java | package hex.genmodel.attributes.metrics;
/**
* Anomaly detection metrics
*/
public class MojoModelMetricsAnomaly extends MojoModelMetrics {
public double _mean_score;
public double _mean_normalized_score;
}
|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetricsBinomial.java | package hex.genmodel.attributes.metrics;
import hex.genmodel.attributes.SerializedName;
import hex.genmodel.attributes.Table;
public class MojoModelMetricsBinomial extends MojoModelMetricsSupervised {
@SerializedName("AUC")
public double _auc;
public double _pr_auc;
@SerializedName("Gini")
public double ... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetricsBinomialGLM.java | package hex.genmodel.attributes.metrics;
import hex.genmodel.attributes.SerializedName;
public class MojoModelMetricsBinomialGLM extends MojoModelMetricsBinomial {
@SerializedName("null_degrees_of_freedom")
public long _nullDegreesOfFreedom;
@SerializedName("residual_degrees_of_freedom")
public long _resi... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetricsBinomialUplift.java | package hex.genmodel.attributes.metrics;
import hex.genmodel.attributes.SerializedName;
import hex.genmodel.attributes.Table;
public class MojoModelMetricsBinomialUplift extends MojoModelMetricsSupervised {
@SerializedName("AUUC")
public double _auuc;
public double _normalized_auuc;
@SerializedNa... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetricsMultinomial.java | package hex.genmodel.attributes.metrics;
import hex.genmodel.attributes.SerializedName;
import hex.genmodel.attributes.Table;
public class MojoModelMetricsMultinomial extends MojoModelMetricsSupervised {
@SerializedName(value = "cm", insideElementPath = "table")
public Table _confusion_matrix;
@SerializedName(... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetricsMultinomialGLM.java | package hex.genmodel.attributes.metrics;
import hex.genmodel.attributes.SerializedName;
public class MojoModelMetricsMultinomialGLM extends MojoModelMetricsMultinomial {
@SerializedName("null_degrees_of_freedom")
public long _nullDegreesOfFreedom;
@SerializedName("residual_degrees_of_freedom")
public long... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetricsOrdinal.java | package hex.genmodel.attributes.metrics;
import hex.genmodel.attributes.SerializedName;
import hex.genmodel.attributes.Table;
public class MojoModelMetricsOrdinal extends MojoModelMetricsSupervised {
public float[] _hit_ratios;
@SerializedName(value = "cm", insideElementPath = "table")
public Table _cm;
publi... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetricsOrdinalGLM.java | package hex.genmodel.attributes.metrics;
import hex.genmodel.attributes.SerializedName;
public class MojoModelMetricsOrdinalGLM extends MojoModelMetricsOrdinal {
@SerializedName("null_degrees_of_freedom")
public long _nullDegreesOfFreedom;
@SerializedName("residual_degrees_of_freedom")
public long _residualD... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetricsRegression.java | package hex.genmodel.attributes.metrics;
import hex.genmodel.attributes.SerializedName;
public class MojoModelMetricsRegression extends MojoModelMetricsSupervised {
public double _mean_residual_deviance;
@SerializedName("rmsle")
public double _root_mean_squared_log_error;
}
|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetricsRegressionCoxPH.java | package hex.genmodel.attributes.metrics;
public class MojoModelMetricsRegressionCoxPH extends MojoModelMetricsRegression {
public double _concordance;
public long _concordant;
public long _discordant;
public long _tied_y;
}
|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetricsRegressionGLM.java | package hex.genmodel.attributes.metrics;
import hex.genmodel.attributes.SerializedName;
public class MojoModelMetricsRegressionGLM extends MojoModelMetricsRegression {
@SerializedName("null_degrees_of_freedom")
public long _nullDegreesOfFreedom;
@SerializedName("residual_degrees_of_freedom")
public long _re... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/metrics/MojoModelMetricsSupervised.java | package hex.genmodel.attributes.metrics;
public class MojoModelMetricsSupervised extends MojoModelMetrics {
public double _sigma;
}
|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/parameters/ColumnSpecifier.java | package hex.genmodel.attributes.parameters;
import java.io.Serializable;
import java.util.Objects;
public class ColumnSpecifier implements Serializable {
private final String columnName;
private final String[] is_member_of_frames;
public ColumnSpecifier(String columnName, String[] is_member_of_frames) {
O... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/parameters/FeatureContribution.java | package hex.genmodel.attributes.parameters;
import java.io.Serializable;
public class FeatureContribution implements Serializable{
public final String columnName;
public final double shapleyContribution;
public FeatureContribution(String columnName, double shapleyContribution) {
this.columnName ... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/parameters/KeyValue.java | package hex.genmodel.attributes.parameters;
import java.io.Serializable;
public class KeyValue implements Serializable {
public final String key;
public final double value;
public KeyValue(String key, double value) {
this.key = key;
this.value = value;
}
public String getKey... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/parameters/ModelParameter.java | package hex.genmodel.attributes.parameters;
import java.io.Serializable;
public class ModelParameter implements Serializable {
public String name;
public String label;
public String help;
public boolean required;
public String type;
public Object default_value;
public Object actual_value;
public Obje... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/parameters/ParameterKey.java | package hex.genmodel.attributes.parameters;
import java.io.Serializable;
import java.util.Objects;
public class ParameterKey implements Serializable {
private final String name;
private final ParameterKey.Type type;
private final String URL;
public ParameterKey(String name, Type type, String URL) {
Ob... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/parameters/StringPair.java | package hex.genmodel.attributes.parameters;
import java.io.Serializable;
import java.util.Objects;
public class StringPair implements Serializable {
public StringPair(String a, String b) {
_a = a;
_b = b;
}
public final String _a;
public final String _b;
@Override
public Str... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/attributes/parameters/VariableImportancesHolder.java | package hex.genmodel.attributes.parameters;
import hex.genmodel.attributes.VariableImportances;
public interface VariableImportancesHolder {
VariableImportances getVariableImportances();
}
|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/descriptor/ModelDescriptor.java | package hex.genmodel.descriptor;
import hex.ModelCategory;
/**
* Internal structure providing basic information about a model. Used primarily, but no exclusively by MOJO pipeline.
* Every MOJO is guaranteed to provide the information defined by this interface.
*/
public interface ModelDescriptor {
/**
* Doma... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/descriptor/ModelDescriptorBuilder.java | package hex.genmodel.descriptor;
import hex.ModelCategory;
import hex.genmodel.GenModel;
import hex.genmodel.MojoModel;
import hex.genmodel.attributes.ModelAttributes;
import hex.genmodel.attributes.parameters.ColumnSpecifier;
import hex.genmodel.utils.ArrayUtils;
import java.io.Serializable;
import java.util.Arrays;... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/BinaryColumnMapper.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
import hex.genmodel.utils.MathUtils;
import java.util.HashMap;
import java.util.Map;
public class BinaryColumnMapper {
private final GenModel _m;
public BinaryColumnMapper(GenModel m) {
_m = m;
}
public Map<String, Integer> create() {
String... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/BinaryDomainMapConstructor.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
import java.util.HashMap;
import java.util.Map;
public class BinaryDomainMapConstructor extends DomainMapConstructor {
public BinaryDomainMapConstructor(GenModel m, Map<String, Integer> columnNameToIndex) {
super(m, columnNameToIndex);
}
@Override
... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/BinaryEncoder.java | package hex.genmodel.easy;
import hex.genmodel.utils.MathUtils;
import java.util.HashMap;
import java.util.Map;
public class BinaryEncoder implements CategoricalEncoder {
private final String columnName;
private final int targetIndex;
private final Map<String, Integer> domainMap;
private final int binaryCat... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/CategoricalEncoder.java | package hex.genmodel.easy;
import java.io.Serializable;
public interface CategoricalEncoder extends Serializable {
/**
* Encodes a given categorical level into a raw array onto the right position.
* @param level categorical level
* @param rawData raw input to score0
* @return true if provided categoric... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/DomainMapConstructor.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
import java.util.Map;
/**
* Create map from input variable domain information.
*/
abstract class DomainMapConstructor {
protected final GenModel _m;
protected final Map<String, Integer> _columnNameToIndex;
DomainMapConstructor(GenModel m, Map<String... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/EasyPredictModelWrapper.java | package hex.genmodel.easy;
import hex.ModelCategory;
import hex.genmodel.*;
import hex.genmodel.algos.deeplearning.DeeplearningMojoModel;
import hex.genmodel.algos.drf.DrfMojoModel;
import hex.genmodel.algos.glrm.GlrmMojoModel;
import hex.genmodel.algos.targetencoder.TargetEncoderMojoModel;
import hex.genmodel.algos.t... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/EigenEncoder.java | package hex.genmodel.easy;
import java.util.HashMap;
import java.util.Map;
public class EigenEncoder implements CategoricalEncoder {
private final String columnName;
private final int targetIndex;
private final Map<String, Integer> domainMap;
private final double[] projectionEigenVec;
public EigenEncode... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/EigenEncoderColumnMapper.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
import java.util.HashMap;
import java.util.Map;
public class EigenEncoderColumnMapper {
protected final GenModel _m;
public EigenEncoderColumnMapper(GenModel m) {
_m = m;
}
public String[] getModelColumnNames() {
return _m.getOrigNames();
... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/EigenEncoderDomainMapConstructor.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
import java.util.HashMap;
import java.util.Map;
public class EigenEncoderDomainMapConstructor extends DomainMapConstructor {
public EigenEncoderDomainMapConstructor(GenModel m, Map<String, Integer> columnNameToIndex) {
super(m, columnNameToIndex);
}... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/EnumEncoder.java | package hex.genmodel.easy;
import java.util.HashMap;
import java.util.Map;
public class EnumEncoder implements CategoricalEncoder {
private final String columnName;
private final int targetIndex;
private final Map<String, Integer> domainMap;
public EnumEncoder(String columnName, int targetIndex, String[] do... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/EnumEncoderColumnMapper.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
import java.util.HashMap;
import java.util.Map;
public class EnumEncoderColumnMapper {
protected final GenModel _m;
public EnumEncoderColumnMapper(GenModel m) {
_m = m;
}
public String[] getModelColumnNames() {
return _m.getNames();
}
... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/EnumEncoderDomainMapConstructor.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
import java.util.HashMap;
import java.util.Map;
public class EnumEncoderDomainMapConstructor extends DomainMapConstructor {
public EnumEncoderDomainMapConstructor(GenModel m, Map<String, Integer> columnNameToIndex) {
super(m, columnNameToIndex);
}
... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/EnumLimitedEncoder.java | package hex.genmodel.easy;
import java.util.HashMap;
import java.util.Map;
public class EnumLimitedEncoder implements CategoricalEncoder {
private final String columnName;
private final int targetIndex;
private final Map<String, Integer> domainMap = new HashMap<>();
EnumLimitedEncoder(String columnName, i... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/EnumLimitedEncoderColumnMapper.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
public class EnumLimitedEncoderColumnMapper extends EnumEncoderColumnMapper {
public EnumLimitedEncoderColumnMapper(GenModel m) {
super(m);
}
@Override
public String[] getModelColumnNames() {
return _m.getOrigNames();
}
}
|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/EnumLimitedEncoderDomainMapConstructor.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
import java.util.HashMap;
import java.util.Map;
public class EnumLimitedEncoderDomainMapConstructor extends DomainMapConstructor {
public EnumLimitedEncoderDomainMapConstructor(GenModel m, Map<String, Integer> columnNameToIndex) {
super(m, columnNameToI... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/LabelEncoder.java | package hex.genmodel.easy;
import java.util.HashMap;
import java.util.Map;
public class LabelEncoder implements CategoricalEncoder {
private final int targetIndex;
private final Map<String, Integer> domainMap;
public LabelEncoder(int targetIndex, String[] domainValues) {
this.targetIndex = targetIndex;
... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/LabelEncoderDomainMapConstructor.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
import java.util.HashMap;
import java.util.Map;
public class LabelEncoderDomainMapConstructor extends DomainMapConstructor {
public LabelEncoderDomainMapConstructor(GenModel m, Map<String, Integer> columnNameToIndex) {
super(m, columnNameToIndex);
}... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/OneHotEncoder.java | package hex.genmodel.easy;
import java.util.HashMap;
import java.util.Map;
public class OneHotEncoder implements CategoricalEncoder {
private final String columnName;
private final int targetIndex;
private final Map<String, Integer> domainMap;
OneHotEncoder(String columnName, int targetIndex, String[] domai... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/OneHotEncoderColumnMapper.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
import java.util.HashMap;
import java.util.Map;
public class OneHotEncoderColumnMapper {
private final GenModel _m;
public OneHotEncoderColumnMapper(GenModel m) {
_m = m;
}
public Map<String, Integer> create() {
String[] origNames = _m.getOr... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/OneHotEncoderDomainMapConstructor.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
import java.util.HashMap;
import java.util.Map;
public class OneHotEncoderDomainMapConstructor extends DomainMapConstructor {
public OneHotEncoderDomainMapConstructor(GenModel m, Map<String, Integer> columnNameToIndex) {
super(m, columnNameToIndex);
}... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/RowData.java | package hex.genmodel.easy;
import java.util.HashMap;
/**
* Column name to column value mapping for a new row (aka data point, observation, sample) to predict.
*
* The purpose in life for objects of type RowData is to be passed to a predict method.
*
* RowData contains the input values for one new row.
* In this... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/RowToRawDataConverter.java | package hex.genmodel.easy;
import hex.genmodel.GenModel;
import hex.genmodel.easy.exception.PredictException;
import hex.genmodel.easy.exception.PredictNumberFormatException;
import hex.genmodel.easy.exception.PredictUnknownCategoricalLevelException;
import hex.genmodel.easy.exception.PredictUnknownTypeException;
imp... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/package-info.java | /**
* The easy prediction API for generated POJO and MOJO models.
*
* Use as follows:
* <ol>
* <li>Instantiate an EasyPredictModelWrapper</li>
* <li>Create a new row of data</li>
* <li>Call one of the predict methods</li>
* </ol>
*
* <p></p>
* Here is an example:
*
* <pre>
* {@code
* // Step 1.... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/error/CountingErrorConsumer.java | package hex.genmodel.easy.error;
import hex.genmodel.GenModel;
import hex.genmodel.easy.EasyPredictModelWrapper;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicLong;
/**
* An implementation of {@link hex.genmodel... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/error/VoidErrorConsumer.java | package hex.genmodel.easy.error;
import hex.genmodel.easy.EasyPredictModelWrapper;
/**
* A void implementation of {@link hex.genmodel.easy.EasyPredictModelWrapper.ErrorConsumer}.
* It's purpose is to avoid forcing developers do to null checks in code before each and every call.
*/
public final class VoidErrorConsu... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/exception/PredictException.java | package hex.genmodel.easy.exception;
/**
* All generated model exceptions that can occur on the various predict methods derive from this.
*/
public class PredictException extends Exception {
public PredictException(String message) {
super(message);
}
public PredictException(Throwable cause) {
super(ca... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/exception/PredictNumberFormatException.java | package hex.genmodel.easy.exception;
/**
* Unknown type exception.
*
* When a RowData observation is provided to a predict method, the value types are extremely restricted.
* This exception occurs if the value of a numeric feature fails to parse as Double. Ex. empty string
*
*/
public class PredictNumberFormatEx... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/exception/PredictUnknownCategoricalLevelException.java | package hex.genmodel.easy.exception;
/**
* Unknown categorical level exception.
*
* A categorical column is equivalent to a factor column or an enum column.
* A column in which different values can only be compared for equality with one another, but
* not distance.
*
* This exception occurs when the data point ... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/exception/PredictUnknownTypeException.java | package hex.genmodel.easy.exception;
/**
* Unknown type exception.
*
* When a RowData observation is provided to a predict method, the value types are extremely restricted.
* This exception occurs if the value of a RowData element is of the wrong data type.
*
* (The only supported value types are String and Doub... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/exception/PredictWrongModelCategoryException.java | package hex.genmodel.easy.exception;
/**
* Wrong model category exception.
*
* Each generated model is of exactly one category.
* Only one of the different predict calls works with that category.
*
* For example, a model of category Binomial can only respond properly to
* predictBinomial().
*
* Attempting to ... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/exception/package-info.java | /**
* Exceptions that can be raised by generated POJO and MOJO models.
*/
package hex.genmodel.easy.exception; |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/AbstractPrediction.java | package hex.genmodel.easy.prediction;
/**
* Predictions from generated models for individual new data points derive from this class.
*
* Every model has a getModelCategory() method, and the prediction type supported by that model corresponds to the
* model category.
*/
public abstract class AbstractPrediction imp... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/AnomalyDetectionPrediction.java | package hex.genmodel.easy.prediction;
public class AnomalyDetectionPrediction extends AbstractPrediction {
/**
* Only available when MojoModel has contamination parameter defined otherwise is null.
*/
public Boolean isAnomaly;
/**
* The raw number that an algorithm is using to count final anomaly scor... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/AutoEncoderModelPrediction.java | package hex.genmodel.easy.prediction;
import hex.genmodel.easy.RowData;
/**
* Data reconstructed by the AutoEncoder model based on a given input.
*/
public class AutoEncoderModelPrediction extends AbstractPrediction {
/**
* Representation of the original input the way AutoEncoder model sees it (1-hot encoded c... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/BinomialModelPrediction.java | package hex.genmodel.easy.prediction;
/**
* Binomial classification model prediction.
*
* GLM logistic regression (GLM family "binomial") also falls into this category.
*/
public class BinomialModelPrediction extends AbstractPrediction {
/**
* 0 or 1.
*/
public int labelIndex;
/**
* Label of the pr... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/ClusteringModelPrediction.java | package hex.genmodel.easy.prediction;
/**
* Clustering model prediction.
*/
public class ClusteringModelPrediction extends AbstractPrediction {
/**
* Chosen cluster for this data point.
*/
public int cluster;
/**
* (Optional) Vector of squared distances to all cluster centers.
* This field will on... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/CoxPHModelPrediction.java | package hex.genmodel.easy.prediction;
/**
* CoxPH model prediction.
*/
public class CoxPHModelPrediction extends AbstractPrediction {
/**
* This value may be Double.NaN, which means NA (this will happen with CoxPH, for example,
* if one of the input values for a new data point is NA).
*/
public double v... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/DimReductionModelPrediction.java | package hex.genmodel.easy.prediction;
/**
* TODO
*/
public class DimReductionModelPrediction extends AbstractPrediction {
public double[] dimensions; // contains the X factor/coefficient for GLRM or PCA
/**
* This field is only used for GLRM and not for PCA. Reconstructed data, the array has same lengt... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/KLimeModelPrediction.java | package hex.genmodel.easy.prediction;
public class KLimeModelPrediction extends RegressionModelPrediction {
/**
* Chosen cluster for this data point.
*/
public int cluster;
/**
* Array of reason codes. Each element of the array corresponds to a feature used in model training.
* Order o... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/MultinomialModelPrediction.java | package hex.genmodel.easy.prediction;
/**
* Binomial classification model prediction.
*/
public class MultinomialModelPrediction extends AbstractPrediction {
/**
* Index number of the predicted class (aka categorical or factor level) in the response column.
*/
public int labelIndex;
/**
* Label of th... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/OrdinalModelPrediction.java | package hex.genmodel.easy.prediction;
/**
* Ordinal classification model prediction.
*/
public class OrdinalModelPrediction extends AbstractPrediction {
/**
* Index number of the predicted class (aka categorical or factor level) in the response column.
*/
public int labelIndex;
/**
* Label of the pre... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/RegressionModelPrediction.java | package hex.genmodel.easy.prediction;
/**
* Regression model prediction.
*/
public class RegressionModelPrediction extends AbstractPrediction {
/**
* This value may be Double.NaN, which means NA (this will happen with GLM, for example,
* if one of the input values for a new data point is NA).
*/
public ... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/SortedClassProbability.java | package hex.genmodel.easy.prediction;
/**
* Class probability.
*
* Produced by method sortClassProbabilities() in class EasyPredictModelWrapper.
*/
public class SortedClassProbability implements Comparable {
/**
* Name of this class level.
*/
public String name;
/**
* Prediction value for this clas... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/TargetEncoderPrediction.java | package hex.genmodel.easy.prediction;
public class TargetEncoderPrediction extends AbstractPrediction {
public double[] transformations;
}
|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/UpliftBinomialModelPrediction.java | package hex.genmodel.easy.prediction;
public class UpliftBinomialModelPrediction extends AbstractPrediction {
public double[] predictions;
}
|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/Word2VecPrediction.java | package hex.genmodel.easy.prediction;
import java.util.HashMap;
public class Word2VecPrediction extends AbstractPrediction {
public HashMap<String, float[]> wordEmbeddings;
}
|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/easy/prediction/package-info.java | /**
* Prediction types that can be returned by generated POJO and MOJO models.
*
* Every model has a model category returned by getModelCategory().
* The model creates predictions of the appropriate kind.
*/
package hex.genmodel.easy.prediction;
|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/tools/BuildPipeline.java | package hex.genmodel.tools;
import hex.genmodel.MojoPipelineBuilder;
import java.io.File;
import java.util.*;
public class BuildPipeline {
private File _output;
private Map<String, File> _input;
private List<MojoPipelineBuilder.MappingSpec> _mappings;
public static void main(String[] args) {
// Parse c... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/tools/MojoPrinter.java | package hex.genmodel.tools;
public interface MojoPrinter {
enum Format {
dot, json, raw, png
}
void run() throws Exception;
void parseArgs(String[] args);
boolean supportsFormat(Format format);
}
|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/tools/MungeCsv.java | package hex.genmodel.tools;
import hex.genmodel.GenMunger;
import hex.genmodel.easy.RowData;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
/**
* Simple driver program for reading a CSV file and munging it.
*
* This driver program is used as a t... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/tools/PredictCsv.java | package hex.genmodel.tools;
import au.com.bytecode.opencsv.CSVReader;
import hex.ModelCategory;
import hex.genmodel.GenModel;
import hex.genmodel.MojoModel;
import hex.genmodel.algos.glrm.GlrmMojoModel;
import hex.genmodel.algos.tree.SharedTreeMojoModel;
import hex.genmodel.easy.EasyPredictModelWrapper;
import hex.gen... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/tools/PrintMojo.java | package hex.genmodel.tools;
import com.google.gson.*;
import com.google.gson.reflect.TypeToken;
import hex.genmodel.MojoModel;
import hex.genmodel.algos.tree.ConvertTreeOptions;
import hex.genmodel.algos.gbm.GbmMojoModel;
import hex.genmodel.algos.tree.SharedTreeGraph;
import hex.genmodel.algos.tree.SharedTreeGraphCon... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/tools/package-info.java | /**
* Tools that use generated POJO and MOJO models.
*/
package hex.genmodel.tools;
|
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/utils/ArrayUtils.java | package hex.genmodel.utils;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Random;
/**
* Copied (partially) from water.util.ArrayUtils
*/
public class ArrayUtils {
public static double[] nanArray(int len) {
double[] arr = new double[len];
for (int i = 0; i < len; i++) {
arr[i... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/utils/ByteBufferWrapper.java | package hex.genmodel.utils;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
/**
* Simplified version and drop-in replacement of water.util.AutoBuffer
*/
public final class ByteBufferWrapper {
// The direct ByteBuffer for schlorping data about.
// Set to null to indicate the ByteBufferWrapper is clos... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/utils/DistributionFamily.java | package hex.genmodel.utils;
/**
* Used to be `hex.Distribution.Family`.
* NOTE: The moving to hex.DistributionFamily is not possible without resolving dependencies between
* h2o-genmodel and h2o-algos project
*/
public enum DistributionFamily {
AUTO, // model-specific behavior
bernoulli,
quasibinomial,
m... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/utils/GenmodelBitSet.java | package hex.genmodel.utils;
/**
* GenmodelBitSet - bitset that "lives" on top of an external byte array. It does not necessarily span the entire
* byte array, and thus essentially provides a "bitset-view" on the underlying data stream.
*
* This is a bastardized copy of water.utils.IcedBitSet
*/
public class Genmo... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/utils/IOUtils.java | package hex.genmodel.utils;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class IOUtils {
public static void copyStream(InputStream source, OutputStream target) throws IOException {
byte[] buffer = new byte[8 * 1024];
while (true) {
int len = source.read(... |
0 | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel | java-sources/ai/h2o/h2o-genmodel/3.46.0.7/hex/genmodel/utils/LinkFunctionType.java | package hex.genmodel.utils;
/**
* Link Function type
* NOTE: The moving to hex.LinkFunctionType is not possible without resolving dependencies between
* h2o-genmodel and h2o-algos project
*/
public enum LinkFunctionType {
log,
logit,
identity,
ologit,
ologlog,
oprobit,
inverse,
twe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.