Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to scale numbers between -1 and 1 python

score = positive% * positive_score + neutral % * neutral_score + negative % * negative_score

score = .3937 * 1 + .4205 * 0 + .1858 * -1
score = .2079
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scale #numbers #python
ADD COMMENT
Topic
Name
6+7 =