-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Deserialization of 'monotone_constraints' from JSON Representation of MOJO Details Does Not Work #7849
Comments
Marek Novotny commented: cc [~accountid:557058:04659f86-fbfe-4d01-90c9-146c34df6ee6] [~accountid:5a32df017dcf343865c26fa5] [~accountid:5bd82be4216ccf49622e5137] |
Jan Sterba commented: please provide steps to reproduce and what is the desired output, I dont understand whats wrong here |
Marek Novotny commented: [~accountid:5bd82be4216ccf49622e5137] The actual value of {{monotone_constraints}} in JSON representation is: but it’s deserialized as {{null}}. I’ve loaded the h2o mojo model via this h2o API: {{import hex.genmodel.{ModelMojoReader, MojoModel, MojoReaderBackendFactory}}} and i would expect some non-null object as a result of this expression: Do you want me also to provide the mojo with {{monotone_constraints}} set? Do you want to know more details? |
Jan Sterba commented: thanks, now I know what is the problem |
JIRA Issue Migration Info Jira Issue: PUBDEV-7793 Linked PRs from JIRA Attachments From Jira Attachment Name: gbm.json Attachment Name: Screen Shot 2020-09-23 at 17.32.25.png |
JSON model details:
{{{}}
{{"__meta": {}}
{{"schema_version": 3,}}
{{"schema_name": "ModelParameterSchemaV3",}}
{{"schema_type": "Iced"}}
{{},}}
{{"name": "monotone_constraints",}}
{{"label": "monotone_constraints",}}
{{"help": "A mapping representing monotonic constraints. Use +1 to enforce an increasing constraint and -1 to specify a decreasing constraint.",}}
{{"required": false,}}
{{"type": "KeyValue[]",}}
{{"default_value": null,}}
{{"actual_value": [}}
{{{}}
{{"__meta": {}}
{{"schema_version": 3,}}
{{"schema_name": "KeyValueV3",}}
{{"schema_type": "KeyValue"}}
{{},}}
{{"key": "AGE",}}
{{"value": 1}}
{{},}}
{{{}}
{{"__meta": {}}
{{"schema_version": 3,}}
{{"schema_name": "KeyValueV3",}}
{{"schema_type": "KeyValue"}}
{{},}}
{{"key": "PSA",}}
{{"value": -1}}
{{}}}
{{],}}
{{"input_value": [}}
{{{}}
{{"__meta": {}}
{{"schema_version": 3,}}
{{"schema_name": "KeyValueV3",}}
{{"schema_type": "KeyValue"}}
{{},}}
{{"key": "AGE",}}
{{"value": 1}}
{{},}}
{{{}}
{{"__meta": {}}
{{"schema_version": 3,}}
{{"schema_name": "KeyValueV3",}}
{{"schema_type": "KeyValue"}}
{{},}}
{{"key": "PSA",}}
{{"value": -1}}
{{}}}
{{],}}
{{"level": "secondary",}}
{{"values": [],}}
{{"is_member_of_frames": [],}}
{{"is_mutually_exclusive_with": [],}}
{{"gridable": false}}
{{},}}
see the attached screenshot.
The text was updated successfully, but these errors were encountered: