Class PipelineEvaluator

  • All Implemented Interfaces:
    org.api4.java.common.attributedobjects.IGetter<ai.libs.hasco.model.ComponentInstance,​java.lang.Double>, org.api4.java.common.attributedobjects.IInformedObjectEvaluatorExtension<java.lang.Double>, org.api4.java.common.attributedobjects.IObjectEvaluator<ai.libs.hasco.model.ComponentInstance,​java.lang.Double>, org.api4.java.common.control.ILoggingCustomizable

    public class PipelineEvaluator
    extends ai.libs.jaicore.timing.TimedObjectEvaluator<ai.libs.hasco.model.ComponentInstance,​java.lang.Double>
    implements org.api4.java.common.attributedobjects.IInformedObjectEvaluatorExtension<java.lang.Double>, org.api4.java.common.control.ILoggingCustomizable
    Evaluator used in the search phase of mlplan.
    • Constructor Summary

      Constructors 
      Constructor Description
      PipelineEvaluator​(ILearnerFactory<? extends org.api4.java.ai.ml.core.learner.ISupervisedLearner<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>>> learnerFactory, org.api4.java.ai.ml.core.evaluation.ISupervisedLearnerEvaluator<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>> benchmark, int timeoutForEvaluation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double evaluateSupervised​(ai.libs.hasco.model.ComponentInstance c)  
      org.api4.java.ai.ml.core.evaluation.ISupervisedLearnerEvaluator<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?>> getBenchmark()  
      java.lang.String getLoggerName()  
      java.lang.String getMessage​(ai.libs.hasco.model.ComponentInstance item)  
      long getTimeout​(ai.libs.hasco.model.ComponentInstance item)  
      void informAboutBestScore​(java.lang.Double bestScore)  
      void receiveEvent​(org.api4.java.common.event.IEvent e)
      Forwards every incoming event e
      void registerListener​(java.lang.Object listener)
      Here, we send a coupling event that informs the listener about which ComponentInstance has been used to create a classifier.
      void setLoggerName​(java.lang.String name)  
      • Methods inherited from class ai.libs.jaicore.timing.TimedObjectEvaluator

        evaluate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.api4.java.common.attributedobjects.IObjectEvaluator

        getPropertyOf
    • Constructor Detail

      • PipelineEvaluator

        public PipelineEvaluator​(ILearnerFactory<? extends org.api4.java.ai.ml.core.learner.ISupervisedLearner<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>>> learnerFactory,
                                 org.api4.java.ai.ml.core.evaluation.ISupervisedLearnerEvaluator<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>> benchmark,
                                 int timeoutForEvaluation)
    • Method Detail

      • 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
      • evaluateSupervised

        public java.lang.Double evaluateSupervised​(ai.libs.hasco.model.ComponentInstance c)
                                            throws java.lang.InterruptedException,
                                                   org.api4.java.common.attributedobjects.ObjectEvaluationFailedException
        Specified by:
        evaluateSupervised in class ai.libs.jaicore.timing.TimedObjectEvaluator<ai.libs.hasco.model.ComponentInstance,​java.lang.Double>
        Throws:
        java.lang.InterruptedException
        org.api4.java.common.attributedobjects.ObjectEvaluationFailedException
      • informAboutBestScore

        public void informAboutBestScore​(java.lang.Double bestScore)
        Specified by:
        informAboutBestScore in interface org.api4.java.common.attributedobjects.IInformedObjectEvaluatorExtension<java.lang.Double>
      • getTimeout

        public long getTimeout​(ai.libs.hasco.model.ComponentInstance item)
        Specified by:
        getTimeout in class ai.libs.jaicore.timing.TimedObjectEvaluator<ai.libs.hasco.model.ComponentInstance,​java.lang.Double>
      • getMessage

        public java.lang.String getMessage​(ai.libs.hasco.model.ComponentInstance item)
        Specified by:
        getMessage in class ai.libs.jaicore.timing.TimedObjectEvaluator<ai.libs.hasco.model.ComponentInstance,​java.lang.Double>
      • getBenchmark

        public org.api4.java.ai.ml.core.evaluation.ISupervisedLearnerEvaluator<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,​org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<?>> getBenchmark()
      • registerListener

        public void registerListener​(java.lang.Object listener)
        Here, we send a coupling event that informs the listener about which ComponentInstance has been used to create a classifier.
        Parameters:
        listener -
      • receiveEvent

        public void receiveEvent​(org.api4.java.common.event.IEvent e)
        Forwards every incoming event e
        Parameters:
        e -