Java Code Examples for org.neuroph.core.events.LearningEvent#getSource()

The following examples show how to use org.neuroph.core.events.LearningEvent#getSource() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IonosphereSample.java    From NeurophFramework with Apache License 2.0 5 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation) event.getSource();
    if (event.getEventType().equals(LearningEvent.Type.LEARNING_STOPPED)) {
        double error = bp.getTotalNetworkError();
        System.out.println("Training completed in " + bp.getCurrentIteration() + " iterations, ");
        System.out.println("With total error: " + formatDecimalNumber(error));
    } else {
        System.out.println("Iteration: " + bp.getCurrentIteration() + " | Network error: " + bp.getTotalNetworkError());
    }
}
 
Example 2
Source File: IonosphereSample2.java    From NeurophFramework with Apache License 2.0 5 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation) event.getSource();
    if (event.getEventType().equals(LearningEvent.Type.LEARNING_STOPPED)) {
        double error = bp.getTotalNetworkError();
        System.out.println("Training completed in " + bp.getCurrentIteration() + " iterations, ");
        System.out.println("With total error: " + formatDecimalNumber(error));
    } else {
        System.out.println("Iteration: " + bp.getCurrentIteration() + " | Network error: " + bp.getTotalNetworkError());
    }
}
 
Example 3
Source File: DiabetesSample.java    From NeurophFramework with Apache License 2.0 5 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation) event.getSource();
    if (event.getEventType().equals(LearningEvent.Type.LEARNING_STOPPED)) {
        double error = bp.getTotalNetworkError();
        System.out.println("Training completed in " + bp.getCurrentIteration() + " iterations, ");
        System.out.println("With total error: " + formatDecimalNumber(error));
    } else {
        System.out.println("Iteration: " + bp.getCurrentIteration() + " | Network error: " + bp.getTotalNetworkError());
    }
}
 
Example 4
Source File: IrisFlowers.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    MomentumBackpropagation bp = (MomentumBackpropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
}
 
Example 5
Source File: PredictingPokerHandsSample.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
}
 
Example 6
Source File: GlassIdentificationSample.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
}
 
Example 7
Source File: ForestFiresSample.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
}
 
Example 8
Source File: BalanceScaleSample.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
}
 
Example 9
Source File: PredictingTheReligionSample.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
}
 
Example 10
Source File: WineQualityClassification.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    MomentumBackpropagation bp = (MomentumBackpropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
}
 
Example 11
Source File: BostonHousePrice.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    MomentumBackpropagation bp = (MomentumBackpropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
}
 
Example 12
Source File: BufferedDataSetSample.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation)event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration : "+ bp.getTotalNetworkError());
}
 
Example 13
Source File: XorResilientPropagationSample.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation)event.getSource();
    if (event.getEventType() != LearningEvent.Type.LEARNING_STOPPED)
        System.out.println(bp.getCurrentIteration() + ". iteration : "+ bp.getTotalNetworkError());
}
 
Example 14
Source File: XorMultiLayerPerceptronSample.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation)event.getSource();
    if (event.getEventType() != LearningEvent.Type.LEARNING_STOPPED)
        System.out.println(bp.getCurrentIteration() + ". iteration : "+ bp.getTotalNetworkError());
}
 
Example 15
Source File: SingleImageTrainer.java    From FakeImageDetection with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
}
 
Example 16
Source File: Banknote.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    MomentumBackpropagation bp = (MomentumBackpropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
}
 
Example 17
Source File: ShuttleLandingControlSample.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
}
 
Example 18
Source File: BatchImageTrainer.java    From FakeImageDetection with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
    listener.batchImageTrainingUpdate(bp.getCurrentIteration(), bp.getTotalNetworkError());
}
 
Example 19
Source File: PredictingPerformanceOfCPUSample.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    BackPropagation bp = (BackPropagation) event.getSource();
    System.out.println(bp.getCurrentIteration() + ". iteration | Total network error: " + bp.getTotalNetworkError());
}
 
Example 20
Source File: RBFClassificationSample.java    From NeurophFramework with Apache License 2.0 4 votes vote down vote up
@Override
public void handleLearningEvent(LearningEvent event) {
    LMS lr = (LMS) event.getSource();
    System.out.println(lr.getCurrentIteration() + ". iteration | Total network error: " + lr.getTotalNetworkError());
}