FeatureExtractor

class FeatureExtractor[M <: ([_$1] =>> Any), T] extends Serializable
Encapsulate features extracted from a FeatureSpec.
Type Params
M
input collection type, e.g. Array, List
T
input record type to extract features from
trait Serializable
class Object
trait Matchable
class Any

Value members

Methods

def featureValues[F](evidence$4: FeatureBuilder[F], evidence$5: ClassTag[F]): M[F]
Values of the extracted features, in the same order as names in featureNames.
Type Params
F
output data type, e.g. Array[Float], Array[Double], DenseVector[Float],
DenseVector[Double]
def featureResults[F](evidence$6: FeatureBuilder[F], evidence$7: ClassTag[F]): M[FeatureResult[F, T]]
Values of the extracted features, in the same order as names in featureNames with
rejections keyed on feature name and the original input record.
Type Params
F
output data type, e.g. Array[Float], Array[Double], DenseVector[Float],
DenseVector[Double]

Fields

@transient
lazy val featureSettings: M[String]
JSON settings of the FeatureSpec and aggregated feature summary.
This can be used with FeatureSpec.extractWithSettings to bypass the reduce step when
extracting new records of the same type.
@transient
lazy val featureNames: M[Seq[String]]
Names of the extracted features, in the same order as values in featureValues.