Documentation of 'smile.feature.SignalNoiseRatio' Java class
SignalNoiseRatio
smile.feature

Class SignalNoiseRatio

  • All Implemented Interfaces:
    FeatureRanking


    public class SignalNoiseRatio
    extends java.lang.Object
    implements FeatureRanking
    The signal-to-noise (S2N) metric ratio is a univariate feature ranking metric, which can be used as a feature selection criterion for binary classification problems. S2N is defined as |μ1 - μ2| / (σ1 + σ2), where μ1 and μ2 are the mean value of the variable in classes 1 and 2, respectively, and σ1 and σ2 are the standard deviations of the variable in classes 1 and 2, respectively. Clearly, features with larger S2N ratios are better for classification.

    References

    1. M. Shipp, et al. Diffuse large B-cell lymphoma outcome prediction by gene-expression profiling and supervised machine learning. Nature Medicine, 2002.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SignalNoiseRatio() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double[] rank(double[][] x, int[] y)
      Univariate feature ranking.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SignalNoiseRatio

        public SignalNoiseRatio()
    • Method Detail

      • rank

        public double[] rank(double[][] x,
                             int[] y)
        Description copied from interface: FeatureRanking
        Univariate feature ranking. Note that this method actually does NOT rank the features. It just returns the metric values of each feature. The caller can then rank and select features.
        Specified by:
        rank in interface FeatureRanking
        Parameters:
        x - a n-by-p matrix of n instances with p features.
        y - class labels in [0, k), where k is the number of classes.
        Returns:
        the metric values of each feature.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.