public static class TableTrainingSpec.TableTrainingSpecBuilder extends Object
Constructor and Description |
---|
TableTrainingSpec.TableTrainingSpecBuilder()
Instantiates a new table training spec builder.
|
Modifier and Type | Method and Description |
---|---|
TableTrainingSpec |
build()
Builds the.
|
TableTrainingSpec.TableTrainingSpecBuilder |
database(String db)
Database.
|
TableTrainingSpec.TableTrainingSpecBuilder |
featureColumns(List<String> featureColumns)
Feature columns.
|
TableTrainingSpec.TableTrainingSpecBuilder |
hiveConf(org.apache.hadoop.hive.conf.HiveConf conf)
Hive conf.
|
TableTrainingSpec.TableTrainingSpecBuilder |
labelColumn(String labelColumn)
Label column.
|
TableTrainingSpec.TableTrainingSpecBuilder |
partitionFilter(String partFilter)
Partition filter.
|
TableTrainingSpec.TableTrainingSpecBuilder |
table(String table)
Table.
|
TableTrainingSpec.TableTrainingSpecBuilder |
trainingFraction(double trainingFraction)
Training fraction.
|
public TableTrainingSpec.TableTrainingSpecBuilder()
public TableTrainingSpec.TableTrainingSpecBuilder hiveConf(org.apache.hadoop.hive.conf.HiveConf conf)
conf
- the confpublic TableTrainingSpec.TableTrainingSpecBuilder database(String db)
db
- the dbpublic TableTrainingSpec.TableTrainingSpecBuilder table(String table)
table
- the tablepublic TableTrainingSpec.TableTrainingSpecBuilder partitionFilter(String partFilter)
partFilter
- the part filterpublic TableTrainingSpec.TableTrainingSpecBuilder labelColumn(String labelColumn)
labelColumn
- the label columnpublic TableTrainingSpec.TableTrainingSpecBuilder featureColumns(List<String> featureColumns)
featureColumns
- the feature columnspublic TableTrainingSpec build()
public TableTrainingSpec.TableTrainingSpecBuilder trainingFraction(double trainingFraction)
trainingFraction
- the training fractionCopyright © 2014–2015 Apache Software Foundation. All rights reserved.