Skip to content

TypeError: this.set is not a function #336

@AnonNewGuy

Description

@AnonNewGuy

I was just about to test synaptic in a node.js app for the first time so I copied down some of the basic code from the intro guide.
Stock code:
function Perceptron(input, hidden, output)
{
// create the layers
var inputLayer = new Layer(input);
var hiddenLayer = new Layer(hidden);
var outputLayer = new Layer(output);

// connect the layers
inputLayer.project(hiddenLayer);
hiddenLayer.project(outputLayer);

// set the layers
this.set({
	input: inputLayer,
	hidden: [hiddenLayer],
	output: outputLayer
});

}
The app runs successfully, but when the app attempts to make a new perceptron it returns "this.set is not a function"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions