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

hex.genmodel.easy.CategoricalEncoder Maven / Gradle / Ivy

There is a newer version: 3.46.0.6
Show newest version
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 categorical level was valid and was properly encoded, false if nothing was written to raw data
   */
  boolean encodeCatValue(String level, double[] rawData);

  /**
   * Encode NA (missing level) into raw data.
   * @param rawData target raw data array
   */
  void encodeNA(double[] rawData);
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy