Sometimes developers show the stack trace with code. For example:
Traceback (most recent call last):
File "C:/Users/Tucker Siegel/Desktop/Machines/Test.py", line 156, in <module>
predictions = reg.predict(test)
File "C:\Python27\lib\site-packages\sklearn\linear_model\base.py", line 200, in predict
return self._decision_function(X)
File "C:\Python27\lib\site-packages\sklearn\linear_model\base.py", line 183, in _decision_function
X = check_array(X, accept_sparse=['csr', 'csc', 'coo'])
File "C:\Python27\lib\site-packages\sklearn\utils\validation.py", line 407, in check_array
context))
ValueError: Found array with 0 sample(s) (shape=(0, 262)) while a minimum of 1 is required.
The interpreter shows lines which are invisible in a question.
And sometimes it's handsome to have a button to copy the code fast to try it.
Dear members, do you think it can be appropriate or not?