Skip to content

interaction_constraints with more than 10^5 parameters fail. #5179

@palVJ

Description

@palVJ

Using xgb.train with more than 10^5 parameters and using the parameter interaction_constraints, I get the following error:

Error in xgb.iter.update(bst$handle, dtrain, iteration - 1, obj) :
[09:54:20] ./dmlc-core/include/dmlc/././json.h:788: Check failed: ch == ',' (101 vs. ,) : Error at Line 0, around ^+05,100001,100002,100003,100004,100005,100006,100007,100008,100, JSON array expect ']' or ','. Get 'e' instead

I suspect 100001, 100002 and so on represent feature indices with values more than 100 000.
I tried with feature indices with values less than 100 000, and it worked.

Am I right, and if so, can this be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions