You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey Sathvik,
Thank you for this code! I was trying to follow it and apply it to some data I have, but I stumbled upon one error I receive. When running the line basicmodel2 = basicmodel2.fit(basictrain2, train["Label"]) I receive the error:
TypeError: A sparse matrix was passed, but dense data is required. Use X.toarray() to convert to a dense numpy array.
I'm using Python 3. Could you please help me to overcome this? Thank you!
The text was updated successfully, but these errors were encountered:
Hey Sathvik,
Thank you for this code! I was trying to follow it and apply it to some data I have, but I stumbled upon one error I receive. When running the line
basicmodel2 = basicmodel2.fit(basictrain2, train["Label"])
I receive the error:I'm using Python 3. Could you please help me to overcome this? Thank you!
The text was updated successfully, but these errors were encountered: