org.apache.lens.ml.spark
Class TableTrainingSpec.TableTrainingSpecBuilder

java.lang.Object
  extended by org.apache.lens.ml.spark.TableTrainingSpec.TableTrainingSpecBuilder
Enclosing class:
TableTrainingSpec

public static class TableTrainingSpec.TableTrainingSpecBuilder
extends Object

The Class TableTrainingSpecBuilder.


Constructor Summary
TableTrainingSpec.TableTrainingSpecBuilder()
          Instantiates a new table training spec builder.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableTrainingSpec.TableTrainingSpecBuilder

public TableTrainingSpec.TableTrainingSpecBuilder()
Instantiates a new table training spec builder.

Method Detail

hiveConf

public TableTrainingSpec.TableTrainingSpecBuilder hiveConf(org.apache.hadoop.hive.conf.HiveConf conf)
Hive conf.

Parameters:
conf - the conf
Returns:
the table training spec builder

database

public TableTrainingSpec.TableTrainingSpecBuilder database(String db)
Database.

Parameters:
db - the db
Returns:
the table training spec builder

table

public TableTrainingSpec.TableTrainingSpecBuilder table(String table)
Table.

Parameters:
table - the table
Returns:
the table training spec builder

partitionFilter

public TableTrainingSpec.TableTrainingSpecBuilder partitionFilter(String partFilter)
Partition filter.

Parameters:
partFilter - the part filter
Returns:
the table training spec builder

labelColumn

public TableTrainingSpec.TableTrainingSpecBuilder labelColumn(String labelColumn)
Label column.

Parameters:
labelColumn - the label column
Returns:
the table training spec builder

featureColumns

public TableTrainingSpec.TableTrainingSpecBuilder featureColumns(List<String> featureColumns)
Feature columns.

Parameters:
featureColumns - the feature columns
Returns:
the table training spec builder

build

public TableTrainingSpec build()
Builds the.

Returns:
the table training spec

trainingFraction

public TableTrainingSpec.TableTrainingSpecBuilder trainingFraction(double trainingFraction)
Training fraction.

Parameters:
trainingFraction - the training fraction
Returns:
the table training spec builder


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.