Hacker News new | past | comments | ask | show | jobs | submit login

    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)



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: