as_task_regr function

Convert to a Regression Task