Skip to content

Honest trees not compatible with BEST_FIRST_GLOBAL #214

@PSSF23

Description

@PSSF23

I encountered the following error:

Traceback (most recent call last):
  File "/home/hao/ydf/real_honest_ydf.py", line 169, in <module>
    model = learner.train(X_t)
  File "/home/hao/miniconda3/envs/skt/lib/python3.9/site-packages/ydf/learner/specialized_learners.py", line 2947, in train
    return super().train(ds=ds, valid=valid, verbose=verbose)
  File "/home/hao/miniconda3/envs/skt/lib/python3.9/site-packages/ydf/learner/generic_learner.py", line 345, in train
    return self._train_imp(ds, valid, verbose)
  File "/home/hao/miniconda3/envs/skt/lib/python3.9/site-packages/ydf/learner/generic_learner.py", line 501, in _train_imp
    return self._train_from_dataset(ds, valid)
  File "/home/hao/miniconda3/envs/skt/lib/python3.9/site-packages/ydf/learner/generic_learner.py", line 582, in _train_from_dataset
    cc_model = learner.Train(**train_args)
ValueError: INVALID_ARGUMENT: honest trees are not (yet) supported with growing_strategy_best_first_global strategy.

It seems that honesty is not compatible with growing_strategy="BEST_FIRST_GLOBAL"? I don't understand this limitation, as honesty doesn't have anything to do with how the nodes are split.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions