package edu.neu.ccs.pyramid.optimization;

import org.apache.mahout.math.Vector;

/**
 * Created by chengli on 12/7/14.
 * inspired by the design of mallet
 */
public interface Optimizable {
    Vector getParameters();
    void refresh();

    public interface ByGradient extends Optimizable {
        Vector getGradient();
    }

}

@@ -324,10 +324,149 @@
 %0A    %7D%0A%0A
+    public interface ByGradientValue extends Optimizable%7B%0A        Vector getGradient();%0A        double getValue(Vector parameters);%0A    %7D%0A%0A
 %7D%0A

add interface ByGradientValue