Open Nanthini10 opened 3 years ago
This issue has been labeled inactive-30d
due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d
if there is no activity in the next 60 days.
This issue has been labeled inactive-90d
due to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.
Describe the bug Linear and Ridge Regression check for
ncols
in fit function. https://github.com/rapidsai/cuml/blob/26408d3e3cc19926a957be98c4c27e09a2ec4b5f/python/cuml/linear_model/linear_regression.pyx#L259 https://github.com/rapidsai/cuml/blob/e86a6138db58798323942bccab4cd2ecf7dad40b/python/cuml/linear_model/ridge.pyx#L271 but other estimators including other Linear models do not do this check at a python level. This results in inconsistent error thrown at users.For Linear and Ridge, it results in a TypeError(which itself does not seem to be the right kind, probably a ValueError might make more sense). For the others, a C++ RuntimeError is generated as the check happens at a C++ level.
Steps/Code to reproduce bug
Ridge
``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last)Lasso
``` --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last)Expected behavior They should do the checks at the same place either at Python level or at C++ level and return the same message.
Environment details (please complete the following information):
docker pull rapidsai/rapidsai-core-dev-nightly:21.10-cuda11.0-devel-ubuntu18.04-py3.8