@Override protected CliquePotentialFunction getCliquePotentialFunctionForTest() { if (cliquePotentialFunction == null) { if (flags.secondOrderNonLinear) cliquePotentialFunction = new NonLinearSecondOrderCliquePotentialFunction(inputLayerWeights4Edge, outputLayerWeights4Edge, inputLayerWeights, outputLayerWeights, flags); else cliquePotentialFunction = new NonLinearCliquePotentialFunction(linearWeights, inputLayerWeights, outputLayerWeights, flags); } return cliquePotentialFunction; }
public CliquePotentialFunction getCliquePotentialFunction(double[] x) { Triple<double[][], double[][], double[][]> allParams = separateWeights(x); double[][] linearWeights = allParams.first(); double[][] W = allParams.second(); // inputLayerWeights double[][] U = allParams.third(); // outputLayerWeights return new NonLinearCliquePotentialFunction(linearWeights, W, U, flags); }
NonLinearCliquePotentialFunction cliquePotentialFunction = new NonLinearCliquePotentialFunction(linearWeights, W, U, flags);
@Override protected CliquePotentialFunction getCliquePotentialFunctionForTest() { if (cliquePotentialFunction == null) { if (flags.secondOrderNonLinear) cliquePotentialFunction = new NonLinearSecondOrderCliquePotentialFunction(inputLayerWeights4Edge, outputLayerWeights4Edge, inputLayerWeights, outputLayerWeights, flags); else cliquePotentialFunction = new NonLinearCliquePotentialFunction(linearWeights, inputLayerWeights, outputLayerWeights, flags); } return cliquePotentialFunction; }
@Override protected CliquePotentialFunction getCliquePotentialFunctionForTest() { if (cliquePotentialFunction == null) { if (flags.secondOrderNonLinear) cliquePotentialFunction = new NonLinearSecondOrderCliquePotentialFunction(inputLayerWeights4Edge, outputLayerWeights4Edge, inputLayerWeights, outputLayerWeights, flags); else cliquePotentialFunction = new NonLinearCliquePotentialFunction(linearWeights, inputLayerWeights, outputLayerWeights, flags); } return cliquePotentialFunction; }
public CliquePotentialFunction getCliquePotentialFunction(double[] x) { Triple<double[][], double[][], double[][]> allParams = separateWeights(x); double[][] linearWeights = allParams.first(); double[][] W = allParams.second(); // inputLayerWeights double[][] U = allParams.third(); // outputLayerWeights return new NonLinearCliquePotentialFunction(linearWeights, W, U, flags); }
public CliquePotentialFunction getCliquePotentialFunction(double[] x) { Triple<double[][], double[][], double[][]> allParams = separateWeights(x); double[][] linearWeights = allParams.first(); double[][] W = allParams.second(); // inputLayerWeights double[][] U = allParams.third(); // outputLayerWeights return new NonLinearCliquePotentialFunction(linearWeights, W, U, flags); }
NonLinearCliquePotentialFunction cliquePotentialFunction = new NonLinearCliquePotentialFunction(linearWeights, W, U, flags);
NonLinearCliquePotentialFunction cliquePotentialFunction = new NonLinearCliquePotentialFunction(linearWeights, W, U, flags);