Skip to main content

Featured

Journey towards Earning 100K+ PKR at the age of 18

Almost everyone in this world likes to have a good income source or more generally speaking - everybody wants to earn money. Considering current competition and today's internet market, its a dream of every young kid or teenager to make massive amount of income at his/her early age so that he or she can live his dream life full of materialized things based on his/her likings. Its been a great honor for me to state this sentence that (Thanks to God) that I am among those who actually succeeded in achieving this target and fulfilling my passion.   But what actually got me into this and what's the steps I taken to fulfill my  dream goals. Its all just start after passing my secondary school examination (here it is called SSC Certificate). I was a huge shy guy who doesn't even talk to girls (sometimes even to boys). They just keep made fun of me and I laugh at them. Laughing...Well when I passed class 10th, I decided to make all the ideas come into action that I couldn't fu

How I Accidently got into Machine Learning and made an app that detects your feelings

Ever wonder? what's the shortcut way to master the ground knowledge for Machine Learning by which you can deploy and create your own Simple Neural network projects?

Below, I am sharing my own experience from zero knowledge of AI to deploying a Neural network app in under 30 minutes.


So, the story starts late night probably between 1:00 AM – 3:00 AM when I was searching around for an AI that helps my discord Love bot to be intelligent enough to generate its own answers and reply to people.

I developed this discord Bot using Node.js and discord.js module. It looks pretty good and well trained to respond to users when someone says, “Hi” or “Hello” but the game changes when bot gets such a message from the user which isn’t in its list. So how can I overcome the problem?

Well after searching a lot on the internet, I found couple of ways to train my Bot with an AI through an API which means that sending an API request to the Cloud will generate an answer by sending a JSON response. I was excited to use these cloud AI technologies but forgot to note that these cloud companies charge you for using their services (don’t have an idea – but not all).

Besides these methods I was already thinking that what if I developed my own AI that learns and responds to user. Would there be anyway simpler way to implement this idea without heavily diving into proper AI and Machine Learning field? Would there be any method to implement Neural networks and other techniques that trains my Bot? Would there be any source which I can implement directly in Node.js without moving to Python, keras, tensorflow and other complex solutions?



Going through my feed, I actually noticed a video from Traversy Media in which they talk about a Simple Machine Algorithm using a module called Brain.js inside Node.js. I was pretty shocked when I looked at this.


After learning some cool methods and techniques, I actually trained myself how an AI works or precisely how Neural Networks works to make predictions by taking different inputs and outputs as a training data model.

I tried my bot to detect and reply to feelings but it didn’t worked well as it was taking much time to iterate (500 times) so I pushed the code to my git repository and went to sleep.

The next day I came up with some cool ideas and rewrite the training model so the AI detects the feelings much better and match my expectations more accurately. I ran the program couple of times and Boom! It worked fine for me. After making couple of edits and changes the app worked fine and I am done with it.

At last, I would like to say it was a pretty fun and nice experience that a guy with zero knowledge of AI actually learns how to make training models and train a network to make predictions. That’s super great! 


I would also love to recommend this cool module named Brain.js you should definitely check out this and make some cool Neural networks project.

 

Best of Luck!

 

Link to install Node.js (Install Node.js)

Link to Traversy Media AI tutorial (Tutorial)

Link to Brain.js module (Brain.js Website)






Comments

Coming Up Next

Journey towards Earning 100K+ PKR at the age of 18

Almost everyone in this world likes to have a good income source or more generally speaking - everybody wants to earn money. Considering current competition and today's internet market, its a dream of every young kid or teenager to make massive amount of income at his/her early age so that he or she can live his dream life full of materialized things based on his/her likings. Its been a great honor for me to state this sentence that (Thanks to God) that I am among those who actually succeeded in achieving this target and fulfilling my passion.   But what actually got me into this and what's the steps I taken to fulfill my  dream goals. Its all just start after passing my secondary school examination (here it is called SSC Certificate). I was a huge shy guy who doesn't even talk to girls (sometimes even to boys). They just keep made fun of me and I laugh at them. Laughing...Well when I passed class 10th, I decided to make all the ideas come into action that I couldn't fu

Explained: Website Basic Architecture

We all wonder how a website works? How data actually gets transferred from one end to another. Well, I was also among those who always think this in a very different and complicated way. But things got change as I entered the field of frontend and backend development. I actually learnt the point that these things actually work in a pretty simple way. Let me understand you with this real-life example. Let's consider an example of a postman (server) who wants to deliver the message from sender (client) to receiver (client). The sender sends a request to the Post Office to deliver this message to the receiver. On the other hand, the receiver is waiting for the message to arrive. The Post office reads the request and in response delivers (handover) the message to its respective receiver. In this way, data is transferred from one end to another. Now remap the above example and replace the Post Office with actual server (i.e. a real physical computer) who listens to request and in respon

How I Became a Self taught Developer in Less than 30 Days

Here are I am revealing some tricks and techniques that you can use to master the foundation of front-end and back-end development in just less than 30 Days. Before Briefing Here is something very useful and important to know Front-end basically all stands out on the most crucial and important language i.e. JavaScript. JavaScript is the most used language nowadays which is essentially used in every basic cross platform applications. JavaScript mostly plays the part of front-end development of an app but it can also be used at server-side or backend programming by using Node.Js and Express. Without learning JavaScript you can't be called neither Front-end Developer or a Back-end Developer. Learning just some basic HTML and CSS won't call you a Developer!! Starting from Scratch I already come from a Computer Science background when I finished learning CS50 (the most greatest Computer Science course ever available on the planet for free, I will share the link below so you can also