class Gradnite::Node

Defined in:

gradnite/gradnite.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(value : Float64, _children : Array(Gradnite::Node) = [] of Node, _op : String = "", label : String = "") #

[View source]
def self.zero : Node #

[View source]

Instance Method Detail

def *(other : Node | Float64) #

[View source]
def **(other : Int64 | Float64) #

[View source]
def +(other : Node | Float64) #

[View source]
def -(other : Node | Float64) #

[View source]
def /(other : Node) #

[View source]
def _backward : Proc(Nil) #

[View source]
def _backward=(_backward : Proc(Nil)) #

[View source]
def _children : Array(Gradnite::Node) #

[View source]
def _children=(_children : Array(Gradnite::Node)) #

[View source]
def _op : String #

[View source]
def _op=(_op : String) #

[View source]
def _prev : Array(Gradnite::Node) #

[View source]
def _prev=(_prev : Array(Gradnite::Node)) #

[View source]
def backward #

[View source]
def exp #

[View source]
def grad : Float64 #

[View source]
def grad=(grad : Float64) #

[View source]
def id : String #

[View source]
def id=(id : String) #

[View source]
def label : String #

[View source]
def label=(label : String) #

[View source]
def tanh #

[View source]
def to_s(io : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]
def value : Float64 #

[View source]
def value=(value : Float64) #

[View source]