public void CanRunLinear() { DataVector result = nf_linear.Run(vector_2); Assert.AreEqual(vector_2[0], result[0]); Assert.AreEqual(vector_2[1], result[1]); }
public void CanRunSigmoid() { NetworkVector result = nf_sigmoid.Run(vector_2); NetworkVector outputCheck = new NetworkVector(new double[] { sigmoid(1), sigmoid(2) }); Assert.AreEqual(outputCheck, result); }
public void CanRunSigmoid() { DataVector result = nf_sigmoid.Run(vector_2); DataVector outputCheck = new DataVector(Vector <double> .Build.DenseOfArray(new double[] { sigmoid(1), sigmoid(2) })); Assert.AreEqual(outputCheck[0], result[0]); Assert.AreEqual(outputCheck[1], result[1]); }
public void CanRun() { DataVector result = nf_1.Run(vector_1); Assert.AreEqual(vector_1[0], result[0]); }
public void CanRunLinear() { NetworkVector result = nf_linear.Run(vector_2); Assert.AreEqual(vector_2, result); }
public void CanRun() { NetworkVector result = nf_1.Run(vector_1); Assert.AreEqual(vector_1, result); }