Skip to content
Lukáš Plevač edited this page Dec 22, 2019 · 6 revisions

Model is base class in lib. It allows you to merge individual layers and place them in your network, and then work with the neural network as a whole.

init code:

from PSNN import model

mymodel = model(array of layers objects)

init exmaple:

from PSNN import model, layers, activation

netmodel = model([
  layers.dense(2, activation.sigmoid()),
  layers.dense(1, activation.sigmoid())
])
Clone this wiki locally