Skip to content
This repository was archived by the owner on May 24, 2026. It is now read-only.
This repository was archived by the owner on May 24, 2026. It is now read-only.

Users can open dimensionally incompatible matrix and vector #17

@hellmrf

Description

@hellmrf

Using the GUI, the user can open a matrix and a vector that are dimensionally incompatible. For example,

Details
GAHandler.py:107 on_GA_run_button_clicked() DEBUG  Ok, I'll call RunCalculations.runGA().
GAHandler.py:112 on_GA_run_button_clicked() DEBUG  Started PID = 176209
GAHandler.py:118 call_runner() DEBUG  Calling
filter.py:121 filter_matrix() INFO  Dimensions of the original matrix
filter.py:122 filter_matrix() INFO  (67, 1875)
filter.py:128 filter_matrix() INFO  Dimensions of the matrix after variance cut
filter.py:129 filter_matrix() INFO  (67, 539)
/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/site-packages/sklearn/preprocessing/_data.py:194: UserWarning: Numerical issues were encountered when centering the data and might not be solved. Dataset may contain too large values. You may need to prescale your features.
  warnings.warn("Numerical issues were encountered "
Process Process-1:
Traceback (most recent call last):
  File "/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/home/helitonmrf/Projects/QSARModelingPy/GUI/GAHandler.py", line 119, in call_runner
    RunCalculations.runGA(self.ga_config)
  File "/home/helitonmrf/Projects/QSARModelingPy/GUI/runCalculations.py", line 21, in runGA
    return runGA(config)
  File "/home/helitonmrf/Projects/QSARModelingCore/qsarmodelingpy/runGa.py", line 45, in run
    dfRest = filter_matrix(
  File "/home/helitonmrf/Projects/QSARModelingCore/qsarmodelingpy/filter.py", line 132, in filter_matrix
    indCorr = correlation_cut(X.values, y, corr_cut)
  File "/home/helitonmrf/Projects/QSARModelingCore/qsarmodelingpy/filter.py", line 48, in correlation_cut
    corr = abs(np.dot(np.transpose(autoscale(X)), autoscale(y))/(len(y)-1))
  File "<__array_function__ internals>", line 5, in dot
ValueError: shapes (539,67) and (63,2) not aligned: 67 (dim 1) != 63 (dim 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: sugestãoSugestão de possíveis novos recursos ou mudanças.ui: GUIRelacionado à Interface Gráfica de Usuário (GUI)

    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