Class Experiment<A>

    • Constructor Detail

      • Experiment

        public Experiment​(LearningAlgorithm<? extends A,​I,​D> learningAlgorithm,
                          EquivalenceOracle<? super A,​I,​D> equivalenceAlgorithm,
                          net.automatalib.alphabet.Alphabet<I> inputs)
    • Method Detail

      • run

        public A run()
        Run the experiment, once.
        Returns:
        the final hypothesis
        Throws:
        IllegalStateException - if invoked more than once
      • getFinalHypothesis

        public A getFinalHypothesis()
        Returns the final hypothesis model.
        Returns:
        the final hypothesis model
        Throws:
        IllegalStateException - if the experiment has not been run yet
      • setLogModels

        public void setLogModels​(boolean logModels)
        Decides whether intermediate hypothesis models should be logged.
        Parameters:
        logModels - flag whether models should be logged
      • setProfile

        public void setProfile​(boolean profile)
        Decides whether the experiment runtime should be profiled.
        Parameters:
        profile - flag whether learning process should be profiled
      • getRounds

        public Counter getRounds()
        Returns the counter for the number of refinement rounds the experiment took.
        Returns:
        the rounds