the-algorithm/follow-recommendations-service/common/src/main/scala/com/twitter/follow_recommendations/common/candidate_sources/geo/PopGeoQualityFollowSourceParams.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

43 lines
1.3 KiB
Scala

package com.twitter.follow_recommendations.common.candidate_sources.geo
import com.twitter.timelines.configapi.FSBoundedParam
import com.twitter.timelines.configapi.FSParam
object PopGeoQualityFollowSourceParams {
case object CandidateSourceEnabled
extends FSParam[Boolean]("pop_geo_quality_follow_source_enabled", false)
case object PopGeoSourceGeoHashMinPrecision
extends FSBoundedParam[Int](
"pop_geo_quality_follow_source_geo_hash_min_precision",
default = 2,
min = 0,
max = 10)
case object PopGeoSourceGeoHashMaxPrecision
extends FSBoundedParam[Int](
"pop_geo_quality_follow_source_geo_hash_max_precision",
default = 3,
min = 0,
max = 10)
case object PopGeoSourceReturnFromAllPrecisions
extends FSParam[Boolean](
"pop_geo_quality_follow_source_return_from_all_precisions",
default = false)
case object PopGeoSourceMaxResultsPerPrecision
extends FSBoundedParam[Int](
"pop_geo_quality_follow_source_max_results_per_precision",
default = 200,
min = 0,
max = 1000)
case object CandidateSourceWeight
extends FSBoundedParam[Double](
"pop_geo_quality_follow_source_weight",
default = 200,
min = 0.001,
max = 2000)
}