I wrote a function to train a simple linear regression model. after running my training function I see this error: \'function\' object has no attribute \'item\'
here are