Skip to content

Instantly share code, notes, and snippets.

@markmo
Created March 11, 2016 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markmo/c8ebb803b06b649ad48d to your computer and use it in GitHub Desktop.
Save markmo/c8ebb803b06b649ad48d to your computer and use it in GitHub Desktop.
Feature traits
trait FeatureType[V] {
val name: String
}
trait FeatureX[V] extends FeatureType[V] {
val value: V
}
case class FeatureCollection(id: Int,
created: DateTime,
features: Set[_ <: FeatureType[_]],
label: LabelType[_]
)
trait LabelType[V] {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment