class LogisticRegressionModel implements IgniteModel<Vector, Double>, Exportable<LogisticRegressionModel>, Serializable {

    @Override public Double predict(Vector input) {

        final double res = sigmoid(input.dot(weights) + intercept);

        if (isKeepingRawLabels)
            return res;
        else
            return res - threshold > 0 ? 1.0 : 0;
    }

    public  LogisticRegressionModel(Vector weights, double intercept);

}