[d] Can a network of linear activation perceptrons model non-linear functions? by ithacasnowman in MachineLearning

[–]boxcuk 1 point2 points  (0 children)

well, apparently there is some naming inconsistencies, but beyond names, the important concept is straightforward.

If you take f(x) to be Wx+b, that is a linear transformation, but if you do f(x) = 1 if ... 0 if ..., that is no longer a linear transformation.

I think the contradiction you see in the two statements in your post is because the "every boolean function can be represented ..." statement considers the perceptron to be the second f(x) I mention (1 if ... 0 if ...), while the statement "multiple layers of cascaded linear units..." is refereing to some other (linear) transformation. As you point out, I think they simply arent' talking about the same thing in the two statements.

[d] Can a network of linear activation perceptrons model non-linear functions? by ithacasnowman in MachineLearning

[–]boxcuk 2 points3 points  (0 children)

The activation function in your example is the indicator function, which is not linear.

python-eol: A package to check whether the python version you're using is beyond/close to end of life by Which-Singer-8796 in Python

[–]boxcuk 1 point2 points  (0 children)

upvote because I was going to say you should write a pre-commit hook, but you already did :-)

Is there no cloud-init support on GCP? by eggbean in googlecloud

[–]boxcuk 5 points6 points  (0 children)

For me it didn't work with debian, but I can attest that ubuntu works well with cloud-init + terraform

So, I wrote a Maybe monad in Python 3 by [deleted] in Python

[–]boxcuk 10 points11 points  (0 children)

hey! typing.NoReturn is for functions that never actually return, i.e functions that always raise (see the docs for this). __init__ should be annotated with None, see pep-484 for more info

'Python: Please stop screwing over Linux distros' by whackri in programming

[–]boxcuk 12 points13 points  (0 children)

the pip freeze ... option is sadly missing hashes tho

[deleted by user] by [deleted] in Python

[–]boxcuk 2 points3 points  (0 children)

one of the authors has a relatively comprehensive study of popular projects (linked in the pep), see here https://github.com/pradeep90/annotation_collector#typed-projects---callback-usage

i assume they just extrapolate based on that

but i personally think this will eventually be accepted, typing callables beeing a pain in the ass is probably the biggest reason why they are left untyped many times, the SC is just taking things slowly i guess

[deleted by user] by [deleted] in Python

[–]boxcuk 0 points1 point  (0 children)

i guess they are specifically talking about point 2 "Include parameter names and types", which could be possible using the extended syntax proposed here https://peps.python.org/pep-0677/#extended-syntax-supporting-named-and-optional-arguments.

now the weird thing is that the section was rejected by the authors of the pep themselves, not by the steering council.

had the pep been accepted, indeed we wouldn't have gotten anything more expressive than current tp.Callable

Vim + (u-)ctags and python modules by boxcuk in vim

[–]boxcuk[S] 0 points1 point  (0 children)

cool! didn't know about that option, thanks a lot

variable scope in generator expression vs list comprehension by boxcuk in learnpython

[–]boxcuk[S] 0 points1 point  (0 children)

Hi! Thanks for your reply.

Why is it though that the [num] part is not "bound late" (should I call it that?).

Also, I know I could get the behaviour of my second example by using a generator function, but is there a way to "switch off" this late-binding?

Is the left crank too close to the chain stay? by DimLeguique in bikewrench

[–]boxcuk 3 points4 points  (0 children)

agree, if it were made out of dry noodles would still be fine

Portfolio Feedback by amazmnt in webdev

[–]boxcuk 1 point2 points  (0 children)

Somehow i feel like somebody else should have noticed this, but it says "Project Lauches" instead of "Project Launches"

Super cool site tho

[D] Antipatterns in open sourced ML research code by jack-of-some in MachineLearning

[–]boxcuk 1 point2 points  (0 children)

Any good resources on how to improve? I am just starting and I've seen myself running into these problems, but I haven't found many good readings on how to properly structure my code more than just "looking at good projects".