Class ZeroShotUtil
- java.lang.Object
-
- ai.libs.jaicore.ml.weka.ranking.dyad.learner.zeroshot.util.ZeroShotUtil
-
public class ZeroShotUtil extends java.lang.ObjectA collection of utility methods used to map the results of a input optimization ofPLNetInputOptimizerback 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.INDArrayunscaleParameters(org.nd4j.linalg.api.ndarray.INDArray parameters, ai.libs.jaicore.ml.ranking.dyad.learner.util.DyadMinMaxScaler scaler, int numHyperPars)
-
-
-
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)
-
-