momentumstatistic.java

来自「神经网络命令行工具」· Java 代码 · 共 39 行

JAVA
39
字号
package com.weighscore.neuro.plugins;

import com.weighscore.neuro.*;

/**
 * The class for holding and computing momentum statistic
 *
 * @author Fyodor Kravchenko
 * @version 1.0
 */
public class MomentumStatistic extends Statistic {

    /**
     * The last change value of the weight
     */
    public double lastCorrection;
    /**
     * The teaching signals counter
     */
    public long teachCnt;


    public void recordAsking(double question) {
    }

    public void recordError(double error) {
    }

    /**
     * Updates the last correction and teach signal counter statistics
     *
     * @param correction the change value of the weight
     */
    public synchronized void recordTeaching(double correction) {
        this.teachCnt++;
        this.lastCorrection=correction;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?