shogun-toolbox/shogun — pull request #350 by karlnapf (2012-01-08 15:40:32+00:00)
Title: map_parameters works

added another test for this method.
This is the most important bacckend for migration, which should be only a few steps away from now.
Again, only added stuff, not changed anything in the way Parameters are loaded yet.

-removed the additional constructor for TParameter again because the flag has to public anyway since it needs to be accessed from CSGObject. (Better make the two classes friends?)

-added method allocate_data_from_scratch which allocates data for a TParameter (based on type) so that new_cont/delete_cont are safe to call afterwards.

-added a method one_to_one_migration_prepare which greatly simplifies "easy" migration tasks. See overloaded migrate method in example for details.