How do you capture unknown values when making predictions on h2o
data frames?
For example, when doing something like:
model.predict(frame_in)
in the h2o python api, a progress bar loads while the model is making predictions and then a series of lists are outputted detailing the unknown labels seen for each of the enum types of the model predictive features. Eg.
/home/mapr/anaconda2/lib/python2.7/site-packages/h2o/job.py:69: UserWarning:
Test/Validation dataset column 'feature1' has levels not trained on: [, <values>]
Is there any way to get this set of unknown levels as a python object? Thanks.
When working with h2o MOJO
s, there is a java method called getTotalUnknownCategoricalLevelsSeen()
, but I could not find anything like this in the h2o python
docs.