Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gradient Descent CCPP #1

Open
rah07 opened this issue May 27, 2020 · 0 comments
Open

gradient Descent CCPP #1

rah07 opened this issue May 27, 2020 · 0 comments

Comments

@rah07
Copy link

rah07 commented May 27, 2020

sir, please tell why we add-ones column in the dataset .please tell me a reason

this is your code
------# ## Add row of ones to testing data
train_ones = np.ones(X_train.shape[0]).reshape(-1, 1)
X_train = np.append(X_train, train_ones, axis=1)

Add row of ones to training data

test_ones = np.ones(X_test.shape[0]).reshape(-1, 1)
X_test = np.append(X_test, test_ones, axis=1)

and another question is that how we recognize which feature affects the cost and how?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant