Skip to content

HighDensityRegionAlgorithm/computeOutlierIndices should return a list, not an np.array #8

@mbaudin47

Description

@mbaudin47

The current output is an array, as a result of the where function. This is not a basic Python object: a list should be sufficient. An OpenTURNS object might be prefered, but I do not see which one.

print("Outliers at alpha=%.4f" % (mydp.outlierAlpha))

outlierIndices = mydp.computeOutlierIndices()

outlierIndices

Outliers at alpha=0.9000

array([ 31,  60,  84, 105, 116, 121, 150, 151, 200, 207, 215, 218, 220,
       248, 282, 284, 291, 359, 361, 378, 382, 404, 412, 418, 425, 426,
       433, 449, 450, 457, 461, 466, 474, 490, 498, 567, 587, 616, 634,
       638, 652, 665, 687, 714, 729, 730, 748, 751, 794, 876, 894, 896,
       903, 925, 928, 963, 968, 987], dtype=int64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions