This can happen due to partitioning, especially when using spatial partitioning (partition_kmeans()).
The solution (removing the problematic factor levels from the test data) was adapted from https://stackoverflow.com/a/39495480/4185785 and implemented in c399512e86304c1143238f0a8df76d6bc5dfbeea. err_fun() was updated in ba8587ec2b78b667fca776c262c506689ee66f13.
This can happen due to partitioning, especially when using spatial partitioning (
partition_kmeans()
).The solution (removing the problematic factor levels from the test data) was adapted from https://stackoverflow.com/a/39495480/4185785 and implemented in c399512e86304c1143238f0a8df76d6bc5dfbeea.
err_fun()
was updated in ba8587ec2b78b667fca776c262c506689ee66f13.