Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing derived field declaration #56

Closed
alibek-galiyev opened this issue Dec 7, 2022 · 2 comments
Closed

Missing derived field declaration #56

alibek-galiyev opened this issue Dec 7, 2022 · 2 comments

Comments

@alibek-galiyev
Copy link

I have PMML with CatBoost model. There're some numerical and categorical fields. All mappings in categorical fields are mapped in PMML. But when I'm trying to get a score, I get the message:

{ "message": "Field \"employment_type_id_mapped\" is not defined" }

I'm sure, I'm sending all fields correctly, including employment_type_id.

@vruusmann
Copy link
Member

I have PMML with CatBoost model.

What software did you use for producing your PMML document? The JPMML family of converters doesn't support CatBoost, so it must be some third-party software.

I'm sending all fields correctly, including employment_type_id.

Yes, you may be sending all the primary input values correctly, but your PMML document contains invalid/missing field references.

Here, your PMML document seems to contain the following transformation:

employment_type_id_mapped = f(employment_type_id)

If you open it in a text editor, then can you find a DerivedField element whose name is employment_type_id_mapped?

@vruusmann
Copy link
Member

Closing as "invalid", because the end users is attempting to deploy an invalid PMML document here (invalid/missing derived field declarations).

@vruusmann vruusmann changed the title Derived field Missing derived field declaration Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants