public class LogisticRegressionDataGenerator
:: DeveloperApi ::
Generate test data for LogisticRegression. This class chooses positive labels
probOne and scales features for positive examples by
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static RDD<LabeledPoint> generateLogisticRDD(SparkContext sc,
Generate an RDD containing test data for LogisticRegression.
sc - SparkContext to use for creating the RDD.
nexamples - Number of examples that will be contained in the RDD.
nfeatures - Number of features to generate for each example.
eps - Epsilon factor by which positive examples are scaled.
nparts - Number of partitions of the generated RDD. Default value is 2.
probOne - Probability that a label is 1 (and not 0). Default value is 0.5.