Synaptic neural network library for JavaScript. This is what I'm using in my light sensing/control project to calibrate Philips Hue light output against a TCS34725 RGBC sensor.
The goal is to synchronise the colour of lights inside with the colour of daylight outside.
I use the clear value of the sensor to gradually fade to warm white light in the evening. For the bedroom specifically, I fade to dim candle light.