the-algorithm/visibilitylib/src/main/scala/com/twitter/visibility/features/Feature.scala
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
2023-03-31 17:36:31 -05:00

12 lines
337 B
Scala

package com.twitter.visibility.features
import com.twitter.visibility.util.NamingUtils
abstract class Feature[T] protected ()(implicit val manifest: Manifest[T]) {
lazy val name: String = NamingUtils.getFriendlyName(this)
override lazy val toString: String =
"Feature[%s](name=%s)".format(manifest, getClass.getSimpleName)
}