[Top][All Lists]

[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

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:
Sent from the Octave - General mailing list archive at

reply via email to

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