mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-14 15:18:55 +02:00
ef4c5eb65e
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.
23 lines
830 B
Scala
23 lines
830 B
Scala
package com.twitter.follow_recommendations.common.candidate_sources.recent_engagement
|
|
|
|
import com.twitter.follow_recommendations.configapi.common.FeatureSwitchConfig
|
|
import com.twitter.timelines.configapi.FSBoundedParam
|
|
import com.twitter.timelines.configapi.FSName
|
|
import com.twitter.timelines.configapi.Param
|
|
import javax.inject.Inject
|
|
import javax.inject.Singleton
|
|
|
|
@Singleton
|
|
class RepeatedProfileVisitsFSConfig @Inject() () extends FeatureSwitchConfig {
|
|
override val booleanFSParams: Seq[Param[Boolean] with FSName] =
|
|
Seq(
|
|
RepeatedProfileVisitsParams.IncludeCandidates,
|
|
RepeatedProfileVisitsParams.UseOnlineDataset,
|
|
)
|
|
override val intFSParams: Seq[FSBoundedParam[Int]] =
|
|
Seq(
|
|
RepeatedProfileVisitsParams.RecommendationThreshold,
|
|
RepeatedProfileVisitsParams.BucketingThreshold,
|
|
)
|
|
}
|