class BatchExperiment::PyaExtractor
@private Extractor
for the output of the pyasukp program available at github.com/henriquebecker91/masters. Not of interest for the majority of the users of this gem. Kept as example, and for this gem author personal use.
Public Class Methods
extract_from_lines(lines)
click to toggle source
(see BatchExperiment::Extractor#extract_from_lines
)
# File lib/batch_experiment/sample_extractors.rb, line 60 def self.extract_from_lines(lines) values = ['Total Time ', 'ext_time', 'ext_mem'].map do | label | Extractor.get_field(lines, label) end opt_key = '#The optimal value for the given capacity' values << Extractor.get_hfield(lines, opt_key) end
names()
click to toggle source
(see BatchExperiment::Extractor#names
)
# File lib/batch_experiment/sample_extractors.rb, line 55 def self.names ['internal_time', 'external_time', 'external_memory', 'opt'] end