Orange Forum • View topic - Non-finite values present in Y

Non-finite values present in Y

A place to ask questions about methods in Orange and how they are used and other general support.

Non-finite values present in Y

Postby jasonzutty » Thu Nov 14, 2013 21:39

I am trying to build a classifier and am getting the error "Non-finite values present in Y".

They type of learner I am using is an EarthLeaner:
Code: Select all
learner = Orange.regression.earth.EarthLearner()

I then get the error when I provide data in order to build the classifier:
Code: Select all
classifierEarth = learner(remainingData)

Which is caught in an exception.

What causes this? Is there an Orange function that I can use to drop data which contains Non-finite values?

Re: Non-finite values present in Y

Postby Ales » Mon Nov 18, 2013 15:39

jasonzutty wrote:Is there an Orange function that I can use to drop data which contains Non-finite values?
You can use the Table's select method with an appropriate mask:
Code: Select all
data = data.select([bool(numpy.isfinite(float(inst.getclass()))) for inst in data])


Return to Questions & Support



cron