Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
atheist98993yProgrammatic demonstration of (multiple) derivations of a matrix inverse.
Used in linear regression, various other stuff. -
atheist98993yI wrote the matrix class myself, is fairly simple/easier to understand than numpy, using pure python.
My intention is basically to write an ML course that actually teaches how/why do the stuff, rather than just going "here's some complex algebra you don't need to understand".
There are some bits where I'll probably have to just say "here's a thing that works", but that's probably just because I don't fully understand the thing.
So many mathematical constructs have equivalent engineering techniques. I think I'd have found it useful, so that's what I'm trying to write. -
atheist98993y@AvatarOfKaine a@b is python 3's matrix multiplication operator
It's square coz I'm lazy
It's writing HTML I think, but I'm using sympy for the symbol/equation representation. -
@atheist Wait. What do you mean “It’s square coz I’m lazy” lol ?
Or were you perhaps referring to the Moore-Penrose inverse ? -
atheist98993yThe Matrix class is always square at the moment. I think it'd work if it isn't, but I haven't tried, hence lazy. And yes, I'm not worrying about the pseudo inverse right now, haven't really explained when a matrix has an inverse yet, still writing. I've explained the gauss Jordan elimination inverse method, so there's the simple case of "everything is 0" or "the rows are duplicated", but that's it. But it's also pretty cool, because they're emergent properties of the code, edge cases.
-
amoux2703yThat is an excellent way to learn the basics (i did the same thing with python only).
I have been working and presently writing my automatic differentiation library to match the beautiful semantics and easy-to-use functionality of PyTorch using NumPy. I am planning to make it public after a bit of clean-up soon. I can let you know if you are interested in contributing or referencing implementations from PyTorch to NumPy. -
atheist98993y@amoux But cool! Sounds good. I've got a rough list of concepts, not really thought too far ahead at the moment.
-
nanakay63yI am studying Python and I’m getting frustrated at this thing…but I’d keep on anyways ..just frustrated but not giving up
-
Try Coq. It's for creating mathematical proofs and theorems. The meta-mathematical language.
-
atheist98993y@cmarshall10450 😅 the point is to explain math to software engineers in a way they understand, so using python to demonstrate. Learning new niche language isn't ideal.
-
amoux2703yWhat do you think? It is running on my iPad! Currently, I named the package “ego” as I couldn’t think of a name that is; short, easy to type, and looked good to the eye. I haven’t shown anyone or made it publicly available yet. But what do you think of the name “ego”?
This is just a fraction of the many functions I have implemented. -
amoux2703y@amoux Here’s a link to a colab-notebook where I quickly trained a model on fashion-mnist dataset. I used pytorch’s torchvision to download and load the dataset. Everything else is implemented using “ego.”
https://colab.research.google.com/d...
Currently writing code to write math.
What I'm saying is, I make nerds look good.
rant