All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nd4j.linalg.api.ops.BaseLossFunction Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
package org.nd4j.linalg.api.ops;

import org.nd4j.linalg.api.ndarray.INDArray;

/**
 * @author Adam Gibson
 */
public abstract class BaseLossFunction extends BaseAccumulation implements LossFunction {
    public BaseLossFunction(INDArray x, INDArray y, INDArray z, long n) {
        super(x, y, z, n);
    }

    public BaseLossFunction(INDArray x, INDArray y, long n) {
        super(x, y, n);
    }

    public BaseLossFunction(INDArray x) {
        super(x);
    }

    public BaseLossFunction(INDArray x, INDArray y) {
        super(x, y);
    }

    public BaseLossFunction() {}

    @Override
    public INDArray input() {
        return x;
    }

    @Override
    public INDArray output() {
        return y;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy