This project has retired. For details please refer to its Attic page.
TableTrainingSpec.TestingFilter (Lens 2.0.1-beta-incubating API)

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

java.lang.Object
  extended by org.apache.lens.ml.spark.TableTrainingSpec.TestingFilter
All Implemented Interfaces:
Serializable, org.apache.spark.api.java.function.Function<TableTrainingSpec.DataSample,Boolean>
Enclosing class:
TableTrainingSpec

public static class TableTrainingSpec.TestingFilter
extends Object
implements org.apache.spark.api.java.function.Function<TableTrainingSpec.DataSample,Boolean>

The Class TestingFilter.

See Also:
Serialized Form

Constructor Summary
TableTrainingSpec.TestingFilter(double fraction)
          Instantiates a new testing filter.
 
Method Summary
 Boolean call(TableTrainingSpec.DataSample v1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableTrainingSpec.TestingFilter

public TableTrainingSpec.TestingFilter(double fraction)
Instantiates a new testing filter.

Parameters:
fraction - the fraction
Method Detail

call

public Boolean call(TableTrainingSpec.DataSample v1)
             throws Exception
Specified by:
call in interface org.apache.spark.api.java.function.Function<TableTrainingSpec.DataSample,Boolean>
Throws:
Exception


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