My own neural network
(10-07-2019, 09:12 AM)Dieguz Wrote: Hello,

for information : you can find different NN strategies here. 

[url=]link for NN strats comparison[/url]
one of the best commented code is neuralNetcode
Maily they use convnetjs as framework.

We don't know the code used by Lenny and the relative framework.


Actually on the tensorflow website there is allready a simple helloworld examlple.
Its not at all doing trades but from here its easy to write something (well it is for me), but anyway besides the network design and inputs and train method.. its a basic neural net.   (an install for node cpu  (
npm install @tensorflow/tfjs-node

)   is here  )

const tf = require('@tensorflow/tfjs');

// Optional Load the binding:
// Use '@tensorflow/tfjs-node-gpu' if running with GPU.

// Train a simple model:
const model = tf.sequential();
model.add(tf.layers.dense({units: 100, activation: 'relu', inputShape: [10]}));
model.add(tf.layers.dense({units: 1, activation: 'linear'}));
model.compile({optimizer: 'sgd', loss: 'meanSquaredError'});

const xs = tf.randomNormal([100, 10]);
const ys = tf.randomNormal([100, 1]);, ys, {
  epochs: 100,
  callbacks: {
    onEpochEnd: (epoch, log) => console.log(`Epoch ${epoch}: loss = ${log.loss}`)
[....Resistance is futile...]

Messages In This Thread
My own neural network - by lenny2 - 10-04-2019, 10:39 AM
RE: My own neural network - by PGTART - 10-06-2019, 08:23 PM
RE: My own neural network - by Dieguz - 10-07-2019, 09:12 AM
RE: My own neural network - by PGTART - 10-07-2019, 10:27 PM
RE: My own neural network - by PGTART - 10-20-2019, 08:42 PM

Forum Jump:

Users browsing this thread: