meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
homeautomation2017:group3:start [2017/03/10 12:03] suganmira |
homeautomation2017:group3:start [2017/03/11 01:11] (current) suganmira |
||
---|---|---|---|
Line 46: | Line 46: | ||
var brain = require(' | var brain = require(' | ||
var fs = require(' | var fs = require(' | ||
+ | |||
// Training data for temperature, | // Training data for temperature, | ||
var training_data = JSON.parse(fs.readFileSync(' | var training_data = JSON.parse(fs.readFileSync(' | ||
var net = new brain.NeuralNetwork(); | var net = new brain.NeuralNetwork(); | ||
+ | |||
// Training the neural network | // Training the neural network | ||
net.train(training_data); | net.train(training_data); | ||
+ | |||
// Predict a switch response based on a temperature and humidity input | // Predict a switch response based on a temperature and humidity input | ||
var output = net.run([0.22, | var output = net.run([0.22, | ||
Line 145: | Line 148: | ||
* Code Package : {{ : | * Code Package : {{ : | ||
* Presentation Slides : {{ : | * Presentation Slides : {{ : | ||
- | * Report : | + | * Report : {{ : |
* Energy Analysis : {{ : | * Energy Analysis : {{ : | ||