Skip to content
Open navbar menu
Features
Blog
Pricing
Teams Pro
Careers
Shop
Sign Up
Log In
Profile icon
JIAN JIAN
@lij12
Follow
Copy profile link
0 followers
0 following
Repls
Community
lij12
shared a Post
•
4 years ago
testt
def findClosestCentres(X,mu): finds the centre in mu closest to each point in X (k, n) = mu.shape # k is number of centres (m, n) = X.shape # m
Python
lij12
shared a Post
•
4 years ago
test
def plotData(X,y): plots the data points with o for the positive examples and x for the negative examples. output is saved to file graph.png fig, a
Python