Interface MLTrain

    • Method Detail

      • isTrainingDone

        boolean isTrainingDone()
        True if training can progress no further.
      • getTraining

        MLDataSet getTraining()
        The training data to use.
      • iteration

        void iteration()
        Perform one iteration of training.
      • getError

        double getError()
        Returns the training error. This value is calculated as the training data is evaluated by the iteration function. This has two important ramifications. First, the value returned by getError() is meaningless prior to a call to iteration. Secondly, the error is calculated BEFORE training is applied by the call to iteration. The timing of the error calculation is done for performance reasons.
      • finishTraining

        void finishTraining()
        Should be called once training is complete and no more iterations are needed. Calling iteration again will simply begin the training again, and require finishTraining to be called once the new training session is complete. It is particularly important to call finishTraining for multithreaded training techniques.
      • iteration

        void iteration(int count)
        Perform a number of training iterations.
        count - The number of iterations to perform.
      • getIteration

        int getIteration()
        The current training iteration.
      • canContinue

        boolean canContinue()
        True if the training can be paused, and later continued.
      • pause

        TrainingContinuation pause()
        Pause the training to continue later.
        A training continuation object.
      • resume

        void resume(TrainingContinuation state)
        Resume training.
        state - The training continuation object to use to continue.
      • addStrategy

        void addStrategy(Strategy strategy)
        Training strategies can be added to improve the training results. There are a number to choose from, and several can be used at once.
        strategy - The strategy to add.
      • getMethod

        MLMethod getMethod()
        Get the current best machine learning method from the training.
        The best machine learningm method.
      • getStrategies

        List<Strategy> getStrategies()
        The strategies to use.
      • setError

        void setError(double error)
        error - Set the current error rate. This is usually used by training strategies.
      • setIteration

        void setIteration(int iteration)
        Set the current training iteration.
        iteration - Iteration.

SCaVis 1.8 ©