Remove Multiple Unused Imports and Variable

This commit is contained in:
ParthS007
2018-10-18 02:58:57 +05:30
parent 765a3267fc
commit 0856a61859
22 changed files with 34 additions and 50 deletions

View File

@ -59,7 +59,6 @@ def sum_of_square_error(data_x, data_y, len_data, theta):
:param theta : contains the feature vector
:return : sum of square error computed from given feature's
"""
error = 0.0
prod = np.dot(theta, data_x.transpose())
prod -= data_y.transpose()
sum_elem = np.sum(np.square(prod))