Module: RubyZero::NN::Functional
- Defined in:
- lib/rubyzero/nn/functional.rb
Class Method Summary collapse
Class Method Details
.exp(x) ⇒ Object
12 13 14 |
# File 'lib/rubyzero/nn/functional.rb', line 12 def self.exp(x) return RubyZero::Core::Functions::Exp.new().call(x) end |
.log(x) ⇒ Object
6 7 8 |
# File 'lib/rubyzero/nn/functional.rb', line 6 def self.log(x) return RubyZero::Core::Functions::Log.new().call(x) end |
.relu(x) ⇒ Object
3 4 5 |
# File 'lib/rubyzero/nn/functional.rb', line 3 def self.relu(x) return RubyZero::Core::Functions::ReLU.new().call(x) end |
.sigmoid(x) ⇒ Object
9 10 11 |
# File 'lib/rubyzero/nn/functional.rb', line 9 def self.sigmoid(x) return RubyZero::Core::Functions::Sigmoid.new().call(x) end |