mirror of
https://github.com/Doctorado-ML/mufs.git
synced 2025-08-15 07:35:52 +00:00
Add constant features treatment
This commit is contained in:
@@ -172,6 +172,10 @@ class MUFS:
|
||||
id_selected = idx
|
||||
merit = merit_new
|
||||
candidates.pop()
|
||||
if id_selected is None:
|
||||
# No more features to add all merits are nan because of
|
||||
# constant features
|
||||
break
|
||||
candidates.append(feature_order[id_selected])
|
||||
self._scores.append(merit)
|
||||
del feature_order[id_selected]
|
||||
|
Reference in New Issue
Block a user