mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-01 08:48:46 +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.
43 lines
1.3 KiB
Scala
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)
|
|
}
|