Skip to main content

Machine Unlearning #2 (Regression)

Machine Unlearning is a series broken up into tiny, one-minute readable pieces to humor our ever-shortening attention span. Sharing the links to every single piece right below:

Regression is a popular machine learning technique used to predict target data based on a set of features. In classification, we train the system to assign distinctive labels to the object (Orange or Bananas in our previous example). Regression differs in the sense that here we are dealing with continuous variables.

Suppose that you have twenty thousand rupees with you and are planning to buy a new phone. You open up an e-commerce site and search for phones. A hundred results appear. You see names like Redmi, Oppo, Vivo, Realme, Asus, Nokia, and so on, all in your target range of ten thousand to twenty thousand. You are clearly confused. Therefore, you decide to have a deeper comparison.

You start plotting the prices of each phone and start noting down the features offered. As you watch closely, you realize that some features (like support for 4g and dual sim support) are offered by most of the phones while the presence or absence of some features affects the price. Models with additional features like full HD display and quad camera are priced above fifteen thousand while the others are at the lower end of the price range. Then you do a trade-off and decide on the phone that suits you best.

Now let us look at how we use similar plotting of continuous values to predict certain aspects of people. One of the favorite target groups for such regression analysis in our daily lives is, unfortunately, women. The character of a girl or a woman is often predicted by the time at which she goes out in the public.

Let us talk about our favorite random person, X. X is a college-going girl for now. If she is back home or hostel by six in the evening, she is supposed to be well mannered. If she stays out later than six or (god forbid) six-thirty, something is not right! For working women, we have benevolently pushed the boundaries to seven. Don’t even ask me about eight or later. When the brutal and horrific news of Nirbhaya came out several years ago, some people around me were wondering why she was out at that hour of the day. I could not agree with their line of thought at all. However, the prime convict Mukesh Singh had the same questions. Frankly, I do not think he is the sort of person you wanna hold up as your role model.

Timings are only one of the features employed to predict the character. Another common feature is the length of her skirt, with knees being a major benchmark. Another feature that holds interest is the length of your hair. It is interesting because this feature works in contrasting ways for men and women. The longer, the better for women. The shorter, the better for men.

How regressive, right?


Popular posts from this blog

Machine Unlearning #0 (Intro)

You might be familiar with the term Machine Learning. Worry not if you have not, cause I have tried to give a gist of the concept here. The term has been in the limelight of late and has been tossed around rather liberally to denote anything related to artificial intelligence, robotics, and data mining. Machine Learning, as the name suggests, could simply mean the field of study of enabling the “machines” (computers) to “learn” from past experiences and make informed decisions in the future.   Wait a minute! Learning from past experiences is something humans do, right? Exactly! The computer folks want computers to behave more and more like us. As if there aren't enough of us already. As the machines are becoming more like us, we are becoming more like them. Introspection time! Most of us wake up every morning like clockwork! Then we rush through the morning routines - get dressed, wade through the traffic, and reach our offices or schools or wherever people expect us to be. We spe

The High State

 Before The Judgement I believe I must begin by addressing the pressing question - Was planning a vacation in the midst of a pandemic a recommended move?  No. Yet we went ahead with it. Here is why.  We (Nithya & I) were newly married, and our vividly planned vacation at the island of Langkawi was stolen away from us by the virus. Our stay in Delhi was coming to an end due to job-related moves, and we felt it would be a waste not to utilize this opportunity in exploring at least one of the tourist hot spots easily accessible from the national capital region. Let us end this section by answering another question - Are the reasons listed above good enough to risk a vacation during a pandemic? No. We had taken a calculated risk. Arrival at Manali There are two phases to this - planning and execution. We had not started planning with Manali in mind. There were numerous choices - starting from Jaipur and Amritsar to Nainital, Shimla, and Manali. After a bit of reading and deliberations,

Machine Unlearning #1 (Classification)

You can’t conclude a discussion on Machine Learning without mentioning classification. Classification is a machine learning technique where the machine is trained to predict the label of the given input data. Alright, let’s cut the jargon and get some real-world examples. Oranges and Bananas. Let’s assume that we have a box of fruits that contain some oranges and some bananas. You are asked to pick one fruit at random and tell if it is an orange or a banana. Pretty basic, right? For us, it is straightforward. We would know the answer at first sight. But, how would a computer be able to tell the difference? In classification, the machine would first be trained on some pre-labeled data. It would be shown an orange and we would tell it that the fruit is an orange. The machine would study the orange and remember its features - orange color and round shape. Then it would be shown a banana and the process is repeated. What are these features? A feature is anything that helps us uniquely labe