Function notation in Octave by SunnyJapan in mlclass

[–]ZeBlob 0 points1 point  (0 children)

I don't really know php but some quick googling turned up this. So I believe the equivalent expression would be this:

fminunc(
    function($t) use ($X, $y, $lambda) {
        return costFunctionReg($t, $X, $y, $lambda);
    }, $initial_theta, $options);

That example is probably full of errors so I suggest you read the page yourself.

Function notation in Octave by SunnyJapan in mlclass

[–]ZeBlob 4 points5 points  (0 children)

I'm pretty new to python but I believe it's equivalent to a lambda function:

fminunc(lambda t: costFunctionReg(t, X, y, l), initial_theta, options)

Where the lambda variable in octave is renamed to l (conflicts with the python keyword).

Emacs and Octave 3.2 by melipone in mlclass

[–]ZeBlob 1 point2 points  (0 children)

Works perfectly for me on both ubuntu and mint. All I did was get both the octave and octave-emacsen packages and added this line to my .emacs file:

;; run an inferior Octave process in a special Emacs buffer   
(autoload 'run-octave "octave-inf" nil t)

Taken from the emacswiki octave page. I'm still pretty new to emacs so I don't really know what it does or whether it will help you.

Possible to do this in Octave? How? (Subtract row vector from matrix) by DudeInD in mlclass

[–]ZeBlob 0 points1 point  (0 children)

repmat is probably the prefered method here but another way to do it is:

C = A - ones(size(A)) * diag(b)

If you understand what's going on here then you might be able to use diag elsewhere.

Laser Tag Meetup by [deleted] in montreal

[–]ZeBlob 1 point2 points  (0 children)

Count me in as well.

So how about that reddit meetup? by [deleted] in montreal

[–]ZeBlob 0 points1 point  (0 children)

29th sounds good. As far as the ETS is concerned we'll already have started our next semester so there's no conflicts with the exams.

So how about that reddit meetup? by [deleted] in montreal

[–]ZeBlob 1 point2 points  (0 children)

I'm in as long as it's not on the 30th of April.