⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 momentumstatistic.java

📁 神经网络命令行工具
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -