How to solve AttributeError: type object 'ModelBase' has no attribute 'metalearner'
Hi, I have met the problem of AttributeError: type object 'ModelBase' has no attribute 'metalearner'. I tried to search the way and it just said that my h2o is older version. However, I have up to date and still cannot solve this problem.
The error console is below:
AttributeError Traceback (most recent call last)
11 # Show detail information of best model
---> 12 print(aml.leader.metalearner)
/usr/local/lib/python3.8/dist-packages/h2o/utils/metaclass.py in getattr(self, name)
343 if name in self._bci:
344 return self._bci[name]
--> 345 return getattr(new_clz, name)
347 new_clz = extend_and_replace(clz, init=init, getattr=getattr)
/usr/local/lib/python3.8/dist-packages/h2o/utils/metaclass.py in getattribute(cls, name)
388 if attr is not MetaFeature.NOT_FOUND:
389 return attr
--> 390 return type.getattribute(cls, name)
392 def setattr(cls, name, value):
AttributeError: type object 'ModelBase' has no attribute 'metalearner'
What can I do for solving this problem?
Would you be able to share your code or are you following a specific tutorial from H2O's documentation?