class NeuralNetwork

Public Class Methods

new() click to toggle source
# File eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/chatbot.rb, line 73
def initialize
  @brainz = Brainz::Brainz.new
end

Public Instance Methods

method_missing(method, *args, &block) click to toggle source

TODO: DelegateAllMissingMethodsTo @brainz

# File eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/chatbot.rb, line 69
def method_missing(method, *args, &block)
  @brainz.public_send(method, *args, &block)
end
num_hidden() click to toggle source
# File ezii-client/managables/services/chat-bot-integrations/gitter_zircon.rb, line 166
def num_hidden
  puts 'wau'
end
to_s() click to toggle source
# File eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/chatbot.rb, line 119
def to_s
  verbose_introspect
end
verbose_introspect(very_verbose = false) click to toggle source
# File eezee-3-aka-game-x-engine/managables/services/chat-bot-integrations/chatbot.rb, line 77
  def verbose_introspect(very_verbose = false)
    var = <<~HUMAN_SCRIPT_INTROSPECT_FOR_DISCORD
      ```
      Brainz Rubygem (wrapper)
      Ruby object id: #{@brainz.object_id}
      ```

      ```
      Instance variables
      ```

      ```
      #{@brainz.instance_variables}
      ```
    HUMAN_SCRIPT_INTROSPECT_FOR_DISCORD
  
    if very_verbose
      var = <<~HUMAN_SCRIPT_INTROSPECT_FOR_DISCORD
        ```
        Public methods (random sample of 3)
        ```

        ```
        #{(@brainz.public_methods - Object.new.public_methods).sample(3).join("\n")}
        ```
      HUMAN_SCRIPT_INTROSPECT_FOR_DISCORD
    end

    
    unless @brainz.network.nil?
      # var += <<~HUMAN_SCRIPT_INTROSPECT_FOR_DISCORD
      #   ```
      #   #{@brainz.network.input.to_s}
      #   #{@brainz.network.hidden.to_s}
      #   #{@brainz.network.output.to_s}
      #   ```
      # HUMAN_SCRIPT_INTROSPECT_FOR_DISCORD
    end

    return var
  end