Class ZeroShotUtil


  • public class ZeroShotUtil
    extends java.lang.Object
    A collection of utility methods used to map the results of a input optimization of PLNetInputOptimizer back to Weka options for the respective classifiers.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String[] mapJ48InputsToWekaOptions​(double c, double m)  
      static java.lang.String[] mapMLPInputsToWekaOptions​(double lExp, double mExp, double n)  
      static java.lang.String[] mapRFInputsToWekaOptions​(double i, double kFraction, double m, double depth, double kNumAttributes)  
      static java.lang.String[] mapSMORBFInputsToWekaOptions​(double cExp, double rbfGammaExp)  
      static org.nd4j.linalg.api.ndarray.INDArray unscaleParameters​(org.nd4j.linalg.api.ndarray.INDArray parameters, ai.libs.jaicore.ml.ranking.dyad.learner.util.DyadMinMaxScaler scaler, int numHyperPars)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • mapJ48InputsToWekaOptions

        public static java.lang.String[] mapJ48InputsToWekaOptions​(double c,
                                                                   double m)
                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • mapSMORBFInputsToWekaOptions

        public static java.lang.String[] mapSMORBFInputsToWekaOptions​(double cExp,
                                                                      double rbfGammaExp)
                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • mapMLPInputsToWekaOptions

        public static java.lang.String[] mapMLPInputsToWekaOptions​(double lExp,
                                                                   double mExp,
                                                                   double n)
                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • mapRFInputsToWekaOptions

        public static java.lang.String[] mapRFInputsToWekaOptions​(double i,
                                                                  double kFraction,
                                                                  double m,
                                                                  double depth,
                                                                  double kNumAttributes)
                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • unscaleParameters

        public static org.nd4j.linalg.api.ndarray.INDArray unscaleParameters​(org.nd4j.linalg.api.ndarray.INDArray parameters,
                                                                             ai.libs.jaicore.ml.ranking.dyad.learner.util.DyadMinMaxScaler scaler,
                                                                             int numHyperPars)