Please note that Tapas no longer supports Internet Explorer.
We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.
Home
Comics
Novels
Community
Mature
More
Help Discord Forums Newsfeed Contact Merch Shop
Publish
Home
Comics
Novels
Community
Mature
More
Help Discord Forums Newsfeed Contact Merch Shop
__anonymous__
__anonymous__
0
  • Publish
  • Ink shop
  • Redeem code
  • Settings
  • Log out

Sekabead's Sandbox

An Introduction to AI

An Introduction to AI

May 30, 2021

Webtoon suddenly asks for a 1080x1920 cover just like tapas, and also 1080x1080 thumbnails as opposed to 436x436 like it was, aaaaand I'm kind of in a rough mood because of it. Actually, it's been a month, and I'm a bit lazy to draw cover. It is the primary reason why I'm held off publishing Babysitting Stegosaurus here, but once I'm done with it, I'm done with my "exclusive treatment" for webtoon. And my research codes aren't really working yet, so... I'm writing a thing or two about AI (articial intelligence) like those businessmen and marketers likes to shove down on your throat. Yes, nowadays I find AI is being talked about more from those people rather than programmers or researchers or alike.

Essentially, sitting at the very core idea of what everybody calls AI is function. Mathematical functions. f(X).
Yes, that concept you studied in high school, or maybe middle school, or maybe elementary school. Given something, that function should return exactly one other thing, but they don't have to be different. As for example, if I have a function f(X) and I feed X = 1, it should return something else. If that function is an identity function, f(X) = X, then f(X) should return 1. If that function is a polynomial function, say f(X) = X^3 + X^2 + X + 1, it should return f(X) = 4. That function could be anything I wish, the only constraint is that if I feed something, it should only return one thing. Not two, not many. I don't even have to tell you how it manipulates that thing, nor I should know what function it is. So, if I have another funtion: mystery(X) (yes, function can be named with anything), and mystery(1) = 4, mystery(2) = pi, mystery(3) = 4.5642315131...., it's still a function, even though you don't know what kind of function it is, neither do I, neither does Biden or Trump, and neither does BTS Jungkook. It's a function. If you need multiple values as an output, typical approach is to put them all into a container, like a vector or a matrix. Or maybe an image. Or maybe a house. Whatever you wish.

What, a house? Yes. I never said that function must operates specifically on numbers. You could feed some function a horse or that deliveryman who have been sending you nice packages from Amazon, it's up to you really. So let's say there's a function that allows us exactly that, alive(X). alive(X) would return alive for X = horse, alive for X = deliveryman, dead for X = house, and dead for X = MyTalkingButtWantsBully'sLove. Now you have a coarse idea what alive(X) does: it outputs either alive or dead given an input. Gives anything known on earth to it and it will outputs either alive or dead based on it. The possibility is endless.

But apperently there's some problem if you try to make alive(X) a reality: How do you make it in the first place? You can't put something like X^2 + X + 1 because Horse^2 + Horse + 1 is outright garbage and nonsensical output. Maybe if "anything known on earth" is only a small finite amount, say 20, you can make a table and tell alive(X) to look up the output for that input in that table. Table, like those you see in Microsoft Excel or some fancy document, not the one you find foods on it. Yes, function can be made up by matching things on a table, it's just your high school teacher that insists function should be something like sin X + cos X or X^2 + 1. But there are gazillion things on earth, how could you list them? Simple: you can't. You can do yourself a bit of favor by limiting things to, say, 1 million, but you'll suffer a lot listing those 1 million. But you want to work in Facebook and you need to spy on everybody and their dogs in order to determine whether they are worth enough to be shoved a dog food ad based on their financial situation, so... what to do? You need to generalize things.

How do you generalize things? Well, maybe that table containing 1 million entries you write by hand isn't really useless. In fact, it could be very useful. You have listed entries like "if X = House, then alive(X) = dead". For the sake of keeping things simple, let's use this notation "house => dead" to express the same idea. You have thousands others, like "horse => alive", "barbeque chicken => dead", "You're Mine Now => dead", etc. And then a wild input, "White horse", appears! It's not listed on your table, should that function output [ alive ]  or [ dead ]? You know the answer, but that function doesn't know (yet), and this is where you generalize things. You could invent some rule. Maybe some sort of similiarity? You know it's similiar with "horse" because well, "White horse", and it just happens you have it sitting nicely on the table! So you use some kind of similiarity rule, and "teach" your function to automatically output "alive" whenever it sees the input similiar to "horse" based on that rule.  So "White horse", "Black horse", "Blue horse", "Big-boobed Horse" all automatically being outputted as "alive" and CONGRATS! YOU HAVE YOUR FIRST ARTIFICIAL INTELLIGENCE. HURRAY!!!!!

And then there are awful inputs like "Barbeque black horse", "You're Horse Now", and "Big Boobed Chicken", and you start to weep. That function will start to output confusing things like "Barbeque black horse => alive", "Big Boobed Chicken => dead", and who the hell know what "You're Horse Now" is. This is when things get hairy. You could invent some rule, like "if there's a spice word, and followed by an alive thing, then it's dead. If not, then it's alive". Then you give another rule, like "A spice is either a vegetable, or something describing taste." Then you see "Barbeque black horse" and then matches it according to the rules you've just made up. "Hmm...... barbeque is
describing taste, so this is a spice. Then it's followed by horse, an alive thing. So this function should output "alive". ", you mutter in your head. You "teach" your function those rules, and infers those input according to the rules you've just invented. And your AI is now working again! Congrats!! This is, in fact, the idea surrounding the concept of Rule-Inferring / Knowledge-Based AI. This is not really a machine learning (ML) algorithm, it's just a rule matching. So that's that. AI is not necessarily an ML, but all ML is AI. "But but buttt, those cool man in suits aren't talking about that! They are talking about "trained on deep learning neural algorithm", like our brains!!! They are simulating how our brains work!!" Hahahaha nope.

