【问题标题】:Elliptic Envelope outlier detection椭圆包络异常值检测
【发布时间】:2018-12-05 07:03:38
【问题描述】:

我想通过使用 sklearn 中的椭圆包络来捕捉 16 x 224 数组中的异常值。问题是当我预测数组时,它给了我不同的维度:

ell = EllipticEnvelope()
ell.fit(c)
b = ell.predict(c)

如我之前所说,C 是 16 x 224,而“b”的大小是 16 x 1。

【问题讨论】:

    标签: python machine-learning scikit-learn deep-learning outliers


    【解决方案1】:

    这是预期的行为。

    引用docs,predict 方法返回:

    is_outliers : 数组,形状 = (n_samples, ),dtype = bool

    对于每个观察,告诉它是否应该被视为 根据拟合模型的异常值。

    请注意,异常值检测的目标是识别潜在异常值的样本(行)。

    【讨论】:

      猜你喜欢
      • 2018-10-04
      • 2018-05-25
      • 2014-12-23
      • 1970-01-01
      • 2020-08-11
      • 2017-07-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-01
      相关资源
      最近更新 更多