Simply turns the desired_features arg to the __init__ of DensityFeatures and GlobalSymmetry into an instance attribute, which prevents a crash when calling __repr__ for the class (something that happens within featurization progress bars). This is because __repr__ is being inherited from the underlying sklearn class that provides introspection into the __init__ arguments of the featurizer.
This PR fixes it in the places I have run into personally, but more may be lurking around. One general fix would be to simply define a custom __repr__ for the base matminer featurizer to avoid using the sklearn one.
Summary
Closes #864.
Simply turns the
desired_features
arg to the__init__
ofDensityFeatures
andGlobalSymmetry
into an instance attribute, which prevents a crash when calling__repr__
for the class (something that happens within featurization progress bars). This is because__repr__
is being inherited from the underlyingsklearn
class that provides introspection into the__init__
arguments of the featurizer.This PR fixes it in the places I have run into personally, but more may be lurking around. One general fix would be to simply define a custom
__repr__
for the basematminer
featurizer to avoid using thesklearn
one.