Skip to content

Commit 41815cb

Browse files
authored
Merge pull request #23 from IBM/dev
Fix
2 parents c2a76da + ef8078b commit 41815cb

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818

1919
Change log for the codebase. Initialised from the developments following version `V0.11.3`
2020

21+
## [v1.1.1] - 2025-03-04
22+
23+
### Fixed
24+
25+
- Bug fixed: type issue in feature selection
26+
2127
## [V1.1.0] - 2025-01-30
2228

2329
### Added
@@ -168,6 +174,7 @@ Change log for the codebase. Initialised from the developments following version
168174
- Detect secrets added
169175
- Upgraded python base image from `3.9.14` to `3.9.18` for additional security fixes
170176

177+
[V1.1.1]: https://github.com/IBM/AutoXAI4Omics/releases/tag/V1.1.1
171178
[V1.1.0]: https://github.com/IBM/AutoXAI4Omics/releases/tag/V1.1.0
172179
[V1.0.1]: https://github.com/IBM/AutoXAI4Omics/releases/tag/V1.0.1
173180
[V1.0.0]: https://github.com/IBM/AutoXAI4Omics/releases/tag/V1.0.0

_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414

1515
# current version of the tool
16-
__version__ = "1.1.0"
16+
__version__ = "1.1.1"

src/utils/ml/feature_selection.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,10 @@ def feat_selection(
291291
union = Pipeline([("variance", VT), ("featureSeletor", SKB)])
292292

293293
# fetch the name of remaining features after the FS pipeline
294-
feature_names_out = features_names[VT.get_support(indices=True)][
295-
SKB.get_support(indices=True)
296-
]
294+
ind = VT.get_support(indices=True).tolist()
295+
feature_names_out = [features_names[x] for x in ind]
296+
297+
ind2 = SKB.get_support(indices=True).tolist()
298+
feature_names_out = [feature_names_out[x] for x in ind2]
297299

298300
return x_trans, feature_names_out, union

0 commit comments

Comments
 (0)