Class AlgorithmPrediction

java.lang.Object
eu.qualimaster.easy.extension.internal.AlgorithmPrediction
All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IVilType

public class AlgorithmPrediction extends Object implements net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
Performs observation predictions for pipeline elements.
Author:
Holger Eichelberger
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final AlgorithmPredictor
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Double
    algorithmPrediction(String pipeline, String pipelineElement, String algorithm, eu.qualimaster.observables.IObservable observable)
    Creates a request for predicting the characteristics for a given algorithm in the current target setting.
    static Double
    algorithmPrediction(String pipeline, String pipelineElement, String algorithm, eu.qualimaster.observables.IObservable observable, net.ssehub.easy.instantiation.core.model.vilTypes.Map<Object,Serializable> targetValues)
    Creates a request for predicting the characteristics for a given algorithm in a target setting.
    static net.ssehub.easy.instantiation.core.model.vilTypes.Map<String,net.ssehub.easy.instantiation.core.model.vilTypes.Map<eu.qualimaster.observables.IObservable,Double>>
    algorithmPrediction(String pipeline, String pipelineElement, net.ssehub.easy.instantiation.core.model.vilTypes.Set<String> algorithms, net.ssehub.easy.instantiation.core.model.vilTypes.Set<eu.qualimaster.observables.IObservable> observables)
    Creates a request to obtain the best algorithm in this situation.
    static net.ssehub.easy.instantiation.core.model.vilTypes.Map<String,net.ssehub.easy.instantiation.core.model.vilTypes.Map<eu.qualimaster.observables.IObservable,Double>>
    algorithmPrediction(String pipeline, String pipelineElement, net.ssehub.easy.instantiation.core.model.vilTypes.Set<String> algorithms, net.ssehub.easy.instantiation.core.model.vilTypes.Set<eu.qualimaster.observables.IObservable> observables, net.ssehub.easy.instantiation.core.model.vilTypes.Map<Object,Serializable> targetValues)
    Creates a request to obtain the best algorithm in this situation.
    (package private) static AlgorithmPredictionResult
    algorithmPredictionEx(String pipeline, String pipelineElement, net.ssehub.easy.instantiation.core.model.vilTypes.Set<String> algorithms, net.ssehub.easy.instantiation.core.model.vilTypes.Set<eu.qualimaster.observables.IObservable> observables)
    Creates a request to obtain the prediction for multiple algorithms applicable in this in this situation (including varying parameters).
    private static void
    Emits a class loading error.
    (package private) static AlgorithmPredictor
    Returns the internal predictor instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • AlgorithmPrediction

      public AlgorithmPrediction()
  • Method Details

    • getInstance

      static AlgorithmPredictor getInstance()
      Returns the internal predictor instance.
      Returns:
      the instance
    • error

      private static void error(Throwable exc)
      Emits a class loading error.
      Parameters:
      exc - the exception/throwable
    • algorithmPrediction

      public static Double algorithmPrediction(String pipeline, String pipelineElement, String algorithm, eu.qualimaster.observables.IObservable observable)
      Creates a request for predicting the characteristics for a given algorithm in the current target setting.
      Parameters:
      pipeline - the pipeline to predict for
      pipelineElement - the pipeline element
      algorithm - the algorithm (may be null for the actual one)
      observable - the observable to predict for
      Returns:
      the predicted value or null if there is no prediction
    • algorithmPrediction

      public static Double algorithmPrediction(String pipeline, String pipelineElement, String algorithm, eu.qualimaster.observables.IObservable observable, net.ssehub.easy.instantiation.core.model.vilTypes.Map<Object,Serializable> targetValues)
      Creates a request for predicting the characteristics for a given algorithm in a target setting.
      Parameters:
      pipeline - the pipeline to predict for
      pipelineElement - the pipeline element
      algorithm - the algorithm (may be null for the actual one)
      observable - the observable to predict for
      targetValues - the target values for a modified situation (may be null if just the algorithm may change based on the current situation)
      Returns:
      the predicted value or null if there is no prediction
    • algorithmPrediction

      public static net.ssehub.easy.instantiation.core.model.vilTypes.Map<String,net.ssehub.easy.instantiation.core.model.vilTypes.Map<eu.qualimaster.observables.IObservable,Double>> algorithmPrediction(String pipeline, String pipelineElement, net.ssehub.easy.instantiation.core.model.vilTypes.Set<String> algorithms, net.ssehub.easy.instantiation.core.model.vilTypes.Set<eu.qualimaster.observables.IObservable> observables)
      Creates a request to obtain the best algorithm in this situation.
      Parameters:
      pipeline - the pipeline to predict for
      pipelineElement - the pipeline element
      algorithms - the algorithms to take into account
      observables - the observables
      Returns:
      the predictions per algorithm/observables, if not possible individual predictions may be null or the entire result may be null if there is no prediction at all
    • algorithmPrediction

      public static net.ssehub.easy.instantiation.core.model.vilTypes.Map<String,net.ssehub.easy.instantiation.core.model.vilTypes.Map<eu.qualimaster.observables.IObservable,Double>> algorithmPrediction(String pipeline, String pipelineElement, net.ssehub.easy.instantiation.core.model.vilTypes.Set<String> algorithms, net.ssehub.easy.instantiation.core.model.vilTypes.Set<eu.qualimaster.observables.IObservable> observables, net.ssehub.easy.instantiation.core.model.vilTypes.Map<Object,Serializable> targetValues)
      Creates a request to obtain the best algorithm in this situation.
      Parameters:
      pipeline - the pipeline to predict for
      pipelineElement - the pipeline element
      algorithms - the algorithms to take into account
      observables - the observables
      targetValues - the target values for a modified situation (may be null if just the algorithm may change based on the current situation)
      Returns:
      the predictions per algorithm/observables, if not possible individual predictions may be null or the entire result may be null if there is no prediction at all
    • algorithmPredictionEx

      static AlgorithmPredictionResult algorithmPredictionEx(String pipeline, String pipelineElement, net.ssehub.easy.instantiation.core.model.vilTypes.Set<String> algorithms, net.ssehub.easy.instantiation.core.model.vilTypes.Set<eu.qualimaster.observables.IObservable> observables)
      Creates a request to obtain the prediction for multiple algorithms applicable in this in this situation (including varying parameters).
      Parameters:
      pipeline - the pipeline to predict for
      pipelineElement - the pipeline element
      algorithms - the algorithms to take into account
      observables - the observables
      Returns:
      the predictions per algorithm/observables, if not possible individual predictions may be null or the entire result may be null if there is no prediction at all