func compareRuleFit(a, b *RuleFit) int {
switch {
case len(a.Peers) < len(b.Peers):
return -1
case len(a.Peers) > len(b.Peers):
return 1
case len(a.PeersWithDifferentRole) > len(b.PeersWithDifferentRole):
return -1
case len(a.PeersWithDifferentRole) < len(b.PeersWithDifferentRole):
return 1
case a.IsolationScore < b.IsolationScore:
return -1
case a.IsolationScore > b.IsolationScore:
return 1
case a.WitnessScore > b.WitnessScore:
return -1
case a.WitnessScore < b.WitnessScore:
return 1
default:
return 0
}
}
The larger the IsolationScore, the better the RuleFit, which makes sense.
However, why is the RuleFit with a larger len(Peers) considered better?
After all, under what circumstances would the two RuleFits here have different len(Peers)?