corels / pycorels

Public home of pycorels, the python binding to CORELS
GNU General Public License v3.0
74 stars 14 forks source link

Checking for presence of features in fit() #16

Open michael-camilleri opened 4 years ago

michael-camilleri commented 4 years ago

When checking for the present of the features in the fit method, this raises an error unless the type is a list (for example using a numpy array). This is because the check for its presence is being done by way of an if features: shouldn't this be if features is not None for a more robust implementation?