Regression Class

public final class Regression
extends AutoMLVertical

Regression task in AutoML Table vertical.

Constructor Summary

Constructor Description
Regression()

Creates an instance of Regression class.

Method Summary

Modifier and Type Method and Description
List<String> cvSplitColumnNames()

Get the cvSplitColumnNames property: Columns to use for CVSplit data.

TableVerticalFeaturizationSettings featurizationSettings()

Get the featurizationSettings property: Featurization inputs needed for AutoML job.

static Regression fromJson(JsonReader jsonReader)

Reads an instance of Regression from the JsonReader.

TableVerticalLimitSettings limitSettings()

Get the limitSettings property: Execution constraints for AutoMLJob.

NCrossValidations nCrossValidations()

Get the nCrossValidations property: Number of cross validation folds to be applied on training dataset when validation dataset is not provided.

RegressionPrimaryMetrics primaryMetric()

Get the primaryMetric property: Primary metric for regression task.

TaskType taskType()

Get the taskType property: [Required] Task type for AutoMLJob.

MLTableJobInput testData()

Get the testData property: Test data input.

Double testDataSize()

Get the testDataSize property: The fraction of test dataset that needs to be set aside for validation purpose.

JsonWriter toJson(JsonWriter jsonWriter)
RegressionTrainingSettings trainingSettings()

Get the trainingSettings property: Inputs for training phase for an AutoML Job.

void validate()

Validates the instance.

MLTableJobInput validationData()

Get the validationData property: Validation data inputs.

Double validationDataSize()

Get the validationDataSize property: The fraction of training dataset that needs to be set aside for validation purpose.

String weightColumnName()

Get the weightColumnName property: The name of the sample weight column.

Regression withCvSplitColumnNames(List<String> cvSplitColumnNames)

Set the cvSplitColumnNames property: Columns to use for CVSplit data.

Regression withFeaturizationSettings(TableVerticalFeaturizationSettings featurizationSettings)

Set the featurizationSettings property: Featurization inputs needed for AutoML job.

Regression withLimitSettings(TableVerticalLimitSettings limitSettings)

Set the limitSettings property: Execution constraints for AutoMLJob.

Regression withLogVerbosity(LogVerbosity logVerbosity)

Set the logVerbosity property: Log verbosity for the job.

Regression withNCrossValidations(NCrossValidations nCrossValidations)

Set the nCrossValidations property: Number of cross validation folds to be applied on training dataset when validation dataset is not provided.

Regression withPrimaryMetric(RegressionPrimaryMetrics primaryMetric)

Set the primaryMetric property: Primary metric for regression task.

Regression withTargetColumnName(String targetColumnName)

Set the targetColumnName property: Target column name: This is prediction values column.

Regression withTestData(MLTableJobInput testData)

Set the testData property: Test data input.

Regression withTestDataSize(Double testDataSize)

Set the testDataSize property: The fraction of test dataset that needs to be set aside for validation purpose.

Regression withTrainingData(MLTableJobInput trainingData)

Set the trainingData property: [Required] Training data input.

Regression withTrainingSettings(RegressionTrainingSettings trainingSettings)

Set the trainingSettings property: Inputs for training phase for an AutoML Job.

Regression withValidationData(MLTableJobInput validationData)

Set the validationData property: Validation data inputs.

Regression withValidationDataSize(Double validationDataSize)

Set the validationDataSize property: The fraction of training dataset that needs to be set aside for validation purpose.

Regression withWeightColumnName(String weightColumnName)

Set the weightColumnName property: The name of the sample weight column.

Methods inherited from AutoMLVertical

Methods inherited from java.lang.Object

Constructor Details

Regression

public Regression()

Creates an instance of Regression class.

Method Details

cvSplitColumnNames

public List<String> cvSplitColumnNames()

Get the cvSplitColumnNames property: Columns to use for CVSplit data.

Returns:

the cvSplitColumnNames value.

featurizationSettings

public TableVerticalFeaturizationSettings featurizationSettings()

Get the featurizationSettings property: Featurization inputs needed for AutoML job.

Returns:

the featurizationSettings value.

fromJson

public static Regression fromJson(JsonReader jsonReader)

Reads an instance of Regression from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Regression if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

limitSettings

public TableVerticalLimitSettings limitSettings()

Get the limitSettings property: Execution constraints for AutoMLJob.

Returns:

the limitSettings value.

nCrossValidations

public NCrossValidations nCrossValidations()

Get the nCrossValidations property: Number of cross validation folds to be applied on training dataset when validation dataset is not provided.

Returns:

the nCrossValidations value.

primaryMetric

public RegressionPrimaryMetrics primaryMetric()

Get the primaryMetric property: Primary metric for regression task.

Returns:

the primaryMetric value.

taskType

public TaskType taskType()

Get the taskType property: [Required] Task type for AutoMLJob.

Overrides:

Regression.taskType()

Returns:

the taskType value.

testData

public MLTableJobInput testData()

Get the testData property: Test data input.

