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)
-
+ (Object) application
Current Nimbus Application.
-
+ (Object) application=(app)
Set the current Nimbus application object.
-
+ (Object) error_message(msg)
Writes message to the error output.
-
+ (Object) message(msg)
Writes message to the standard output.
-
+ (Object) stop(msg = "Error: Nimbus finished.")
Stops the execution of the Nimbus application.
Class Method Details
+ (Object) application
Current Nimbus Application
21 22 23 |
# File 'lib/nimbus.rb', line 21 def application @application ||= ::Nimbus::Application.new end |
+ (Object) application=(app)
Set the current Nimbus application object.
26 27 28 |
# File 'lib/nimbus.rb', line 26 def application=(app) @application = app end |
+ (Object) error_message(msg)
Writes message to the error output
42 43 44 |
# File 'lib/nimbus.rb', line 42 def (msg) STDERR.puts msg end |
+ (Object) message(msg)
Writes message to the standard output
37 38 39 |
# File 'lib/nimbus.rb', line 37 def (msg) STDOUT.puts msg end |
+ (Object) stop(msg = "Error: Nimbus finished.")
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 |