Sha256: 959583bf550315d45e11f662429b663b8ea6bed77eccacae9a69d08ffb28c13f

Contents?: true

Size: 937 Bytes

Versions: 2

Compression:

Stored size: 937 Bytes

Contents

class MyExperiment < Experiment::Base
  
  def test_data
    # TODO: Specify an array of all the test data. 
    # It will be split up automatically for you accross Cross-validations
  end
  
  def run_the_experiment(data, output)
    # TODO: Define how you will run the experiment
    # Remeber, each seperate experiment inherits from this base class and includes
    # it's own files, so this should be a rather generic implementation
    
    # 1. prepare any nessecary setup like I/O lists, etc...
    
    # 2. do the experiment
    benchmark do
      output << # run your code here
    end
    
    # 3. clean up
    
  end
  
  def analyze_result!(input, output)
    # TODO perform an analysis of what your program did
    
    # remember to return a hash of meaningful data, best of all a summary
  end
  
  # you might want to override this method as well:
  # def summarize_results!(results)
  #   super(results)
  # end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
experiment-0.2.0 lib/experiment/generator/experiment_template.rb
experiment-0.0.1 lib/experiment/generator/experiment_template.rb