Created
March 11, 2016 23:14
-
-
Save markmo/c8ebb803b06b649ad48d to your computer and use it in GitHub Desktop.
Feature traits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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