Skip to content

Data Mutation by Local Predictors #303

@charleslparker

Description

@charleslparker

This is more of a question, perhaps, than an issue, but when I passed some data through a local predictor, I was surprised to see that it was different on the other side:

In [22]: local = Anomaly({'object': jt, 'resource': jt['resource']})            

In [23]: instance = {'emp_length': None, 'fake_1': None, 'fake_2': 0}           

In [24]: local.anomaly_score(instance)                                          
Out[24]: 0.9481449853957093

In [25]: instance                                                               
Out[25]: {'fake_2': 0}

There might be a good reason for this, but it was a bit jarring for me, as I was hoping to do something with those None values after prediction. So just adding a discussion here for others that may come along with the same issue, or to request a fix if this is unintentional.

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