Refactor data_strucutres.py
In data_structures.py
there are several methods that are to complex and can be simplified. As a first step we tackle Dataset.data_toML(..)
and its helper methods Dataset._datamat_forML(...)
and Dataset._dobj_forML(...)
. Code should be readable and avoid exec(...)
and eval(...)
expressions.