Class AMLAlgorithm

    • Constructor Detail

      • AMLAlgorithm

        public AMLAlgorithm()
    • Method Detail

      • getName

        public String getName()
        Returns:
        the ML algorithm name
      • getMl

        public ACoreMLAlgorithm getMl()
        Returns:
        the associated Core ML algorithm
      • init

        public void init​(List<LearningParameter> lp,
                         ACache source,
                         ACache target)
        Initialize the ML Algorithm.
        Parameters:
        lp - learning parameters
        source - the source cache
        target - the target cache
      • predict

        public AMapping predict​(ACache source,
                                ACache target,
                                MLResults mlModel)
        Predict new links.
        Parameters:
        source - the source cache
        target - the target cache
        mlModel - the ML model generated by the learning phase
        Returns:
        the predicted mapping
      • asSupervised

        public SupervisedMLAlgorithm asSupervised()
        Returns:
        the ML algorithm as supervised-learning algorithm
      • asUnsupervised

        public UnsupervisedMLAlgorithm asUnsupervised()
        Returns:
        the ML algorithm as unsupervised-learning algorithm
      • asActive

        public ActiveMLAlgorithm asActive()
        Returns:
        the ML algorithm as active-learning algorithm
      • setMl

        public void setMl​(ACoreMLAlgorithm ml)
        Parameters:
        ml - the core ML algorithm
      • setParameter

        public void setParameter​(String par,
                                 Object val)
        Parameters:
        par - parameter name
        val - parameter value