MultiFeatureSpec

com.spotify.featran.MultiFeatureSpec
See theMultiFeatureSpec companion object
class MultiFeatureSpec[T](val mapping: Map[String, Int], val features: Array[Feature[T, _, _, _]], val crossings: Crossings)

Wrapper for FeatureSpec that allows for combination and separation of different specs.

Attributes

Companion:
object
Source:
MultiFeatureSpec.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def extract[M[_] : CollectionType](input: M[T]): MultiFeatureExtractor[M, T]

Extract features from a input collection.

Extract features from a input collection.

This is done in two steps, a reduce step over the collection to aggregate feature summary, and a map step to transform values using the summary.

Attributes

M

input collection type, e.g. Array, List

input

input collection

Source:
MultiFeatureSpec.scala
def extractWithSettings[M[_] : CollectionType](input: M[T], settings: M[String]): MultiFeatureExtractor[M, T]

Extract features from a input collection using settings from a previous session.

Extract features from a input collection using settings from a previous session.

This bypasses the reduce step in extract and uses feature summary from settings exported in a previous session.

Attributes

M

input collection type, e.g. Array, List

input

input collection

settings

JSON settings from a previous session

Source:
MultiFeatureSpec.scala
def extractWithSubsetSettings[M[_] : CollectionType](input: M[T], settings: M[String]): MultiFeatureExtractor[M, T]

Extract features from a input collection using partial settings from a previous session.

Extract features from a input collection using partial settings from a previous session.

This bypasses the reduce step in extract and uses feature summary from settings exported in a previous session.

Attributes

M

input collection type, e.g. Array, List

input

input collection

settings

JSON settings from a previous session

Source:
MultiFeatureSpec.scala
def filter(predicate: Feature[T, _, _, _] => Boolean): MultiFeatureSpec[T]

Creates a new MultiFeatureSpec with only the features that respect the given predicate.

Creates a new MultiFeatureSpec with only the features that respect the given predicate.

Attributes

predicate

Function determining whether or not to include the feature

Source:
MultiFeatureSpec.scala