Closed ppalmes closed 2 weeks ago
cc @sethaxen since #879 is at issue here.
yes. i have to copy the old code which uses getmember so that my fit/transform call to sklearn works. i’m not sure why python returns key error. it seems the dir command has bogus return of fit/transform such that calling python object returns error because it doesn’t support it.
Could you provide a minimal example of a Python class for which dir
fails but getmember
works? See for example the test class added in #879 for which dir
works but getmember
fails.
propertynames
insklearn
to check forfit or transform vs predict
. once you call one them, it throws akey error
exception because whilepropertynames
sayfit
ortransform/predict
is available, actually calling one of them breaks.getmember
is a more stable call instead ofdir
which list methods which may not be callable.