+ 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 Answers
+ 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?