andremun / pyInstanceSpace

A Python version of the InstanceSpace analysis toolkit
1 stars 0 forks source link

Prelim raise err when doing multi run #205

Closed Hazel-Yi closed 2 weeks ago

Hazel-Yi commented 1 month ago

Instruction of mulitrun add following script in integration_demo.py

Screenshot 2024-10-16 at 20 14 15

Err raised in prelim

Screenshot 2024-10-16 at 20 10 59
KIAND-glitch commented 3 weeks ago

The issue was caused due to the stats.boxcox_llf function returning a float, but the code was incorrectly treating it as an array by attempting to subscript it with [0], resulting in a 'float' object is not subscriptable error

KIAND-glitch commented 3 weeks ago

after fixing this issue, I am seeing another issue, which is related with Sifted @CZLam7 @dhjang03

-> Selecting features based on correlation with performance. Traceback (most recent call last): File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/integration_demo.py", line 46, in instance_space.build() File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/matilda/instance_space.py", line 214, in build self._final_output = self._runner.run_all(inputs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/matilda/stage_runner.py", line 200, in run_all self.run_stage(stage) File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/matilda/stage_runner.py", line 150, in run_stage outputs = stage._run(inputs) # noqa: SLF001 ^^^^^^^^^^^^^^^^^^ File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/matilda/stages/sifted.py", line 300, in _run return SiftedStage.sifted( ^^^^^^^^^^^^^^^^^^^ File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/matilda/stages/sifted.py", line 356, in sifted return sifted._sifted( # noqa: SLF001 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/matilda/stages/sifted.py", line 435, in _sifted raise NotEnoughFeatureError( matilda.stages.sifted.NotEnoughFeatureError: -> There is only 1 feature. Stopping space construction.

KIAND-glitch commented 3 weeks ago

Bug fix: https://github.com/2024-SWN90017-18/MT-Updating-Matilda/pull/214

dhjang03 commented 3 weeks ago

after fixing this issue, I am seeing another issue, which is related with Sifted

-> Selecting features based on correlation with performance. Traceback (most recent call last): File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/integration_demo.py", line 46, in instance_space.build() File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/matilda/instance_space.py", line 214, in build self._final_output = self._runner.run_all(inputs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/matilda/stage_runner.py", line 200, in run_all self.run_stage(stage) File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/matilda/stage_runner.py", line 150, in run_stage outputs = stage._run(inputs) # noqa: SLF001 ^^^^^^^^^^^^^^^^^^ File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/matilda/stages/sifted.py", line 300, in _run return SiftedStage.sifted( ^^^^^^^^^^^^^^^^^^^ File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/matilda/stages/sifted.py", line 356, in sifted return sifted._sifted( # noqa: SLF001 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/kiandsouza/Desktop/Danger/2024/Adv Software Proj/MT-Updating-Matilda/matilda/stages/sifted.py", line 435, in _sifted raise NotEnoughFeatureError( matilda.stages.sifted.NotEnoughFeatureError: -> There is only 1 feature. Stopping space construction.

Sifted raise NotEnoughFeatureError if there is only one feature left after filtering the features during its process.

Hazel-Yi commented 2 weeks ago

Bug fix: #214

Error raised in Prelim is fixed