Module: Treat::Entities::Entity::Exportable

Included in:
Treat::Entities::Entity
Defined in:
lib/treat/entities/entity/exportable.rb

Instance Method Summary collapse

Instance Method Details

#export(problem) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/treat/entities/entity/exportable.rb', line 3

def export(problem)
  ds = Treat::Learning::DataSet.new(problem)
  each_entity(problem.question.target) do |e|
    ds << e
  end
  ds
end