Class SKLearnClassifierFactory

  • All Implemented Interfaces:
    ai.libs.hasco.optimizingfactory.BaseFactory<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper>, ai.libs.mlplan.core.ILearnerFactory<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper>, org.api4.java.common.control.ILoggingCustomizable

    public class SKLearnClassifierFactory
    extends java.lang.Object
    implements ai.libs.mlplan.core.ILearnerFactory<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper>, org.api4.java.common.control.ILoggingCustomizable
    The SKLearnClassifierFactory takes a ground component instance and parses it into a ScikitLearnWrapper as defined in the project jaicore-ml. This factory may be used in the context of HASCO, especially for ML-Plan.
    • Constructor Detail

      • SKLearnClassifierFactory

        public SKLearnClassifierFactory()
    • Method Detail

      • getComponentInstantiation

        public ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper getComponentInstantiation​(ai.libs.hasco.model.ComponentInstance groundComponent)
                                                                                      throws ai.libs.hasco.exceptions.ComponentInstantiationFailedException
        Specified by:
        getComponentInstantiation in interface ai.libs.hasco.optimizingfactory.BaseFactory<ai.libs.jaicore.ml.scikitwrapper.ScikitLearnWrapper>
        Throws:
        ai.libs.hasco.exceptions.ComponentInstantiationFailedException
      • extractSKLearnConstructInstruction

        public java.lang.String extractSKLearnConstructInstruction​(ai.libs.hasco.model.ComponentInstance groundComponent,
                                                                   java.util.Set<java.lang.String> importSet)
      • getLoggerName

        public java.lang.String getLoggerName()
        Specified by:
        getLoggerName in interface org.api4.java.common.control.ILoggingCustomizable
      • setLoggerName

        public void setLoggerName​(java.lang.String name)
        Specified by:
        setLoggerName in interface org.api4.java.common.control.ILoggingCustomizable