Class MLPipelineComponentInstanceFactory


  • public class MLPipelineComponentInstanceFactory
    extends java.lang.Object
    A factory that provides the ability to wrap given MLPipelines to a ComponentInstance
    • Constructor Summary

      Constructors 
      Constructor Description
      MLPipelineComponentInstanceFactory​(java.util.Collection<? extends ai.libs.jaicore.components.api.IComponent> components)
      Creates a new factory object using the given configuration file
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ai.libs.jaicore.components.model.ComponentInstance convertToComponentInstance​(ai.libs.jaicore.ml.weka.classification.pipeline.MLPipeline pipeline)
      Converts the given MLPipelines object to a ComponentInstance.
      • Methods inherited from class java.lang.Object

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

      • MLPipelineComponentInstanceFactory

        public MLPipelineComponentInstanceFactory​(java.util.Collection<? extends ai.libs.jaicore.components.api.IComponent> components)
        Creates a new factory object using the given configuration file
        Parameters:
        components -
    • Method Detail

      • convertToComponentInstance

        public ai.libs.jaicore.components.model.ComponentInstance convertToComponentInstance​(ai.libs.jaicore.ml.weka.classification.pipeline.MLPipeline pipeline)
                                                                                      throws ai.libs.jaicore.components.exceptions.ComponentNotFoundException
        Converts the given MLPipelines object to a ComponentInstance.
        Parameters:
        pipeline - The pipelines to convert
        Returns:
        The converted pipelines as a ComponentInstance
        Throws:
        ai.libs.jaicore.components.exceptions.ComponentNotFoundException - When the pipelines contains elements that are not in the loaded configuration