Module: Nimbus

Defined in:
lib/nimbus.rb,
lib/nimbus/tree.rb,
lib/nimbus/forest.rb,
lib/nimbus/individual.rb,
lib/nimbus/exceptions.rb,
lib/nimbus/application.rb,
lib/nimbus/training_set.rb,
lib/nimbus/configuration.rb,
lib/nimbus/loss_functions.rb

Defined Under Namespace

Modules: LossFunctions Classes: Application, Configuration, ConfigurationError, Error, Forest, ForestError, Individual, IndividualError, InputFileError, InvalidOptionError, TrainingSet, Tree, TreeError, WrongFormatFileError

Constant Summary

STDERR =
$stderr
STDOUT =
$stdout

Class Method Summary collapse

Class Method Details

.applicationObject

Current Nimbus Application



21
22
23
# File 'lib/nimbus.rb', line 21

def application
  @application ||= ::Nimbus::Application.new
end

.application=(app) ⇒ Object

Set the current Nimbus application object.



26
27
28
# File 'lib/nimbus.rb', line 26

def application=(app)
  @application = app
end

.error_message(msg) ⇒ Object

Writes message to the error output



42
43
44
# File 'lib/nimbus.rb', line 42

def error_message(msg)
  STDERR.puts msg
end

.message(msg) ⇒ Object

Writes message to the standard output



37
38
39
# File 'lib/nimbus.rb', line 37

def message(msg)
  STDOUT.puts msg
end

.stop(msg = "Error: Nimbus finished.") ⇒ Object

Stops the execution of the Nimbus application.



31
32
33
34
# File 'lib/nimbus.rb', line 31

def stop(msg = "Error: Nimbus finished.")  # :nodoc:
  STDERR.puts msg
  exit(false)
end