class EvolveNet::Layer
- EvolveNet::Layer
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
evolvenet/neuralnetwork.crConstructors
- .new(type : String, width : Int32, height : Int32, depth : Int32, function : String = "relu")
- .new(pull : JSON::PullParser)
- .new(type : String, size : Int32 = 0, function : String = "signoid")
Instance Method Summary
- #activate(parent : Layer)
- #activate(data : Array(Number))
- #clone
- #depth : Int32
- #depth=(depth : Int32)
- #function : String
- #function=(function : String)
- #height : Int32
- #height=(height : Int32)
- #mutate(rate : Float64)
- #neurons : Array(Neuron)
- #neurons=(neurons : Array(Neuron))
- #punctuate(pos : Int32)
- #randomize
- #size : Int32
- #size=(size : Int32)
- #type : String
- #type=(type : String)
- #width : Int32
- #width=(width : Int32)
Constructor Detail
def self.new(type : String, width : Int32, height : Int32, depth : Int32, function : String = "relu")
#