Helper functions and classes¶
A small number of functions and classes are included to help organize the data.
-
class
alchemtest.
Bunch
(**kwargs)¶ Container object for datasets
Dictionary-like object that exposes its keys as attributes.
>>> b = Bunch(a=1, b=2) >>> b['b'] 2 >>> b.b 2 >>> b.a = 3 >>> b['a'] 3 >>> b.c = 6 >>> b['c'] 6
Code taken from sklearn/utils/__init__.py version 0.19.1 under the ‘New BSD license’ https://github.com/scikit-learn/scikit-learn/blob/master/COPYING