-
Notifications
You must be signed in to change notification settings - Fork 8
Schema with Builder
codenamewei edited this page Feb 7, 2021
·
2 revisions
Schema works as follows with builder.
Schema sc = new Schema.Builder()
.addColumnsInteger("Pregnancies","Glucose","BloodPressure","SkinThickness","Insulin")
.addColumnsFloat("BMI","DiabetesPedigreeFunction")
.addColumnInteger("Age")
.addColumnCategorical("Class", Arrays.asList("0","1"))
.build();
Note: there's only needs a semicolon after the line build().