All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.flipkart.fdp.ml.modelinfo.LogisticRegressionModelInfo Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
package com.flipkart.fdp.ml.modelinfo;

import com.flipkart.fdp.ml.transformer.LogisticRegressionTransformer;
import com.flipkart.fdp.ml.transformer.Transformer;
import lombok.Data;

/**
 * Represents information for a Logistic Regression model
 */
@Data
public class LogisticRegressionModelInfo extends AbstractModelInfo {
    private double[] weights;
    private double intercept;
    private int numClasses;
    private int numFeatures;
    private double threshold;

    private String probabilityKey = "probability";

    /**
     * @return an corresponding {@link LogisticRegressionTransformer} for this model info
     */
    @Override
    public Transformer getTransformer() {
        return new LogisticRegressionTransformer(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy