Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Total samples in our dataset is: {}".format(X.shape[0]))
- def compute_cost(X, y, params):
- n_samples = len(y)
- h = X @ params
- return (1 / (2 * n_samples)) * np.sum((h - y) ** 2)
- ************* Module lin_reg_another_implementation
- lin_reg_another_implementation.py:22:0: W0312: Found indentation with tabs instead of spaces (mixed-indentation)
- lin_reg_another_implementation.py:23:0: W0312: Found indentation with tabs instead of spaces (mixed-indentation)
- lin_reg_another_implementation.py:24:0: W0312: Found indentation with tabs instead of spaces (mixed-indentation)
- lin_reg_another_implementation.py:29:0: W0312: Found indentation with tabs instead of spaces (mixed-indentation)
- lin_reg_another_implementation.py:30:0: W0312: Found indentation with tabs instead of spaces (mixed-indentation)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement