Skip to content

Inconsistent results for data with Nulls #10

@cnll0075

Description

@cnll0075

Hi,

when I evaluate the model result in python it got different result from node.js in production. It turns out it is the problem with handling Null values. We used the API you mentioned: matrix(data, row, col, missing), and there is still about ~10% differences in terms of scores.

Could you please tell me what could the problem be, or give an example or how to deal with it? Right now we are doing something like this in production:

featureValues.push(item[col.name] || NaN)
})
})
featureValues = new Float32Array(featureValues)

let inputMatrix = new xgboost.matrix(featureValues,
  row,
  column, NaN)

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