1

I just recently got into machine learning, and have been hitting a lot of obstacles understanding the algorithms involved in the programmings. My issue isnt with the programming, but how they're translated from math to code. ML is popular with python, and that's okay, but i dont like python, and i dont want to have to learn it to be able to use the programming language of my choice, to do the exact same thing but in a way i feel comfortable (i dont care if python is popular for math majors, because it's easier for them to understand -- it isnt for me, when nothing being done is explained thoroughly.).

I'm trying to decipher this model Algorithm logic

this is the breakdown for the algorithm model Learning Vector Quantization

this is the math i was able to decipher for this particular model Math Equation (Left is terminology and their usage, the middle in black was something to do with programming arrays... below it is the equation used in bottom left, but more elaborate, and underneath that is a image that says the same thing the algorithm is doing.. because sometimes pictures are easier to understand that words VectorArray(Value) * VectorArray(Weight) + SingleUnit(Bias) = Neuron(Node))

But then everything stops at the middle layer of the second image. How do i get the full output to give me a yes or no response? How do i enter in the variables and tables to go thru the math steps? Is my understanding correct, or am i lacking somewhere?

This user is also sharing the same algorithm but our math dont look the same How do i go from what i have, to what [s]he has?

At the end of all of these questions, i'm going to write everything into a programming script, that'll use a different language from python (and i would need to manually create resources from scratch, because no one else thinks machine learning should be done in other languages -- it seems...). I want to be able to understand the process itself, without just doing cookie-cutter actions (tools made by users for those too lazy to do the work -- which circumvent the learning/understanding process of what's going on behind scenes).

  • could you please rewrite to make it clearer, I think you can remove some information that I think isn't relevant to the main question (like your opinion with python) and explain each picture you put in there – malioboro Mar 14 '19 at 06:07
  • i dont know how to make it clearer... my opinion was added because i stated i wanted to use programming as end goal but could not find any resources that applied to what it is i wanted to do. which was not use python cause it wasnt convenient enough for me to follow along with. If popularity dictates the results i query, then i have to specify i dont want "popular" results, and that i'm seeking something against the norm... All i want to do is understand the math better, so that i can write a code that does the same thing. But if i dont understand it, i cant explain it so that others can... – user3681384 Mar 14 '19 at 07:45
  • Are you trying to understand the maths for a normal feed-forward neural network used as a binary classifier? That's what it looks like, but you barely mention those terms, and you are asking a very generic (impossible to answer) question in your title. "How to translate algorithm from logic to equation, and back?" is impossible to answer. However, if you gave a specific part of the maths or the code for a neural network, many people on this site could easily convert between the two for any specific part. – Neil Slater Mar 14 '19 at 08:05
  • I dont understand any of those terminologies, i tried to state that i am new to the technology, and that research into the subject is difficult because all resources around the subject is cluttered around python programming. If i google "Machine Learning" i get nothing but python results. If i google "Machine Learning -python" then i dont get anything that teaches me the math/concept. I went with what i was able to understand, if you can help fill in any gaps, i would be very much appreciative. It's something i would like to learn, but if i cant, then i just wont. :/ – user3681384 Mar 14 '19 at 08:08
  • OK, your first goal then is to narrow down what you want to understand and explain it *in the question* in ways that answerers have a clue on what you are asking about. Otherwise this question will go nowhere. There are 100s of ML algorithms, and many variations of neural networks. You need to understand what you want to do at a high level - at least the *name* of it, before anyone can even know what you are trying to achieve – Neil Slater Mar 14 '19 at 08:19
  • So, just to clarify, validating if the math is good or not will not be a good question to ask if i'm unable to specify the algorithm it came from? what about the linked stack question, on getting my math to look like theirs, is that also out of the scope? There are a lot of greek symbols floating around in ML math that arent clearly explained, and i'm not entirely sure how or where to fill in those gaps either. Only reason i understood sigmoid was because i deconstructed the formula above. But i got stuck when a python script i was rewriting stopped making sense to me... i wanted to keep going – user3681384 Mar 14 '19 at 08:26
  • If your math was presented more formally, it could maybe be validated of its own accord. But the photo of your workings on a whiteboard here is not really maths . . . it is just a bunch of equations and diagrams without much context (I could not verify that it matched the code you were looking at for instance, and it doesn't match the vector quantization diagram, but I suspect you have just accidentally chosen the wrong diagram here). For what it is worth, your workings do look like a correct interpretation of how a single NN layer feeds forward in order to make a prediction. – Neil Slater Mar 14 '19 at 08:35
  • I suggest you drop the images, give relevant parts of the python script - including both the part you have interpreted already and the part that you are stuck on. Please use LaTex to show your interpretation as an equation, not photos of whiteboards - you can embed LaTex using `$ $` sign e.g. `$y_i = \sigma(W_{i,1}x_1 + W_{i,2}x_2 ... + b_i))$` becomes $y_i = \sigma(W_{i,1}x_1 + W_{i,2}x_2 ... + b_i))$ – Neil Slater Mar 14 '19 at 08:41
  • Actually I can see what I think is an error in your maths. However, not sure if just a typo or if I am misunderstanding it without the context that I am asking for – Neil Slater Mar 14 '19 at 08:44
  • Thank you, will take some time to reevaluate the code and question, to adjust for feedback provided. – user3681384 Mar 14 '19 at 08:47

0 Answers0