'Checking performance on training data performing Logistic Regression model

[I have been trying to figure out how to solve this problem, but I'm getting the error: AttributeError: 'list' object has no attribute 'shape'



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source