com.spotify.featran
package com.spotify.featran
Type members
Classlikes
@implicitNotFound("Could not find an instance of CollectionType for ${M}") @typeclass
Type class for collections to extract features from.
- Type Params
- M
-
collection type
- Companion
- object
@implicitNotFound("Could not find an instance of FeatureBuilder for ${T}") @typeclass
Type class for types to build feature into.
- Type Params
- T
-
output feature type
- Companion
- object
Encapsulate features extracted from a FeatureSpec.
- Type Params
- M
-
input collection type, e.g.
Array
, List - T
-
input record type to extract features from
Encapsulate specification for feature extraction and transformation.
- Type Params
- T
-
input record type to extract features from
- Companion
- object
object FlatConverter
Companion to FlatReader. Sometimes for serialization and compatability reasons it
is better to write out data in an intermediate format such as JSON or tf.examples to
interface with storage or other systems. This class uses the functions internal to a spec
to write out the data into a new flat format.
is better to write out data in an intermediate format such as JSON or tf.examples to
interface with storage or other systems. This class uses the functions internal to a spec
to write out the data into a new flat format.
object FlatExtractor
Sometimes it is useful to store the features in an intermediate state in normally
a flat version like Examples or maybe JSON. This makes it easier to interface with
other systems.
a flat version like Examples or maybe JSON. This makes it easier to interface with
other systems.
@implicitNotFound("Could not find an instance of FlatReader for ${T}") @typeclass
TypeClass that is used to read data from flat files. The requirement is that each
feature comes from the same type and can be looked up by name.
feature comes from the same type and can be looked up by name.
- Type Params
- T
-
The intermediate storage format for each feature.
- Companion
- object
@implicitNotFound("Could not find an instance of FlatWriter for ${T}") @typeclass
TypeClass for implementing the writer to a flat format keyed by name
- Companion
- object
@implicitNotFound("Could not find an instance of FloatingPoint for ${T}") @typeclass
Type class for floating point primitives.
- Companion
- object
Encapsulate features extracted from a MultiFeatureSpec.
Allows separation back into specs by names or vectors.
Allows separation back into specs by names or vectors.
- Type Params
- M
-
input collection type, e.g.
Array
, List - T
-
input record type to extract features from
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.
- Companion
- object
case class NamedSparseArray[T](indices: Array[Int], values: Array[T], length: Int, names: Seq[String])
A SparseArray with names of non-zero entries.