Octave doesn't have sets.
Implement logistic_regression_cost/c++