Hacker News new | past | comments | ask | show | jobs | submit login

What is the color scale for the connection weight strength?



From github:

(defn weight-colour ([^double weight] (Color. (clamp-colour-value (Math/tanh (- weight))) (clamp-colour-value (Math/tanh weight)) 0.0)))

So when weight is 0, it's black. As the weight gets more positive, the colour gets greener, and as the weight gets more negative, the colour gets redder. clamp-colour-value makes sure the colour component doesn't go outside the interval (0,1)

tanh curve shown here: http://upload.wikimedia.org/wikipedia/commons/7/76/Sinh_cosh...


I'm getting a 404 on that URL, I think you forgot the g in .svg :P





Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: