Skip to content

Unable to apply SFS to a sklearn-wrapped Keras classifier neuralnet #777

Answered by rasbt
leowang396 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @shengdiWang ,

I was trying to reproduce your Iris example but can't get it to reproduce your error because of a different error:

logs---------------------------------------------------------------------------
UnboundLocalError                         Traceback (most recent call last)
<ipython-input-15-e0bffb350382> in <module>
     42 
     43 # Apply SFS to identify best feature subset
---> 44 sffs = sffs.fit(iris_train,
     45                 iris_test)

...


    110     # Running inside `run_distribute_coordinator` already.

~/miniconda3/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rasbt
Comment options

rasbt Feb 9, 2021
Maintainer

@leowang396
Comment options

@rasbt
Comment options

Answer selected by rasbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #771 on February 08, 2021 15:37.