Skip to content

json config files not using strings get hard to understand execption #74

Closed
@behrica

Description

@behrica

a config file like:

{
    "config": {
        "components": [
            {
                "name": "trainer",
                "type": "org.tribuo.classification.dtree.CARTClassificationTrainer",
                "properties": {
                    "maxDepth": 6,
                    "seed": "12345"
                }
            }
        ]
    }
}

throws an exception like:

Cannot invoke "String.hashCode()" because "this.value" is null

because maxDepth is not given as a String, but as a number.
which is not very helpfull for a user to find an error in this config file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions