Skip to content

Error during plot the decision bounndry on a traning and test sets... #64

Answered by mrdbourke
Parth-107 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Parth,

Thank you for sharing your code.

What have you tried so far?

It looks like there's a dimensional error for c.

You might want to make sure you're using the right x value for this line:

x_min, x_max = X[:, 0].min() - 0.1, X[:, 0].max() + 0.1
y_min, y_max = X[:, 1].min() - 0.1, X[:, 1].max() + 0.1

Think about what the input to the function is, x or X (lowercase or capital).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Parth-107
Comment options

@mrdbourke
Comment options

Answer selected by mrdbourke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants