ALiPy icon indicating copy to clipboard operation
ALiPy copied to clipboard

regression

Open zt823793279 opened this issue 5 years ago • 4 comments

Hello, how can I use its regression task? When I give the toolbox a regressive label, it always produces the following errors ValueError: Unknown label type: (array([339.731, 340.059, 340.404, ..., 421.542, 423.743, 423.307]),)

zt823793279 avatar Aug 20 '20 02:08 zt823793279

I think that the closest you can get to doing regression for traditionally classification based tasks is by binning the range of continuous values that you have into uniform size intervals, and have your model classify into bins. Refer to the response on this stackexchange answer https://datascience.stackexchange.com/a/32486

thomasjhuang avatar Sep 21 '20 22:09 thomasjhuang

This is a very good question...I have been looking for toolkits regarding "active regression", but apparently most active learning techniques are designed only for classification tasks.

If you spend a little time looking at the logic of uncertainty sampling, it calculates some prior probability based on "class labels". They are nominal data instead of continuous.

AndyWangSFU avatar Apr 17 '21 01:04 AndyWangSFU

So this package cannot be used in regression task?

Yuxing0926 avatar May 04 '23 09:05 Yuxing0926

Hi, ALiPy does not support regression tasks in this version. Sorry for the inconvenience.

tangypnuaa avatar May 08 '23 11:05 tangypnuaa