From 3bb302437d473c79471aa99be8b14e9fb0f75c56 Mon Sep 17 00:00:00 2001 From: Joel Lowery Date: Sun, 12 Mar 2017 03:40:56 -0500 Subject: [PATCH] Fixed ordering of features --- ex1/ex1_multi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ex1/ex1_multi.py b/ex1/ex1_multi.py index 8c6089a..873a55e 100644 --- a/ex1/ex1_multi.py +++ b/ex1/ex1_multi.py @@ -80,7 +80,7 @@ print(theta) # Estimate the price of a 1650 sq-ft, 3 br house -price = np.array([1, 3, 1650]).dot(theta) +price = np.array([1, 1650, 3]).dot(theta) print('Predicted price of a 1650 sq-ft, 3 br house') print('(using gradient descent): ') @@ -119,7 +119,7 @@ print(' %s \n' % theta) # Estimate the price of a 1650 sq-ft, 3 br house -price = np.array([1, 3, 1650]).dot(theta) +price = np.array([1, 1650, 3]).dot(theta) # ============================================================