class

EvolveNet::Layer

Inherits JSON::Serializable < Reference < Object

Constructors

new(type : String, width : Int32, height : Int32, depth : Int32, function : String = "relu")
Source
new(pull : JSON::PullParser)
Source
new(type : String, size : Int32 = 0, function : String = "signoid")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

activate(parent : Layer)
Source
activate(data : Array(Number))
Source
clone
Source
depth
Source
depth=(depth : Int32)
Source
function
Source
function=(function : String)
Source
height
Source
height=(height : Int32)
Source
mutate(rate : Float64)
Source
neurons
Source
neurons=(neurons : Array(Neuron))
Source
punctuate(pos : Int32)
Source
randomize
Source
size
Source
size=(size : Int32)
Source
type
Source
type=(type : String)
Source
width
Source
width=(width : Int32)
Source