IBM Support

XGBoost Model refers to undefined field "fieldname".

Troubleshooting


Problem

Building an XGBoost model nugget having for example 7 fields including a Target field "fieldname" selected in the Var File source node. 
Produce XGBoost nugget and within that nugget Preview Table renders results.
Copy the XGBoost nugget above and use in copy of the same branch.  However filter 'fieldname' in the Var File source node. 
Within XGBoost nugget Preview Table will produce the error.

Symptom

XGBoost Model refers to undefined field "fieldname".

Cause

There issue is partially cause by XGBoost UI handling and will be address in versions after 18.2.2. 

Resolving The Problem

An attempt to work around.
The failing steps mentioned above involve setting the Target in the XGBoost Model Node causing preview from the nugget to fail.
Whereas if setting Target within an instantiated Type Node prior to the XGBoost Model Node a preview of the the nugget will succeed.
Stream nodes  Var Source -> Type -> XGBoost
When scoring, modeler will check the model's required fields(the field whose role is input or both) first. In this case, the XGBoost model's required fields is [fieldname, V1, V2, V3, V4, V5, V6], but when scoring, the input fields is [V1, V2, V3, V4, V5, V6], so it reports the error :"XGBoost Modeler refers to undefined field 'Fieldname'.".
If the Target is set in Type node, the input fields for XGBoost is [V1, V2, V3, V4, V5, V6], it is consistence with the model's required fields, so it can be previewed successfully on Modeler.

NOTE:  Be aware that: according to Python node's design, the fields used to build model should be the same with that used to do scoring. So as of Modeler 18.2.2, the workaround method(set target in Type) will also not work, it will report the error: "Incorrect number of fields detected in the server data model." This is FAD.

Document Location

Worldwide

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS3RA7","label":"IBM SPSS Modeler"},"ARM Category":[{"code":"a8m50000000L2HaAAK","label":"Modeler->Known defects"}],"ARM Case Number":"TS004589027","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
27 January 2021

UID

ibm16409316