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

hex.genmodel.PredictContributions Maven / Gradle / Ivy

There is a newer version: 3.46.0.6
Show newest version
package hex.genmodel;

import hex.genmodel.attributes.parameters.FeatureContribution;

import java.io.Serializable;

public interface PredictContributions extends Serializable {

  /**
   * Calculate contributions (SHAP values) for a given input row.
   * @param input input data
   * @return per-feature contributions, last value is the model bias
   */
  float[] calculateContributions(double[] input);

  FeatureContribution[] calculateContributions(double[] input, int topN, int bottomN, boolean compareAbs);

  String[] getContributionNames();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy