Skip to content

Outliers detection error #8

@hellmrf

Description

@hellmrf

The detection of outliers isn't working as expected. The files and logs follow.

Log
Traceback (most recent call last):
  File "/home/helitonmrf/Projects/QSARModelingCore/qsarmodelingpy/__test.py", line 10, in <module>
    print(f"{out.rstd() = }")
  File "/home/helitonmrf/Projects/QSARModelingCore/qsarmodelingpy/outlier.py", line 34, in rstd
    pls.fit(self.X, self.y)
  File "/home/helitonmrf/Projects/QSARModelingCore/qsarmodelingpy/plsbdg.py", line 63, in fit
    self.B, self.indT = self.reprocessB(X, y)
  File "/home/helitonmrf/Projects/QSARModelingCore/qsarmodelingpy/plsbdg.py", line 79, in reprocessB
    B[:, i] = Bproc[:, i]*stdy
  File "/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/site-packages/pandas/core/generic.py", line 1935, in __array_ufunc__
    return arraylike.array_ufunc(self, ufunc, method, *inputs, **kwargs)
  File "/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/site-packages/pandas/core/arraylike.py", line 250, in array_ufunc
    result = maybe_dispatch_ufunc_to_dunder_op(self, ufunc, method, *inputs, **kwargs)
  File "pandas/_libs/ops_dispatch.pyx", line 91, in pandas._libs.ops_dispatch.maybe_dispatch_ufunc_to_dunder_op
  File "/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/site-packages/pandas/core/ops/common.py", line 65, in new_method
    return method(self, other)
  File "/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/site-packages/pandas/core/arraylike.py", line 109, in __rmul__
    return self._arith_method(other, roperator.rmul)
  File "/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/site-packages/pandas/core/series.py", line 4997, in _arith_method
    return self._construct_result(result, name=res_name)
  File "/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/site-packages/pandas/core/series.py", line 2761, in _construct_result
    out = self._constructor(result, index=self.index)
  File "/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/site-packages/pandas/core/series.py", line 348, in __init__
    raise ValueError(
ValueError: Length of passed values is 10, index implies 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    InvestigateIssues that were confirmed, but the source isn't clear. Will need investigation efforts.bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions