<NME> RidgeLogisticOptimizer.java
<BEF> ADDFILE
<MSG> add RidgeLogisticOptimizer

<DFF> @@ -0,0 +1,28 @@
+package edu.neu.ccs.pyramid.classification.logistic_regression;
+
+import edu.neu.ccs.pyramid.dataset.ClfDataSet;
+import edu.neu.ccs.pyramid.dataset.DataSet;
+import edu.neu.ccs.pyramid.optimization.LBFGS;
+
+/**
+ * Created by chengli on 10/7/15.
+ */
+public class RidgeLogisticOptimizer {
+    private double gaussianPriorVariance = 1;
+
+    public RidgeLogisticOptimizer(double gaussianPriorVariance) {
+        this.gaussianPriorVariance = gaussianPriorVariance;
+    }
+
+    public void optimize(LogisticRegression logisticRegression, DataSet dataSet,
+                         double[][] targetDistributions){
+        logisticRegression.setFeatureExtraction(false);
+        KLLogisticLoss function = new KLLogisticLoss(logisticRegression,dataSet,
+                targetDistributions,gaussianPriorVariance);
+        LBFGS lbfgs = new LBFGS(function);
+        lbfgs.optimize();
+    }
+
+
+
+}

add RidgeLogisticOptimizer