Class MLSophisticatedPipeline
- java.lang.Object
-
- ai.libs.jaicore.ml.weka.classification.pipeline.MLSophisticatedPipeline
-
- All Implemented Interfaces:
FeatureGenerator,FeaturePreprocessor,java.io.Serializable,weka.classifiers.Classifier
public class MLSophisticatedPipeline extends java.lang.Object implements weka.classifiers.Classifier, FeatureGenerator, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MLSophisticatedPipeline(java.util.List<FeatureGenerator> featureGenerators, java.util.List<FeaturePreprocessor> preprocessors, java.util.List<FeaturePreprocessor> featureSelectors, weka.classifiers.Classifier baseClassifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description weka.core.Instanceapply(weka.core.Instance data)weka.core.Instancesapply(weka.core.Instances data)voidbuildClassifier(weka.core.Instances data)doubleclassifyInstance(weka.core.Instance arg0)double[]distributionForInstance(weka.core.Instance arg0)weka.classifiers.ClassifiergetBaseClassifier()weka.core.CapabilitiesgetCapabilities()longgetTimeForExecutingClassifier()longgetTimeForExecutingPreprocessor()longgetTimeForTrainingClassifier()longgetTimeForTrainingPreprocessor()booleanisPrepared()voidprepare(weka.core.Instances data)
-
-
-
Constructor Detail
-
MLSophisticatedPipeline
public MLSophisticatedPipeline(java.util.List<FeatureGenerator> featureGenerators, java.util.List<FeaturePreprocessor> preprocessors, java.util.List<FeaturePreprocessor> featureSelectors, weka.classifiers.Classifier baseClassifier)
-
-
Method Detail
-
buildClassifier
public void buildClassifier(weka.core.Instances data) throws java.lang.Exception- Specified by:
buildClassifierin interfaceweka.classifiers.Classifier- Throws:
java.lang.Exception
-
classifyInstance
public double classifyInstance(weka.core.Instance arg0) throws java.lang.Exception- Specified by:
classifyInstancein interfaceweka.classifiers.Classifier- Throws:
java.lang.Exception
-
distributionForInstance
public double[] distributionForInstance(weka.core.Instance arg0) throws java.lang.Exception- Specified by:
distributionForInstancein interfaceweka.classifiers.Classifier- Throws:
java.lang.Exception
-
getCapabilities
public weka.core.Capabilities getCapabilities()
- Specified by:
getCapabilitiesin interfaceweka.classifiers.Classifier
-
getBaseClassifier
public weka.classifiers.Classifier getBaseClassifier()
-
getTimeForTrainingPreprocessor
public long getTimeForTrainingPreprocessor()
-
getTimeForTrainingClassifier
public long getTimeForTrainingClassifier()
-
getTimeForExecutingPreprocessor
public long getTimeForExecutingPreprocessor()
-
getTimeForExecutingClassifier
public long getTimeForExecutingClassifier()
-
prepare
public void prepare(weka.core.Instances data) throws PreprocessingException- Specified by:
preparein interfaceFeaturePreprocessor- Throws:
PreprocessingException
-
apply
public weka.core.Instance apply(weka.core.Instance data) throws PreprocessingException- Specified by:
applyin interfaceFeaturePreprocessor- Throws:
PreprocessingException
-
apply
public weka.core.Instances apply(weka.core.Instances data) throws PreprocessingException- Specified by:
applyin interfaceFeaturePreprocessor- Throws:
PreprocessingException
-
isPrepared
public boolean isPrepared()
- Specified by:
isPreparedin interfaceFeaturePreprocessor
-
-