"Deep learning" is referring to specific variant of ML: Artificial Neural Networks. "Neural" there is taken from the term "neuron". They do inspired by brain, but in no way they're simulating them. What is a neuron, actually? It is a...... *drumroll* yet another function. You give a set of input, and it will output something. This time, commonly they are numbers. Receiving some numbers as input and outputting some other number, or vector/ matrix if you need to output many numbers at once. This neuron we have is a mathematical function you wish to use, but commonly it's a sigmoid function. You then create many of those neurons and feed an output of a neuron as an input for another neuron. Here, if you need to read it again:

you feed an output of a neuron as an input for another neuron.

This is, essentially a composition of function: f(g(x), output of g(x) is treated as an input for f(x). But you need
to spy on everybody and their cats because you want to work on Google, because Google wants them to buy catnips (from somebody paying them) for their cats real bad. In order to spy properly and deduct what catnips they should buy based on what comics they read on tapas, you may need thousands of neurons, and you get a headache. Well, you need some kind of architecture to sort those neurons neat and tidy to avoid that headache. How about layers? Neurons will be put into several layers, and you put a rule like this: layers in the same layer should not feed each other, only onto every neurons in next layer. Yes, one neuron to every neurons in the next layer. You can then call the first layer as "input layer" ,the last layer you have as "output layer", and everything in between as "hidden layer". That's it, you have Artificial Neural Networks architecture by now.

However chances are it will give you the wrong, erroneus result, because hey, world is cruel, everything can't really be modelled after some mathematical functions. What could you do then? You note that error and pulled
some other handful data from your painstakingly handmade 1 million data you put nicely in that table, and see if they also produce errors too. You then calculate the aggregate errors from those observation, and do some procedure to best minimize the error by adjusting those neurons. Hand tuning those thousands neurons is painful, so you use almighty calculus, because hey, it's minimization problem! And then repeat that process again, ....again, ..........again, ...................and again until the errors are vanished. .....or close to be vanished, because world is cruel and most errors will simply refuse to go away. And done! This is what actually the idea of "learning" is (and these all can be automated, actually)... and that's it. Congrats! You have your first MACHINE LEARNING ALGORITHM! And if you managed to have one or more hidden layer, then you have your first DEEP LEARNING ALGORITHM!! Yaaaaaay!!! Really, Deep learning is just a sophisticated-sounding term for "we use more than 2 layers of a bunch of functions interconnected here and there". But you could put that on a marketing brochure and wow everyone exclaiming "wow so modern so high tech".

So yeah. There you go. I glossed over the nitty gritty details because they are, honestly, really awful to write. And also, nobody expects a technical intro to AI, with a lot of equations, randomly appear in a platform primarily designed for comics and novels.  And I can't really write it nevertheless, but... the general gist is there. Determining something alive or not by feeding a random thing is probably not really useful.... but if we replace "thing" with "image" and "alive" with "a porn" (so the sentence become 'determining some image a porn or not by feeding a random image') , you are starting to get the practical usefulness. Suddenly, detecting whether an image is a porn or not can be done nearly automatically with functions, approximated with AI technique. And also, people are not really listing that enormous amount by hand, they collecting it from somewhere else, most of the time automatically.

Why am I writing this random shenanigan out of the blue? Simple: because it's everywhere, commonly misunderstood, affecting nearly everybody's lives while most of them is not really educated about it, and I want to rant about it a little. But putting the rant here without some sort of intro sounds bad, and putting everything here will make this too long, so let's save that for later. Also, there is another contest coming up, and I'm going to try my luck there. So... that's that.
sekabead
sekabead

Creator

Comments (1)

See all
Padmé
Padmé

Top comment

Is this the type of program that the news channels use to predict the weather

0

Add a comment

Recommendation for you

  • Silence | book 2

    Recommendation

    Silence | book 2

    LGBTQ+ 32.2k likes

  • Secunda

    Recommendation

    Secunda

    Romance Fantasy 43.1k likes

  • The Sum of our Parts

    Recommendation

    The Sum of our Parts

    BL 8.6k likes

  • Find Me

    Recommendation

    Find Me

    Romance 4.8k likes

  • What Makes a Monster

    Recommendation

    What Makes a Monster

    BL 75.1k likes

  • Siena (Forestfolk, Book 1)

    Recommendation

    Siena (Forestfolk, Book 1)

    Fantasy 8.3k likes

  • feeling lucky

    Feeling lucky

    Random series you may like

Sekabead's Sandbox
Sekabead's Sandbox

2.5k views7 subscribers

You read it. Don't spend any of your precious time reading this, read Just Usual Days or MY TALKING BUTT WANTS BULLY'S LOVE or YOU ARE MINE NOW or A Dinosaur Ate My Cookies instead. It's my sandbox, thus contains zero stories. That's why it's non-fiction.
Subscribe

14 episodes

An Introduction to AI

An Introduction to AI

186 views 2 likes 1 comment


Style
More
Like
4
Support
List
Comment

Prev
Next

Full
Exit
2
1
Support
Prev
Next