help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: predict


From: pathematica
Subject: Re: predict
Date: Wed, 16 Nov 2011 03:25:50 -0800 (PST)

Denoting the matrix that follows from applying your custom sigmoid function
to the matrix product (suitably debugged for conformity) by A, I think the
following will achieve your goal (brackets not required; included for
clarity):

p = (A >= 0.5);

so, your custom predict function (with appropriate transpositions to achieve
conformity for the matrix product in the sigmoid function) might be written
in one line as (outer brackets included for clarity):

p = ( sigmoid(theta' * x') >= 0.5 );


--
View this message in context: 
http://octave.1599824.n4.nabble.com/predict-tp4075206p4076031.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]