Returns:

the testData value.

testDataSize

public Double testDataSize()

Get the testDataSize property: The fraction of test dataset that needs to be set aside for validation purpose. Values between (0.0 , 1.0) Applied when validation dataset is not provided.

Returns:

the testDataSize value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

Regression.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trainingSettings

public RegressionTrainingSettings trainingSettings()

Get the trainingSettings property: Inputs for training phase for an AutoML Job.

Returns:

the trainingSettings value.

validate

public void validate()

Validates the instance.

Overrides:

Regression.validate()

validationData

public MLTableJobInput validationData()

Get the validationData property: Validation data inputs.

Returns:

the validationData value.

validationDataSize

public Double validationDataSize()

Get the validationDataSize property: The fraction of training dataset that needs to be set aside for validation purpose. Values between (0.0 , 1.0) Applied when validation dataset is not provided.

Returns:

the validationDataSize value.

weightColumnName

public String weightColumnName()

Get the weightColumnName property: The name of the sample weight column. Automated ML supports a weighted column as an input, causing rows in the data to be weighted up or down.

Returns:

the weightColumnName value.

withCvSplitColumnNames

public Regression withCvSplitColumnNames(List<String> cvSplitColumnNames)

Set the cvSplitColumnNames property: Columns to use for CVSplit data.

Parameters:

cvSplitColumnNames - the cvSplitColumnNames value to set.

Returns:

the Regression object itself.

withFeaturizationSettings

public Regression withFeaturizationSettings(TableVerticalFeaturizationSettings featurizationSettings)

Set the featurizationSettings property: Featurization inputs needed for AutoML job.

Parameters:

featurizationSettings - the featurizationSettings value to set.

Returns:

the Regression object itself.

withLimitSettings

public Regression withLimitSettings(TableVerticalLimitSettings limitSettings)

Set the limitSettings property: Execution constraints for AutoMLJob.

Parameters:

limitSettings - the limitSettings value to set.

Returns:

the Regression object itself.

withLogVerbosity

public Regression withLogVerbosity(LogVerbosity logVerbosity)

Set the logVerbosity property: Log verbosity for the job.

Overrides:

Regression.withLogVerbosity(LogVerbosity logVerbosity)

Parameters:

logVerbosity

withNCrossValidations

public Regression withNCrossValidations(NCrossValidations nCrossValidations)

Set the nCrossValidations property: Number of cross validation folds to be applied on training dataset when validation dataset is not provided.

Parameters:

nCrossValidations - the nCrossValidations value to set.

Returns:

the Regression object itself.

withPrimaryMetric

public Regression withPrimaryMetric(RegressionPrimaryMetrics primaryMetric)

Set the primaryMetric property: Primary metric for regression task.

Parameters:

primaryMetric - the primaryMetric value to set.

Returns:

the Regression object itself.

withTargetColumnName

public Regression withTargetColumnName(String targetColumnName)

Set the targetColumnName property: Target column name: This is prediction values column. Also known as label column name in context of classification tasks.

Overrides:

Regression.withTargetColumnName(String targetColumnName)

Parameters:

targetColumnName

withTestData

public Regression withTestData(MLTableJobInput testData)

Set the testData property: Test data input.

Parameters:

testData - the testData value to set.

Returns:

the Regression object itself.

withTestDataSize

public Regression withTestDataSize(Double testDataSize)

Set the testDataSize property: The fraction of test dataset that needs to be set aside for validation purpose. Values between (0.0 , 1.0) Applied when validation dataset is not provided.

Parameters:

testDataSize - the testDataSize value to set.

Returns:

the Regression object itself.

withTrainingData

public Regression withTrainingData(MLTableJobInput trainingData)

Set the trainingData property: [Required] Training data input.

Overrides:

Regression.withTrainingData(MLTableJobInput trainingData)

Parameters:

trainingData

withTrainingSettings

public Regression withTrainingSettings(RegressionTrainingSettings trainingSettings)

Set the trainingSettings property: Inputs for training phase for an AutoML Job.

Parameters:

trainingSettings - the trainingSettings value to set.

Returns:

the Regression object itself.

withValidationData

public Regression withValidationData(MLTableJobInput validationData)

Set the validationData property: Validation data inputs.

Parameters:

validationData - the validationData value to set.

Returns:

the Regression object itself.

withValidationDataSize

public Regression withValidationDataSize(Double validationDataSize)

Set the validationDataSize property: The fraction of training dataset that needs to be set aside for validation purpose. Values between (0.0 , 1.0) Applied when validation dataset is not provided.

Parameters:

validationDataSize - the validationDataSize value to set.

Returns:

the Regression object itself.

withWeightColumnName

public Regression withWeightColumnName(String weightColumnName)

Set the weightColumnName property: The name of the sample weight column. Automated ML supports a weighted column as an input, causing rows in the data to be weighted up or down.

Parameters:

weightColumnName - the weightColumnName value to set.

Returns:

the Regression object itself.

Applies to