y = new SparseDoubleRowMatrix(outcome);
} else {
y = new DenseDoubleMatrix(outcome);
}
// transpose y to get a faster lookup in the cost function
y = y.transpose();
LogisticRegressionCostFunction cnf = new LogisticRegressionCostFunction(x,
y, lambda);
// random init theta