mirror of
https://github.com/twitter/the-algorithm.git
synced 2025-01-24 18:01:16 +01:00
Merge a7fd896befcd0d7e64d489f3e1678985a37a6c38 into fb54d8b54984f89f7dba90a18e7c3048421464c3
This commit is contained in:
commit
5561ff5fbd
@ -22,7 +22,7 @@ object OONTweetScalingScorer extends Scorer[PipelineQuery, TweetCandidate] {
|
||||
|
||||
override val features: Set[Feature[_, _]] = Set(ScoreFeature)
|
||||
|
||||
private val ScaleFactor = 0.75
|
||||
private val ScaleFactor = 1.0
|
||||
|
||||
override def apply(
|
||||
query: PipelineQuery,
|
||||
@ -38,11 +38,9 @@ object OONTweetScalingScorer extends Scorer[PipelineQuery, TweetCandidate] {
|
||||
}
|
||||
|
||||
/**
|
||||
* We should only be applying this multiplier to Out-Of-Network tweets.
|
||||
* In-Network Retweets of Out-Of-Network tweets should not have this multiplier applied
|
||||
* Don't apply this multiplier; it's a bad idea.
|
||||
*/
|
||||
private def selector(candidate: CandidateWithFeatures[TweetCandidate]): Boolean = {
|
||||
!candidate.features.getOrElse(InNetworkFeature, false) &&
|
||||
!candidate.features.getOrElse(IsRetweetFeature, false)
|
||||
false
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user