/FileExtraction/Java_unseen/slavpetrov_berkeleyparser/src/edu/berkeley/nlp/discPCFG/ObjectiveFunction.java
/**
 * 
 */
package edu.berkeley.nlp.discPCFG;

import edu.berkeley.nlp.math.DifferentiableRegularizableFunction;

/**
 * @author petrov
 * 
 */
public interface ObjectiveFunction extends DifferentiableRegularizableFunction {
	<F, L> double[] getLogProbabilities(EncodedDatum datum, double[] weights,
			Encoding<F, L> encoding, IndexLinearizer indexLinearizer);

	// Pair<Double, double[]> calculate();
	public void shutdown();

}
