regressionexample.java

来自「该原代码是实现机器学习中条件随机场模型的Java代码」· Java 代码 · 共 32 行

JAVA
32
字号
/**
 * 
 */
package lcrf.regression;

/**
 * @author bgutmann
 * 
 */
public class RegressionExample<T> {
    public double weight;
    
    public double value;

    public T content;

    public Object auxObject;

    public RegressionExample(T content, double value) {
        this.value = value;
        this.content = content;
        this.auxObject = null;
        
        this.weight = 1.0d;
    }

    public String toString() {
        return content.toString() + " : " + value;
    }

}

⌨️ 快捷键说明

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