3 ms·
def prepare_target(y): if hasattr(y, "values") return target.values.reshape(-1,1) else: return target.reshape(-1,1) Sho
by wodenokoto 7y ago
def prepare_target(y):
if hasattr(y, "values")
return target.values.reshape(-1,1)
else:
return target.reshape(-1,1)
Shouldn't that be
def prepare_target(y):
if hasattr(y, "values")
return y.values.reshape(-1,1)
else:
return y.reshape(-1,1)