everpeace / ml-class-assignments Goto Github PK
View Code? Open in Web Editor NEWProgramming Exercises on http://ml-class.org
Home Page: http://github.com/everpeace/ml-class-assignments
License: MIT License
Programming Exercises on http://ml-class.org
Home Page: http://github.com/everpeace/ml-class-assignments
License: MIT License
Hello, why is the grid range defined as such?
https://github.com/everpeace/ml-class-assignments/blob/master/ex2.Logistic_Regression/mlclass-ex2/plotDecisionBoundary.m#L29-L31
J = (1/2) * sum(sum((R .* ((Theta * X')' ) - Y).^2)) + (lambda/2) * sum(sum(Theta.^2)) + (lambda/2) * sum(sum(X.^2));
X_grad = (R .* ((Theta * X')' ) - Y) * Theta + (lambda * X );
Theta_grad = (R .* ((Theta * X')' ) - Y)' * X + (lambda * Theta);
Pardon me for asking a trivial question.
Can you help me on calculating the decision boundary line. How it has been "plot_y = (-1./theta(3)).*(theta(2).*plot_x + theta(1));"
sigma3 = a3.-Y;
There is no need to use "." in subtraction
It must be -->
sigme=a3-Y
Hello! I think that line should be:
sigma3=a3-Y;
Instead of, ".-" is not supported in matlab:
Hi,
I am wondering how to derive the logic for prediction
p = sigmoid(X*theta)>=0.5;
is there any standard formula?
Guys request your help!!
Instead of using the code mentioned in code section :
p=sigmoid(X*theta)>=0.5;
which is running perfectly fine. Im using my logic :
z=sigmoid(X*theta);
if z>=0.5:
p=1;
else
p=0;
endif
The above code is not running.
Please let me know the difference and is there any error in my logic.
Should be
J = sum(sum((diff.^2).*(R==1)))/2;
in lieu of
J = sum((diff.^2)(R==1))/2;
*[cost, grad] = costFunction(initial_theta, X, y); error: costFunction: operator : nonconformant arguments (op1 is 1x100, op2 is 1x100) error: called from costFunction at line 16 column 3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.