octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #52417] [octave forge] (statistics) size not m


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #52417] [octave forge] (statistics) size not match in logistic_regression docstring
Date: Sat, 6 Aug 2022 13:46:12 -0400 (EDT)

Update of bug #52417 (project octave):

                  Status:               Need Info => Patch Submitted        

    _______________________________________________________

Follow-up Comment #2:

looking at the code, when undefined beta initializes to zeros(columns(x),1) as
per the comment #0 suggestion. theta is required to have the same number of
columns as beta (line 119, they are assembled as tb = [theta; beta], which
would error otherwise. So the orientation is suggestive of needing x * beta to
avoid the error.  Confirming this, the last optional output calculates gamma,
and does so using (x * beta) + theta in line 183.

i've attached a simple gif patch making that change.



(file #53539)

    _______________________________________________________

Additional Item Attachment:

File name: doc-logistic_regression-formula-fix-bug-52417.patch Size:0 KB
   
<https://file.savannah.gnu.org/file/doc-logistic_regression-formula-fix-bug-52417.patch?file_id=53539>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?52417>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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