+ 1
Python is high or something
I'm doing the Decision Tree project in the ML course and it's giving me a stupid error. You know what else is stupid? I can't post images or link posts with images in these questions. I made a post on my profile with the image and the caption "ok wtf?"
3 Respostas
+ 1
Yea I’m pretty sure that’s your problem, roughly created:
import numpy as np
A = [1, 2, 3]
print(np.array(A).sum() / np.array(A).sum())
Produces no error, however remove the parenthesis after sum and there’s your error 👍 (obviously you can pass in parameters if needed)
+ 1
Right it is a function I forgot
0
Aiden, if your struggling to post links can you take a photo of your code (around line 12).
However isn’t sum a function, shouldn’t there be parenthesis?