
Score a package for dependencies
score_dependencies.Rd
Calculates a regularized score based on the number of dependencies a package has.
Convert the number of dependencies NROW(x)
into a validation
score [0,1] $$ 1 / (1 + exp(-0.5 * (NROW(x) + 19))) $$
Details
removed - 1 from the formula e.g. $$ 1 - 1 / (1 + exp(NROW(x)- 19)) $$ to reverse the return value e.g. 0 - low; 1 - high
The scoring function is the classic logistic curve $$ / (1 + exp(-k(x-x[0])) $$ \(x = NROW(x)\), sigmoid midpoint is 20 reverse dependencies, ie. \(x[0] = 19\), and logistic growth rate of \(k = 0.5\).
$$ 1 / (1 + exp(NROW(x)- 19)) $$