<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nishant Kumar on Medium]]></title>
        <description><![CDATA[Stories by Nishant Kumar on Medium]]></description>
        <link>https://medium.com/@nishant61988?source=rss-f67d1b967a9b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*lamdIRv_7EG4cdknOLRD_w.jpeg</url>
            <title>Stories by Nishant Kumar on Medium</title>
            <link>https://medium.com/@nishant61988?source=rss-f67d1b967a9b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:24:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nishant61988/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Basics of Artificial Neural Network]]></title>
            <link>https://nishant61988.medium.com/basics-of-artificial-neural-network-f6525a4503f9?source=rss-f67d1b967a9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6525a4503f9</guid>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Nishant Kumar]]></dc:creator>
            <pubDate>Fri, 12 Jun 2020 21:03:36 GMT</pubDate>
            <atom:updated>2020-06-12T21:03:36.180Z</atom:updated>
            <content:encoded><![CDATA[<h4>Deep Learning is a subset of Machine learning which deals with Neural network concept.</h4><h4>ANN :- Artificial Neural Networks is a computing systems inspired from Biological neurons of Human Brain.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*xJqozDCM6vKBL9ReSupDVw.png" /><figcaption>Credit :- mc.ai</figcaption></figure><p>Let’s understand Biological Neurons first :-</p><p>Neurons (also known as neurons, nerve cells and nerve fibres) are electrically excitable cells in the nervous system that function to process and transmit information. In vertebrate animals, neurons are the core components of the brain, spinal cord and peripheral nerves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mt6NjUSiuz3LmY1Lp9h4LA.png" /><figcaption>credit:- simple wikipedia</figcaption></figure><p>Neurons communicate <strong>via chemical and electrical synapses</strong>, in a process known as synaptic transmission.The fundamental process underlying synaptic transmission is the action potential, a propagating electrical signal that is generated by exploiting the electrically excitable membrane of the neuron.Neurons are highly specialised for the fast processing and transmission of cellular signals.</p><p>One of differences between machine learning and deep learning model is on the feature extraction area. Feature extraction is done by human in machine learning whereas deep learning model figure out by itself.</p><p>Neural networks are inspired from mammalian brain.A neural network is a web of artificial neurons.Similar to Human Neuron’s electrical synapses, Artificial Neuron uses activation function for better propagation.If there was no activation function f, the output of the entire neural network would be a linear function of the inputs.A neuron takes as input a weighted sum of the outputs of the previous layer and a bias term, and passes it through some activation function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*MOePC4qkLFnCeE4eKYP75A.png" /><figcaption>output = activation(weighted sum of inputs)</figcaption></figure><p>z = w1x1 + w2x2 + ….+wnxn +b<br>y = f(z) = f(w1x1 + w2x2 + ….+wnxn +b)</p><p>w refers to weights, b bias, xi input features, and f the activation function.Owing to a biological parallel, the function f is called the <strong>neuron activation function (and sometimes transfer function).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*Ooq3BF2J3S9PXnstY2NeHg.png" /><figcaption>Training using DL NN</figcaption></figure><p><strong>Types of Activation Funtions:-</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*C4VLkIy6pY7f_N0mtvaDag.png" /><figcaption>Graph</figcaption></figure><p><strong>ReLU (Rectified Linear Unit)</strong> Activation Function is most popular and widely used. currently preferred due to fast convergence<br><strong>Softmax:</strong> currently preferred for output of a classification net. Generalised sigmoid.<br><strong>Linear:</strong> good for modeling a range in the output of a regression net.</p><p><strong>Layers of Neural Network:-</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*pCzQUpzAiyz5WyFnHOn2Cw.png" /><figcaption>Layers of NN</figcaption></figure><p><strong>Input Layer<br></strong>This is literally the layer that inputs information for the neural network to process. Each circle represents 1 feature (a piece of information).</p><p><strong>Hidden Layer</strong><br>The hidden layers perform nonlinear transformations of the inputs entered into the network.Number of layers vary based on complexity of input.</p><p><strong>Output Layer</strong><br>Calculated result after activation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*VRpzbo9DYpJpHh3No3foMg.png" /><figcaption>Flow of signals/data</figcaption></figure><p>In DL, you will hear lot about TensorFlow+Keras in Python to solve problems and GPUs</p><p><strong>GPU :- Graphics Processing Unit</strong><br>It is designed specifically for performing the complex mathematical and geometric calculations that are necessary for graphics/image rendering.It is fast in matrix multiplication.It has many cores and does parallel computing.<br>ATI and nVidia produce the vast majority of GPUs on the market, and both companies have developed their own enhancements for GPU performance. Tensor Cores in NVIDIA GPUs can perform large matrix operations.</p><p>Happy Learning!! All the Best….</p><p><a href="https://www.facebook.com/NishuArt-109507937410651/?modal=admin_todo_tour">Facebook </a>| <a href="https://www.instagram.com/datasciencewithmemes/">Instagram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6525a4503f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Market Basket Analysis(MBA)-Collaborative Filtering]]></title>
            <link>https://nishant61988.medium.com/market-basket-analysis-mba-collaborative-filtering-cc2f3b71c6e?source=rss-f67d1b967a9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc2f3b71c6e</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[market-basket-analysis]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <dc:creator><![CDATA[Nishant Kumar]]></dc:creator>
            <pubDate>Mon, 18 May 2020 21:08:13 GMT</pubDate>
            <atom:updated>2020-05-18T21:08:13.650Z</atom:updated>
            <content:encoded><![CDATA[<p>To increase sales and decide combo pack offer, Stores often use Market Basket analysis.A perfect product placement is one of the key factor in retail business like Walmart, Bestbuy, Reliance and Big Bazaar.<br>MBA is a very nice association technique to combine related products based on their transactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dR-dH7TPFGNZ3tCMaHxHjw.png" /><figcaption>Market-Basket</figcaption></figure><p><strong>Objective:-</strong></p><p>✔To identify Customer mindset while buying products together like Milk+Butter,Beer+Potato chips,Balloons+Candles etc, we need some association logic to group related product</p><p>✔Finding frequent patterns, associations, correlations, or causal structures among sets of items in transaction databases.</p><p>✔Understand customer buying habits by finding associations and correlations between the different items that customers place in their “shopping basket”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*tRwINfbywmY_Vn2-0IZgfQ.png" /></figure><p>One of the main advantages of market basket analysis is that it is perfect for undirected data mining. This technique is used when we do not know where to begin with a large dataset.</p><p><strong>👀Association rule mining</strong><br>Association rule mining is a technique to identify frequent patterns and associations among a set of items.It’s common use in shopping behaviour analysis.Can be used as the basis for decisions about marketing activities such as, e.g., promotional pricing or product placements.An association rule can be expressed in the form of X →Y, where X and Y are two disjoint itemsets (do not have any items in common).i.e., X ∩Y = ∅.The strength of an association rule can be measured in terms of its <strong>support and conﬁdence</strong>.</p><p>The main concept of association rules is to examine all possible rules between items and turn them into ‘if-then’ statements. In this case the ‘if’ part is X or the antecedent, while the ‘then’ part is Y or the consequent.<strong>X is an antecedent and Y is a consequent, in other words, X implies Y.</strong></p><p><strong><em>Antecedent → consequent [support, confidence]</em></strong></p><p><strong>Support:</strong> denotes the frequency of the rule within transactions. A high value means that the rule involves a great part of database. support(A →B [ s, c ]) = p(A /B) i.e Support(X) = <strong>frequency of transactions where X present/Total number of transactions</strong></p><p><strong>Confidence:</strong> denotes the percentage of transactions containing A which also contain B. It is an estimation of conditioned probability. confidence(A→B[ s, c ]) = p(B|A)= sup(A,B)/sup(A).</p><p><strong>Lift (also called improvement or impact)</strong> is a measure to overcome the<br>problems with support and confidence. Lift is said to measure the difference — measured in ratio — between the confidence of a rule and the expected confidence. Consider an association rule “if A then B.” The lift for the rule is defined as<br>P(B|A)/P(B) or P(AB)/[P(A)P(B)].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*AAJq8gr17c1A0Pf8p19DmQ.png" /></figure><p><strong>Apriori Algorithm</strong></p><p>The classic approach for generating frequent itemsets is using the Apriori algorithm. <strong>(Rakesh Agrawal, Srikant Ramakrishnan, 1994)</strong>. According to the Apriori property: ‘<em>All subsets of a frequent itemset must also be frequent</em>’. If it has been verified that an itemset X is infrequent, there is no need for further investigating its subsets as they must be infrequent too. For example, in the given dataset, if a transaction that contains of { Hair conditioner, shampoo, hair dye} is frequent, a transaction containing {hair conditioner, shampoo} is also frequent.</p><p>a)Apriori algorithm assumes that any subset of a frequent itemset must be frequent.</p><p>b)use prior knowledge of frequent itemset properties</p><p>c)If an itemset is infrequent, all its supersets will be infrequent</p><p>So, with all these above knowledge,we will see Python code example</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u7Uo1HiZNxkOEbnxLuFPzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iiK2vgyqyeh_vZHMnXIDHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yAQnsS90RkSA3TyWqdHwww.png" /></figure><p>Follow my complete code here<a href="https://github.com/NishantKumar61988/Recommendation-System">❤</a></p><p>Happy Coding !</p><p><a href="https://www.facebook.com/NishuArt-109507937410651/?modal=admin_todo_tour">Facebook </a>| <a href="https://www.instagram.com/datasciencewithmemes/">Instagram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc2f3b71c6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hinduism :- Aryan Invasion Theory & Dravidian !]]></title>
            <link>https://nishant61988.medium.com/hinduism-aryan-invasion-theory-dravidian-841ad819e90f?source=rss-f67d1b967a9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/841ad819e90f</guid>
            <category><![CDATA[aryan]]></category>
            <category><![CDATA[colonization]]></category>
            <category><![CDATA[hinduism]]></category>
            <category><![CDATA[british]]></category>
            <category><![CDATA[dravidian]]></category>
            <dc:creator><![CDATA[Nishant Kumar]]></dc:creator>
            <pubDate>Fri, 01 May 2020 22:10:33 GMT</pubDate>
            <atom:updated>2020-05-01T22:10:33.692Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hinduism :- Aryan Invasion Theory &amp; Dravidian !</h3><p>Have you ever wondered why all the epics , Puranas and History are male-centric or many Historical facts are biased and manipulated ? Because Power lies with Pen-holder (writer). In mythological stories, it generally begins with “एक गरीब ब्राह्मण था” , ever pondered caste of the writer ?</p><p>In the same manner , colonisation has colonised our mind also and crippled with manufactured myths/History. British not only ruined culture but also misquoted, misinterpreted Historical facts. Aryan Invasion Theory is one of the brutal trick to justify their invasion. Let’s hear their version and NCERT version by leftists and foolish comrades.The German born Oxford linguist <strong>Friederich Max Müller</strong> was the most influential proponent of this theory. <br>n 1848, the young <strong>German scholar Friederich Max Müller (1823–1900)</strong> settled in Oxford.About 1853 he introduced into the English language the unlucky term Aryan as applied to a large group of languages.</p><p>As per these writers,</p><ol><li>Aryan (that is, Indo-Iranian-language speaking) tribes from the Eurasian steppes (probably from what is now southern Ukraine) made their way in two large waves to India between 1600 and 1000 BCE. They brought with them gods like Agni and Indra. The pattern of tribes from the steppes moving and settling in other lands is common throughout this period in Europe and Asia. The Turks, for example, come from Siberia, and “Dravidian” languages can be traced to Iran. The tribes coming to India brought horses, as is clear from the archaeological record, and chariots and occasionally fought big battles.</li><li>The Aryans were originally nature worshippers who revered a number of gods and believed that their gods represented forces of nature.<br>The Aryans composed religious texts beginning with the Rig Veda, Soma Veda, and Atharva Veda (ca. 1500–1200 B.C.), which contained hymns to the gods and descriptions of the customs, behaviour, and traditions of Aryan life. The Upanishads, composed later (700–500 B.C.), contain profound philosophical speculations about the “One who lies behind.” This “One,” called Brahman, is eternal, formless, all encompassing, and the origin and essence of all things.”</li><li>The racial theory of the 19th century assumed that blonde blue-eyed warriors on horse-drawn chariots smashed their way into India by overpowering the cities of the Indus Valley, enslaving their people. This theory explained the collapse of the Indus Valley cities and the ubiquitous caste system of India. This theory was however part of the European propaganda machinery. The Germans used it as part of nationalist mythology, celebrating their pre-Semitic Nazi heritage. The British used it to legitimise Hindus, claiming that ‘upper caste’ Hindus were as much invaders and conquerors of India, as Muslims and Europeans, and so they have no moral right to claim India as homeland.</li></ol><p><strong>Let’s counter attack with proper fact-check</strong></p><p>&gt;Research has shown that the cities of Indus Valley collapsed because of climate change and dry river, not invasion, long before the Vedic hymns were compiled or composed.</p><p>&gt;scholars assigned a date of 1500 B.C. to the Rigveda written by Aryans, while archaeological and astronomical evidence shows that much of the Rigveda had been completed at least 2000 years earlier i.e 3500 B.C.</p><ul><li>The Sarasvati is praised lavishly in the Rigveda as the best of all the rivers. In <a href="https://en.wikipedia.org/wiki/Mandala_2">RV 2</a>.41.16,</li></ul><p>अम्बितमे नदीतमे देवितमे सरस्वति । अप्रशस्ताइव स्मसि प्रशस्तिमम्ब नस्कृधि ॥<em>ambitame nadītame devitame sarasvati । apraśastāiva smasi praśastimamba naskṛdhi ॥”Oh Mother Saraswati you are the greatest of mothers, greatest of rivers, greatest of goddesses. Even though we are not worthy, please grant us distinction”</em>.</p><p>Archaeologists/Geologists have already proved with remote sensing technology and satellite pictures that Saraswati was flowing in 5500 BCE in pre-harappan culture with a 22KM stretch much before Aryan Theory Date(1500 BCE). So Veda was already written by native people and Aryans came and wrote it.</p><p>&gt;In Sanskrit and related Indo-Aryan languages, ārya means “one who does noble deeds; a noble one”. Āryāvarta “abode of the āryas” is a common name for the northern Indian subcontinent in Sanskrit literature. Manusmṛti (2.22) gives the name to “the tract between the Himalaya and the Vindhya ranges, from the Eastern Sea to the Western Sea”.[41] The title ārya was used with various modifications throughout the Indian Subcontinent. Kharavela, the Emperor of Kalinga in second century BCE, is referred to as an ārya in the Hathigumpha inscriptions of the Udayagiri and Khandagiri Caves in Bhubaneswar, Odisha. The Gurjara-Pratihara rulers in the 10th century were titled “Maharajadhiraja of Āryāvarta”.[42] Various Indian religions, chiefly Hinduism, Jainism and Buddhism, use the term ārya as an epithet of honour; a similar usage is found in the name of Arya Samaj. Sanskrit lexicon known as the Amarakosha identifies as one of the synonyms for honorable or decent conduct.</p><p>&gt;The usage of self-designation Arya was not limited to north India. The south indian emperor of Chola kingdom Rajendra Chola I gives himself the title Aryaputra (son of arya). In Ramayana and Mahabharata, ārya is used as an honorific for many characters including Hanuman.</p><p>&gt;After the downfall of Indus valley civilisation and the river Saraswati dried up, the river side civilisations in the West couldn’t sustain. So people largely migrated from the West of India to the East side giving rise to a civilisation on the banks of river Ganga. Vedas was created by people who witnessed ICE-age and end of river saraswati</p><p>&gt;The<strong> M17 genetic marker</strong>, which is supposed to distinguish the ‘Caucasian’ type (politically correct for Aryan), occurs with the highest frequency and diversity in India, showing that among its carriers, the Indian population is the oldest. This proves Migration was common and it can be reverse migration from India to Iran and other places. South Asia is logically the ultimate origin of M17 and his [ Sic ] ancestors; and sure enough we find highest rates and greatest diversity of the M17 line in Pakistan, India and eastern Iran, and low rates in the Caucasus. M17 is not only more diverse in South Asia than in Central Asia, but diversity characterizes its presence in isolated tribal groups in the south, thus undermining any theory of M17 as a marker of a ‘male Aryan invasion’ of India. It proves reverse-migration over a long period of time.</p><p>&gt;A sacred hill consecrated to 4 vedas, called chaturagiri, is in Tamilnadu.</p><p>&gt;Crop records are same pre-post aryan theory. But as said aryans came from steppes, temperate region — no new crops in late harappan. The people new monsoon that means they were. Humped cows zebu pic in vedas, subspecies of domestic cattle originating in South Asia.</p><p>&gt;Genetic pool remained same- 8000 years-. In genetics — university of mysore, huston have mentioned that DNA of all indians is same — pigmentation is related with sun.</p><p>&gt;An Ancient Harappan Genome Lacks Ancestry from Steppe Pastoralists or Iranian Farmers.-cell journal .<br>Indus valley DNA is found in both North and South Indians</p><p><strong>Now, the most recent Palaeontologist DNA findings of Rakhigarhi, Haryana — Vasant shinde and Neeraj rai.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*LEbqtcG0eZO9laXVh-MiaA.png" /><figcaption><strong>Rakhigarhi(village in Hissar district in Haryana) DNA Study — Female Skeleton I6614 — Radio Carbon dating suggested time period of 2500 BCE (i.e 4500 years old)</strong></figcaption></figure><p>.)Reveals ancestry related to Andamanese tribes and ancient Iranians of 8000 years ago which is kind of gradual migration in many many centuries.</p><p>.) As iranian discovered farming very lately which proves that Farming was totally indigenous to indian territory.</p><p>.) Found no traces of Iranian farmer or steppe pastoral ancestry.</p><p>.) Gene is more closer to South-Indian (%age wise).</p><p>.) Genetic Marker — R1a1 Haplograph gene is negligible in skeleton similar to Dravidian compared to North-Indians which has 16% match.</p><p>.) North-India varies with R1a1 gene due to rapid mixing as a result of Middle-east trading during 1500 BCE onwards.</p><p><strong>Dravidian Tussle:-</strong></p><p>The Dravidian movement was led by Periyar E. V. Ramaswamy who had demanded an independent Dravidian state, which would comprise of all the Dravidian-speaking states of South India.Dravidian Nationalism was thus based on three ideologies: dismantling of Brahmin hegemony(which they believed to Aryan or Aryan caste concept); revitalization of the “<a href="https://en.wikipedia.org/wiki/Dravidian_Languages">Dravidian Languages</a>” (that include Telugu, Kannada, Malayalam and Tamil) which created a sense of hatred against Hindi speaking North-Indians which can be felt now also as they oppose Hindi and social reform by abolition of existing caste systems, religious practices and recasting women’s equal position in the society.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*iSY_gDKjAyfDlioCJ4koEA.png" /><figcaption>Ambedkar and Periyar</figcaption></figure><p>We totally support that Dravidian culture and Language should be preserved and Hindi should not be imposed but treating all North-India as Aryans(Brahmins who treated South as backward) needs to be re-looked.To break the spiritual backbone of nation, Colonial-era imbibed caste to the core, North-south feeling to extreme.Below are some supporting fact to have a broad thinking which can lead to better acceptance by both the sides:-</p><ol><li>All Indian Genomes are same, proved above — M17 theory.</li><li>Why there is no vedic material in central asia and europe? Although it’s not Dravidian in language, but inspired by porto-dravidian/vedic-sanskrit.</li><li>Aryans theory is nullified above.</li><li>If we go by puranas which were compiled very many centuries ago when there was no controversies of Aryan or dravidian present, to be taken into account they describe that the Hindu discipline and the worship of Lord shiva, Lord vishnu and other devas were present throughout this globe in all the seven Continents (sapta dvipani).</li><li>No Tamil text/scriptures has mention of Aryans or any fight.</li><li>Even if we go by colour complexion, all North-Indians are not fair and all south-Indians are not dark which proves race is already mixed and colour is more dependent on pigmentation based on distance from equator and sun’s intensity.</li><li>Rajendra Chola defeated <a href="https://en.wikipedia.org/wiki/Mahipala">Mahipala</a>, the <a href="https://en.wikipedia.org/wiki/Pala_Empire">Pala</a> king of <a href="https://en.wikipedia.org/wiki/Gauda_Kingdom">Gauda</a> in present-day <a href="https://en.wikipedia.org/wiki/Bengal">Bengal</a> and <a href="https://en.wikipedia.org/wiki/Bihar">Bihar</a> which proves there was no massacre or no powerfull suppression by North so called Aryans. Chola dynasty are decedant of Lord Rama.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYW4hwRIwMMFgSDvact6aA.png" /><figcaption>Gangaikonda Cholapuram was built by Rajendra Chola to celebrate his success in the Ganges Expedition</figcaption></figure><p>8. The Jeeva Samadhi of Patanjali (saptarishi)is believed to be in Tirupattur (Tamil Nadu)Brahmapureswara Temple which proves co-ordial relation between North and south.</p><p>9. There was a Lame story that Aryaputra Ram killed Ravan (south-Indian dalit) — But actually Ravan was born in basrak village Noida. Even Bali (mahabalipuram) defeated Ravan , so he went to Sri-lanka. You will surprised to know God Rama’s colour( Dark Blue):-</p><p>नीलाम्बुजश्यामलकोमलाङ्गं, सीतासमारोपितवामभागम! पाणौ महासायकचारूचापं, नमामि रामं रघुवंशनाथम॥जयश्रीराम।।</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*iSrYG6dCpTceTlZJgwaMPQ.png" /><figcaption>Bhagwan Rama ,Sita and Laxman.</figcaption></figure><p>So, in totality there are many myths, misconception, ill-advertised things around you. We all need to have our own wisdom and ultimately contribute towards development of INDIA. <strong>Jai Hind,Jai Bharat.</strong></p><p>Feel free to comment , point out mistakes so that I can keep updating and refine this article.Thanks !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=841ad819e90f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Model Performance -Hyper-parameter Tuning]]></title>
            <link>https://ai.plainenglish.io/model-performance-hyper-parameter-tuning-9a5d15c094bf?source=rss-f67d1b967a9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a5d15c094bf</guid>
            <category><![CDATA[grid-search]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[gridsearchcv]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[hyperparameter-tuning]]></category>
            <dc:creator><![CDATA[Nishant Kumar]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 21:28:57 GMT</pubDate>
            <atom:updated>2020-04-22T08:29:42.602Z</atom:updated>
            <content:encoded><![CDATA[<p>Defining model complexity is one of the key in ML algorithm performance. If the model is too complex, it will overfit i.e performs well on train data but poor on unseen data/test data (production like data) whereas if the complexity is too low the model underfit and won’t capture all the information in the data.</p><p>So, we need to define Parameters and Hyperparameters.The model parameters tell how to transform input data into desired output whereas, the hyperparameters are used to determine the structure of the model in use.Hyperparameters that must be determined before training starts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*6IuhDv4MA8mlewUGCV1iJQ.png" /></figure><p><strong>Model Parameters</strong></p><p>A model parameter is a configuration variable that is internal to the model and whose value can be estimated from data.They are required by the model when making predictions and are estimated or learnt from data.</p><p><strong>Example :</strong>-<strong>Parameters</strong> are those which would be learned by the machine like Weights and Biases. 1) Weights or Coefficients of independent variables in Linear regression model. 2) Weights or Coefficients of independent variables SVM. 3) Split points in Decision Tree.</p><p><strong>Model Hyperparameters</strong></p><p>Model hyperparameters are often referred to as parameters because they are the parts of the machine learning that must be set manually and tuned.These parameters express “higher-level” properties of the model such as its complexity or how fast it should learn. Hyperparameters are usually fixed before the actual training process begins.It cannot be learned directly from the data in the standard model training process and need to be predefined.It can be decided by setting different values, training different models, and choosing the values that test better.</p><p><strong>Example:-</strong><br>1)Number of leaves or depth of a tree<br>2)Number of latent factors in a matrix factorization<br>3)Learning rate (in many models)<br>4)Number of hidden layers in a deep neural network<br>5)Number of clusters in a k-means clustering <br>6)The C and sigma hyperparameters for support vector machines.<br>7)The k in k-nearest neighbors.</p><p><strong>Codewise example:-</strong></p><p>from sklearn import svm<br>clf = svm.SVC(C =0.01, kernel =’rbf’, random_state=10)<br>clf.fit(X, y) <br><strong>Here SVM is your estimator for your model for which the hyperparameters, in this case, are C and kernel.<br>Parameter = random_state.</strong></p><p>In summary, model parameters are estimated from data automatically and model hyperparameters are set manually and are used in processes to help estimate model parameters.</p><p><strong>Hyperparameter tuning:-</strong></p><p>Hyperparameters are important because they directly control the behaviour of the training algorithm and have a significant impact on the performance of the model is being trained. It learns from Validation set of 70:30 train/test ratio.<strong>Tools for Optimizing Hyperparameters:-</strong><br>AWS SageMaker<br>Comet.ml<br>Weights&amp;Biases<br>DeepCognition<br>Azure ML<br>Google Cloud ML</p><p>However we will learn technique to tune it. We have 3 basic process and we will discuss most famous and widely used Grid Search CV</p><p>Grid Search CV<br>Random Search CV<br>Bayesian Optimisation</p><p><strong>Grid Search CV:-</strong></p><p>Basic optimal hyperparameter tuning technique.It builds a model for each permutation of all of the given hyperparameter values.For every combination, cross validation is used and average score is calculated.<br>While tuning hyper parameters, the data should have been split into three parts — Training, validation and testing to prevent data leak</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ghpdDaDgGPQKo8ghNhdTzw.png" /><figcaption><strong>GridSearchCV</strong></figcaption></figure><p>Python Code :-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*_585Lmx64-hVHx7ObizEIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*5FvknWrN_IpFWxOJmtJFhA.png" /></figure><p>So, based on gs value above, it is suggesting best value of parameters like ‘n_neighbors’ = 1. you can add all params which you want to try in param_grid as shown above.</p><p>Happy Learning! Please applaud if you liked the article :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a5d15c094bf" width="1" height="1" alt=""><hr><p><a href="https://ai.plainenglish.io/model-performance-hyper-parameter-tuning-9a5d15c094bf">Model Performance -Hyper-parameter Tuning</a> was originally published in <a href="https://ai.plainenglish.io/">Artificial Intelligence in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cross Validation Machine Learning: K-Fold]]></title>
            <link>https://ai.plainenglish.io/cross-validation-k-fold-f7980608f302?source=rss-f67d1b967a9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7980608f302</guid>
            <category><![CDATA[crossvalidation]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[test]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[k-fold]]></category>
            <dc:creator><![CDATA[Nishant Kumar]]></dc:creator>
            <pubDate>Tue, 14 Apr 2020 20:07:28 GMT</pubDate>
            <atom:updated>2020-04-16T18:43:24.097Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s split data 70:30, train model and test the given data-set to get accuracy. The major drawback of this method is that we perform training on the 70% of the data-set, it’s highly possible that the remaining 30% of the data contains some important information which are left out while training our model i.e higher bias.So we can’t be 100 % sure that the model will work accurately for the real production data which is unseen. For this, we must assure that our model get the correct patterns from the data, and it is not getting up too much noise. For this purpose, we use the cross-validation technique.</p><p><strong>Cross-validation is used to evaluate machine learning models on a limited data sample.It estimates the skill of a machine learning model on unseen data.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*6uqOaJbA8J0bCDWUml6AhA.png" /><figcaption><strong>K-Fold Pictorial Description</strong></figcaption></figure><p>The techniques creates and validates given model multiple times. We have 2–4 types of cross validation like Stratified, LOOCV, K-Fold etc. Here, we will study K-Fold technique.</p><p><strong>K-Fold</strong></p><p>This means that each sample is given the opportunity to be used in the hold out set 1 time and used to train the model k-1 times.By splitting our data into three sets instead of two, we’ll tackle all the same issues we talked about before, especially if we don’t have a lot of data. By doing cross-validation, we’re able to do all those steps using a single set.To perform K-Fold we need to keep aside a sample/portion of the data which is not used to train the model.</p><p>Cross validation procedure<br>1. Shuffle the dataset randomly&gt;&gt;Split the dataset into k folds<br>2. For each distinct fold: a. Keep the fold data separate / hold out data set b. Use the remaining folds as a single training data set c. Fit the model on the training set and evaluate it on the test set d. Retain the evaluation score and discard the model e. Loop back <br>3. Executed steps K times<br>5. Summarize the scores and average it by dividing the sum by K. <br>6. Analyze the average score, the dispersion to assess the likely performance of the model in the unseen data (production data / universe)</p><p><strong>When K = n (i.e of datapoints) — then its LOOCV</strong></p><p>Ideal value of K is 5–10 based on data.The higher value of K leads to less biased model, where as the lower value of K is similar to 70:30.</p><p><strong>Code Sample :-</strong></p><p><em>from sklearn import cross_validation <br># value of K is 10. <br>data = cross_validation.KFold(len(train_set), n_folds=10, indices=False)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*mVgBfwXq9yja-BpUCQofcQ.png" /><figcaption>Python Code</figcaption></figure><p>Here we repeat the model evaluation process multiple times (instead of one time) and calculate the mean of result score.Standard deviation varies w.r.t Confidence level i.e Mean + 2S.D. So if we get mean score as 80% then on production data it may vary w.r.t to 2S.D.</p><p>All the Best ! Keep Learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7980608f302" width="1" height="1" alt=""><hr><p><a href="https://ai.plainenglish.io/cross-validation-k-fold-f7980608f302">Cross Validation Machine Learning: K-Fold</a> was originally published in <a href="https://ai.plainenglish.io/">Artificial Intelligence in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feature Scaling :- Normalization, Standardization and Scaling !]]></title>
            <link>https://medium.com/analytics-vidhya/feature-scaling-normalization-standardization-and-scaling-c920ed3637e7?source=rss-f67d1b967a9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c920ed3637e7</guid>
            <category><![CDATA[standardization]]></category>
            <category><![CDATA[feature-scaling]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[normalization]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <dc:creator><![CDATA[Nishant Kumar]]></dc:creator>
            <pubDate>Sun, 05 Apr 2020 20:00:35 GMT</pubDate>
            <atom:updated>2020-05-19T09:17:24.041Z</atom:updated>
            <content:encoded><![CDATA[<h3>Feature Scaling :- Normalization, Standardization and Scaling !</h3><p>When your data is comprised of attributes with varying scales, many machine learning algorithms can beneﬁt from rescaling the attributes to all have the same scale. Often this is referred to as normalization and attributes are often rescaled into the range between 0 and 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*3iZTK8i072gCxdISo5qEdQ.png" /><figcaption>Scaling to same magnitude in Gradient descent</figcaption></figure><p>It is a technique to standardise the independent variables present to a fixed range in order to bring all values to same magnitudes.Generally performed during the data pre-processing step and also helps in speeding up the calculations in an algorithm. <strong>Used in Linear Regression, K-means, KNN,PCA, Gradient Descent etc.</strong></p><p><strong>Why scaling needed ?</strong></p><p>Feature Scaling should be performed on independent variables that vary in magnitudes, units, and range to standardise to a fixed range.<br>If no scaling, then a machine learning algorithm assign higher weight to greater values regardless of the unit of the values. As the range of values of raw data varies widely, in some machine learning algorithms, objective functions will not work properly without normalization. <strong>For example:-</strong></p><p>ML consider the value 1000 gram &gt; 2 kilogram or the value 3000 meter greater than 5 km and hence the algorithm will give wrong predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WtcoIexbZgymhxM0.jpg" /><figcaption>Features weight mismatch</figcaption></figure><p>Many classifiers calculate the distance between two points by the Euclidean distance. If one of the features has a broad range of values, the distance will be governed by this particular feature. <br>Therefore, the range of all features should be normalized so that each feature contributes approximately proportionately to the final distance.Another reason why feature scaling is applied is that gradient descent converges much faster with feature scaling than without it. <strong>In short we scale down to same scale.</strong></p><p><strong>Algorithm which is NOT distance based are not affected by feature scaling. eg. Naive Bayes</strong></p><p>Mainly four types of feature scaling :-</p><ol><li><strong>Min-Max Scaling (Scaling) :-</strong> It differs from normalisation in the sense that here sole motive to change range of data whereas as in Normalization/standardization , the sole motive is to normalise the distribution shape curve and to make it perfect Gaussian curve.the data is scaled to a fixed range — usually 0 to 1.The cost of having this bounded range in contrast to standardization is that we will end up with smaller standard deviations, which can suppress the effect of outliers.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*oFYQQEf737GcC0yaI1Mm_Q.png" /></figure><p><strong>Used in Deep learning, Image processing and Convolution neural network.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*3WgxsRITsuiqP0n8GN0GVA.png" /></figure><p>2. <strong>Mean Normalization :- </strong>The point of normalization is to change your observations so that they can be described as a normal distribution.Normal distribution (Gaussian distribution), also known as the <strong>bell curve</strong>, is a specific statistical distribution where a roughly equal observations fall above and below the mean. varies between -1 to 1 with mean = 0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*84DYfUyEMEZaUqeq5sH6MA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*sJ0IZ6J4YYOBNja2oA8J_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*qIyQ8akfPlL49o09CdXGWg.png" /></figure><p>3. <strong>Standardization (Z-score normalization):- </strong>transforms your data such that the resulting distribution has a mean of 0 and a standard deviation of 1. <strong>μ=0 and σ=1. Mainly used in KNN and K-means.</strong></p><p>where μ is the mean (average) and σ is the standard deviation from the mean; standard scores (also called <strong><em>z</em></strong> scores) of the samples are calculated as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*6L9YyvS8BLLWtmuIXETSeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*751oc6ohYiTH3nUUBfVvaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*GiMZurXUhYvkm5jRDc55HA.png" /></figure><p>4. <strong>Binarize Data (Make Binary) :-</strong><br>You can transform your data using a binary threshold. All values above the threshold are marked 1 and all equal to or below are marked as 0. This is called binarizing your data or thresholding your data. It can be useful when you have probabilities that you want to make crisp values. It is also useful when feature engineering and you want to add new features that indicate something meaningful. You can create new binary attributes in Python using scikit-learn with the <strong>Binarizer class</strong></p><p><strong># binarization from sklearn.preprocessing import Binarizer </strong><br>http://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.Normalizer.html <a href="http://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.Binarizer.html">http://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.Binarizer.html</a></p><p>5. <strong>Unit Vector :- </strong>Scaling is done considering the whole feature values to be of unit length.When dealing with features with hard boundaries this is quite useful. For example, when dealing with image data, the colours can range from only 0 to 255.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*44-F4J49Gw72rEO046a-_g.png" /></figure><p>Follow my example jupyter notebook code here :- <a href="https://github.com/NishantKumar61988/nishucode/blob/master/Feature_Scaling_Tutorial.ipynb">github</a></p><p><strong><em>All the Best ! Happy coding…..</em></strong></p><p><a href="https://www.facebook.com/NishuArt-109507937410651/?modal=admin_todo_tour">Facebook </a>| <a href="https://www.instagram.com/datasciencewithmemes/">Instagram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c920ed3637e7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/feature-scaling-normalization-standardization-and-scaling-c920ed3637e7">Feature Scaling :- Normalization, Standardization and Scaling !</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dataset sources for DataScience Lovers]]></title>
            <link>https://nishant61988.medium.com/dataset-sources-for-datascience-lovers-7484b3f78a8f?source=rss-f67d1b967a9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7484b3f78a8f</guid>
            <category><![CDATA[dataset]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Nishant Kumar]]></dc:creator>
            <pubDate>Wed, 01 Apr 2020 19:40:56 GMT</pubDate>
            <atom:updated>2024-05-08T19:31:51.088Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi Friends ! Data is the new oil flowing freely, continuously. We need to build a dam to store it and use it for modelling using ML algorithm. Here are some of the sources for Datasets :-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E8FspbjpTPFVPlWR" /><figcaption>Data Mining</figcaption></figure><p><strong>Kaggle Dataset:-</strong><br><a href="https://www.kaggle.com/">https://www.kaggle.com/</a><br><a href="https://www.kaggle.com/mylesoneill/game-of-thrones">https://www.kaggle.com/mylesoneill/game-of-thrones</a></p><p><strong>UCI Machine Learning Repository:</strong><br><a href="https://archive.ics.uci.edu/ml/index.php">https://archive.ics.uci.edu/ml/index.php</a></p><p><strong>UNICEF:-</strong><br><a href="https://data.unicef.org/">https://data.unicef.org/</a></p><p>UNICEF’s open datasets published on the IATI Registry: <a href="http://www.iatiregistry.org/publisher/unicef"><strong>http://www.iatiregistry.org/publisher/unicef</strong></a> has been extracted directly from UNICEF’s operating system (VISION) and<br>other data systems, and it reflects inputs made by individual UNICEF offices.</p><p><strong>UCI Machine Learning Repository:-</strong><br><a href="https://archive.ics.uci.edu/ml/index.php">https://archive.ics.uci.edu/ml/index.php</a></p><p><strong>fivethirtyeight:-</strong><br><a href="https://data.fivethirtyeight.com/">https://data.fivethirtyeight.com/</a></p><p><strong>WHO (World Health Organization) — Open data repository:-</strong><br><a href="https://www.who.int/gho/database/en/">https://www.who.int/gho/database/en/</a></p><p><strong>Amazon dataset:-</strong><br><a href="https://aws.amazon.com/s3/">https://aws.amazon.com/s3/</a></p><p><strong>Google’s Datasets Search Engine:-google dataset search</strong></p><p><strong>NZ Dataset:-</strong><br><a href="https://catalogue.data.govt.nz/dataset">https://catalogue.data.govt.nz/dataset</a></p><p><strong>INDIAN Government Dataset:-</strong><br><a href="https://data.gov.in/">https://data.gov.in/</a></p><p><strong>US Govt. Dataset:-</strong><br><a href="https://www.data.gov/">https://www.data.gov/</a></p><p><strong>Europe Dataset:-</strong><br><a href="https://data.europa.eu/euodp/data/dataset">https://data.europa.eu/euodp/data/dataset</a></p><p><strong>UK Dataset:-</strong><br><a href="https://www.opendatani.gov.uk/">https://www.opendatani.gov.uk/</a></p><p><strong>Awesome Public Datasets from GitHub:-</strong><br><a href="https://github.com/awesomedata/awesome-public-datasets">https://github.com/awesomedata/awesome-public-datasets</a></p><p><strong>Makeover Monday:-</strong><br><a href="https://www.makeovermonday.co.uk/data/">https://www.makeovermonday.co.uk/data/</a></p><p><strong>Reddit/r/datasets/:-</strong><br><a href="https://www.reddit.com/r/datasets/">https://www.reddit.com/r/datasets/</a></p><p><strong>Data is Plural:-</strong><br><a href="https://tinyletter.com/data-is-plural">https://tinyletter.com/data-is-plural</a></p><p><strong>Numerous Dataset List:-</strong><br><a href="https://paperswithcode.com/datasets">https://paperswithcode.com/datasets</a></p><p>Some more links:-</p><p><strong>1</strong>. Google Dataset Search — <a href="https://lnkd.in/eGR9BAey">https://lnkd.in/eGR9BAey</a><br>𝟮. IBM Data Asset eXchange — <a href="https://lnkd.in/eKaWvF_K">https://lnkd.in/eKaWvF_K</a><br>𝟯. Nasdaq Data Link — <a href="https://lnkd.in/eaXmdhvi">https://lnkd.in/eaXmdhvi</a><br>𝟰. Data .gov US — <a href="https://data.gov/">https://data.gov/</a><br>𝟱. Earth Data (NASA) — <a href="https://lnkd.in/em3KyCRw">https://lnkd.in/em3KyCRw</a><br>𝟲. AWS Open Data — <a href="https://lnkd.in/eDy45QFD">https://lnkd.in/eDy45QFD</a><br>𝟳. FBI Crime Data Explorer — <a href="https://lnkd.in/egnvsxwb">https://lnkd.in/egnvsxwb</a><br>𝟴. Data .gov UK — <a href="https://www.data.gov.uk/">https://www.data.gov.uk/</a><br>𝟵. CERN Open Data Portal — <a href="https://opendata.cern.ch/">https://opendata.cern.ch/</a><br>𝟭𝟬. Antarctic Datasets — <a href="https://lnkd.in/eDbVjQBv">https://lnkd.in/eDbVjQBv</a><br>𝟭𝟭. BFI film industry statistics — <a href="https://lnkd.in/e3NTRd2S">https://lnkd.in/e3NTRd2S</a><br>𝟭𝟮. NYC Taxi Trip Data — <a href="https://lnkd.in/ez9-VKhB">https://lnkd.in/ez9-VKhB</a><br>𝟭<strong>3</strong>. The Official Portal for European Data — <a href="https://lnkd.in/ei2AxvyJ">https://lnkd.in/ei2AxvyJ</a><br>𝟭<strong>4</strong>. Health Data — <a href="https://healthdata.gov/">https://healthdata.gov/</a><br>𝟭<strong>5</strong>. Centers For Disease Control And Prevention — <a href="https://lnkd.in/eUSFqhkq">https://lnkd.in/eUSFqhkq</a><br><strong>𝟭6</strong>. FiveThirtyEight — <a href="https://lnkd.in/ePptSfu8">https://lnkd.in/ePptSfu8</a><br>𝟭<strong>7</strong>. Datahub .io — <a href="https://lnkd.in/efeRzvp4">https://lnkd.in/efeRzvp4</a><br><strong>18</strong>. Global Health Observatory Data Repository — <a href="https://lnkd.in/e_BNrthm">https://lnkd.in/e_BNrthm</a><br>𝟭<strong>9</strong>. Latin American Data Bank — <a href="https://lnkd.in/eJXcXSP2">https://lnkd.in/eJXcXSP2</a><br>𝟮<strong>0</strong>. IMDb Non-Commercial Datasets — <a href="https://lnkd.in/epS8jgUi">https://lnkd.in/epS8jgUi</a></p><p>Play around with these data. To start with ML concepts, you can use Titanic Dataset for EDA and Linear regression. All the Best !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7484b3f78a8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unsupervised Learning — Principal Component Analysis (PCA)]]></title>
            <link>https://medium.com/analytics-vidhya/unsupervised-learning-principal-component-analysis-pca-dc94fecef09b?source=rss-f67d1b967a9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc94fecef09b</guid>
            <category><![CDATA[principal-component]]></category>
            <category><![CDATA[apc]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[feature-extraction]]></category>
            <dc:creator><![CDATA[Nishant Kumar]]></dc:creator>
            <pubDate>Sun, 29 Mar 2020 13:43:33 GMT</pubDate>
            <atom:updated>2024-03-07T04:58:40.023Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unsupervised Learning — Principal Component Analysis (PCA)</h3><p>Namaste from INDIA! (corona effect). Lend me your ears/eyes to deep dive into PCA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*434U170St9pKULGy" /><figcaption>Random PIC (to get attention :))</figcaption></figure><p>Lets take example of COVID-19 dataset where no. of datapoints are very less compared to no, of features or variables which leads to <strong>curse of dimensionality</strong> error, PCA comes as a saviour. Principal component analysis is a dimensionality reduction technique by identifying correlations and patterns in a dataset so that it can be transformed into a dataset of significantly lower dimension without loss of any important information. <br>So, it’s a feature <a href="https://www.analyticsvidhya.com/blog/2022/01/nlp-tutorials-part-ii-feature-extraction/#:~:text=We%20are%20able%20to%20clean,to%20take%20the%20second%20step.&amp;text=After%20getting%20cleaned%20data%20our,process%20is%20called%20feature%20extraction.?utm_source=Backlink&amp;utm_medium=SEO"><strong>extraction technique</strong></a> to combine i/p variables/features in a specific way, in order <strong>drop the “least important” variables</strong> while still retaining the most valuable parts of all of the variables. Each of the “new” variables after <a href="https://www.analyticsvidhya.com/blog/2022/07/principal-component-analysis-beginner-friendly/?utm_source=Backlink&amp;utm_medium=SEO"><strong>PCA</strong></a> are all independent of one another. This is a benefit because the assumptions of a linear model require our independent variables to be independent of one another. If we decide to fit a linear regression model with these “new” variables , this assumption will necessarily be satisfied.</p><p>In fact, every principal component will ALWAYS be orthogonal (perpendicular) to every other principal component. Because our principal components are orthogonal to one another, they are statistically linearly independent of one another. <strong>In general, the nth principal component of a dataset is perpendicular to the (n — 1)th principal component of the same dataset.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/0*5JM3hqmrmlkxaT4v" /><figcaption>PCA</figcaption></figure><p>Principal component analysis is a method that rotates the dataset in a way such that the rotated features are statistically uncorrelated. This rotation is often followed by selecting only a subset of the new features, according to how important they are for explaining the data. <br> PCA is a way of reducing the number of independent variables in a dataset and is particularly applicable when the ratio of data points to independent variables is low. PCA transforms a linear combination of variables such that the resulting variable expresses the maximum variance within the combination of variables.</p><p>Principal component analysis (PCA) is a statistical procedure that uses an orthogonal transformation to convert a set of observations of possibly correlated variables into a set of values of linearly uncorrelated variables called principal components.<br>This transformation is defined in such a way that the first principal component has the largest possible variance (that is, accounts for as much of the variability in the data as possible),PCA is mostly used as a tool in exploratory data analysis and for making predictive models. It is often used to visualize genetic distance and relatedness between populations. PCA can be done by eigenvalue decomposition of a data covariance (or correlation) matrix or singular value decomposition of a data matrix, usually after a normalization step of the initial data. The normalization of each attribute consists of mean center — subtracting each data value from its variable’s measured mean so that its empirical mean (average) is zero — and,<br>possibly, normalizing each variable’s variance to make it equal to 1; see Z-scores. and each succeeding component in turn has the highest variance possible under the constraint that it is orthogonal to the preceding components.</p><p>=&gt;Highly correlated features — means High Bias — Remove 1 variable out of that.</p><p>=&gt;PCA removes inconsistencies, redundant data and highly correlated features.</p><p>=&gt; Non-Parametric and solves overfitting — occur by high -dimesionality. Filter noisy dataset eg. — image compression.</p><p>PCA steps:<br><strong>1. Standardization of data :- </strong><br> Scaling Data — major pre-processing steps in PCA is to scale the variables using z-score or standardscalar to scale each variable so that both of them have similar range, due to which variance can be comparable.<br> <strong>z = variable value — mean/ standard deviation</strong><br><strong>2. Computing Covariance matrix :-</strong> measure of how each variable is associated with one another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/0*_3O-6AkYObIHmSx8.png" /></figure><p><strong>3. Calculating EigenVectore and EigenValues:-</strong><br>The directions in which our data are dispersed. (Eigenvectors.) — Vectors whose direction doesn’t change upon linear transformation.<br>The relative importance of these different directions. (Eigenvalues.) — denaotes scalar of respection eigenvectors<br>PCA combines our predictors and allows us to drop the eigenvectors that are relatively unimportant.<br><strong>4. Computing Principal Components :-</strong><br>Principal components are basically vectors that are linearly uncorrelated and have a variance with in data. From the principal components top p is picked which have the most variance.<br>PCA transforms a linear combination of variables such that the resulting variable expresses the maximum variance within the combination of variables.<br>New set of variables from actual are obtained by ordering Eigen vectors in descending order, where the eigenVector with Highest eigenvalue is the most significant and thus forms the First Principal Component.<br><strong>5. Reducing the dimension of data by selecting best components without information loss.</strong></p><p><strong>Python code sample:-</strong></p><p># scaling<br>from scipy.stats import zscore<br>XScaled=X.apply(zscore)<br>XScaled.head()<br># Covariance<br>covMatrix = np.cov(XScaled,rowvar=False)<br>print(covMatrix)<br># PCA<br>pca = PCA(n_components=6)<br>pca.fit(XScaled)<br>#Eigenvalues<br>print(pca.explained_variance_)<br>#Eigenvectors<br>print(pca.components_)<br>#percentage of variation explained by each eigen Vector<br>print(pca.explained_variance_ratio_)</p><p># based on the values chose 3 best components and then use Regression with these component features<br>pca3 = PCA(n_components=3)<br>pca3.fit(XScaled)<br>print(pca3.components_)<br>print(pca3.explained_variance_ratio_)<br>Xpca3 = pca3.transform(XScaled)</p><p>regression_model_pca = LinearRegression()<br>regression_model_pca.fit(Xpca3, y)<br>regression_model_pca.score(Xpca3, y)</p><p>Refrence :-<br><a href="https://scikit-learn.org/stable/modules/generated/sklearn.decomposition.PCA.html">https://scikit-learn.org/stable/modules/generated/sklearn.decomposition.PCA.html</a><br><a href="https://medium.com/@raghavan99o/principal-component-analysis-pca-explained-and-implemented-eeab7cb73b72">https://medium.com/@raghavan99o/principal-component-analysis-pca-explained-and-implemented-eeab7cb73b72</a><br><a href="https://medium.com/@aptrishu/understanding-principle-component-analysis-e32be0253ef0">https://medium.com/@aptrishu/understanding-principle-component-analysis-e32be0253ef0</a><br><a href="https://medium.com/@aptrishu/understanding-principle-component-analysis-e32be0253ef0">https://medium.com/@aptrishu/understanding-principle-component-analysis-e32be0253ef0</a></p><p>Follow my other blogs:-</p><p><a href="https://medium.com/@nishu61988/dataset-sources-for-datascience-lovers-7484b3f78a8f?source=your_stories_page---------------------------">Dataset sources for DataScience Lovers</a></p><p><a href="https://www.facebook.com/NishuArt-109507937410651/?modal=admin_todo_tour">Facebook </a>| <a href="https://www.instagram.com/datasciencewithmemes/">Instagram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc94fecef09b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/unsupervised-learning-principal-component-analysis-pca-dc94fecef09b">Unsupervised Learning — Principal Component Analysis (PCA)</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveil DataScience/AI/ML Myths]]></title>
            <link>https://medium.com/analytics-vidhya/unveil-datascience-ai-ml-myths-ece412ce3752?source=rss-f67d1b967a9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ece412ce3752</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[machine-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Nishant Kumar]]></dc:creator>
            <pubDate>Sun, 15 Mar 2020 19:10:37 GMT</pubDate>
            <atom:updated>2020-05-19T09:15:52.675Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unveil DataScience/AIML Myths</h3><p><em>Hello Folks ! Thinking of moving on to Data science career just because of lucrative Salary ? Hold On. Have a glance on this article, introspect and then decide.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ruKDmAkmJGUDHRkC" /><figcaption><strong>I am the future</strong></figcaption></figure><p><strong><em>Common doubts and myths about Datascience :-</em></strong></p><ol><li><strong>Are Data scientist, Data Analyst, Data Engineer same?</strong><br>No. They aren’t.</li></ol><p><strong>Data Engineer :- </strong>Focus on data collection and storage. Build Data pipelines ans storage solutions. Information Architect. Maintain Data Access.<br><em>Skills:-</em> <em>SQL — To store and organize data.java, Scala,Hadoop, Python-to process data.Shell Command to automate and run task.</em></p><p><strong>Data Analyst :-</strong> Focus on data Preparation, Exploration and visualistion for reports /dashboards to summarize data. Data cleaning.<br><em>Skills :- SQL, Excel, and Power BI, SSAS, Tableau , Python for Data Visualisation.</em></p><p><strong>Data Scientist :-</strong> Data Preparation -Data cleaning, Feature Engineering, Feature scaling.<br>EDA — Exploration using charts, Visualisation using scikit package graphs<br>Experiment and Prediction -using ML algorithm.<br>Skills :- Statistics, Tableau, Python/R, AZURE-ML, AWS-ML.</p><p><strong>ML Engineer :-</strong> More specific to prediction using algos and Deep Learning for AI. — Image processing, NLP.</p><p><strong>2. Is Data Scientist a highly paid Job?</strong><br>There is a buzz and hype at present and indeed it is highly paid job for right candidate but as the market grows and more people flush in , situation may not be the same.</p><p><strong>3. Do we need prior programming knowledge ?</strong><br>Not exactly. Although you need analytical skills, functional approach.</p><p><strong>4. Do we need heavy Mathematics ?</strong><br>School level Probability, statistics, Linear Algebra and Calculus is enough.</p><p><strong>5. Python OR R?</strong><br>Each language comes with it’s own Pro-cons. However Python has more advanced community support and ML libraries. R is used mainly in Visualisation.</p><p><strong>6. Should I join course or not ?</strong><br>If you have self-learning ability then there are enough material available online on youtube. Otherwise you can join Online/Offline course like<br><strong>Great-learning, Edureka, Coursera, Upgrad, Datacamp, Simplilearn.</strong></p><figure><img alt="https://analyticsindiamag.com/top-10-courses-and-training-programs-on-artificial-intelligence-in-india-ranking-2019/" src="https://cdn-images-1.medium.com/max/963/1*eOVtBnGHyzAIIfIVI7fGvw.png" /><figcaption>Source:- https://analyticsindiamag.com/</figcaption></figure><p><strong>7. Will Data-science profile suit me ?</strong><br>If you like to play with Data, have analytical approach and love Maths then you can excel. And if you wanna transition to some other career option like this just because you are underpaid, stuck in some boring job or not liking Hard core programming like Java, .Net then <em>BEWARE..</em> you may repent later.</p><p><strong>So, What is Data Science:- </strong>It is a combo of Maths, data analysis and machine learning algorithm to extract Knowledge/info based on prediction from structured/unstructured data. Further ML and Deep ML is used in AI. the scope and impact of data science will continue to expand enormously in coming decades as scientific data and data about science itself become ubiquitously available. Start with below books :-</p><ol><li>Intoduction to machine Learning with Python — O’Reilly</li><li>Python Machine Learning — Packt- Sebastian Raschka</li><li>Hands-On ML with Scikit-Learn &amp; TensorFlow — O’Reilly</li><li>Applied Artificial Intelligence — Handbook.</li></ol><p>All the Best ! Let’s Start.</p><p>Do checkout my other blogs:-</p><p><em>✔</em><a href="https://medium.com/ai-in-plain-english/cross-validation-k-fold-f7980608f302?source=your_stories_page---------------------------"><em>Cross Validation Machine Learning: K-Fold</em></a></p><p><em>✔</em><a href="https://medium.com/ai-in-plain-english/model-performance-hyper-parameter-tuning-9a5d15c094bf?source=your_stories_page---------------------------"><em>Model Performance -Hyper-parameter Tuning</em></a></p><p><a href="https://www.facebook.com/NishuArt-109507937410651/?modal=admin_todo_tour">Facebook </a>| <a href="https://www.instagram.com/datasciencewithmemes/">Instagram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ece412ce3752" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/unveil-datascience-ai-ml-myths-ece412ce3752">Unveil DataScience/AI/ML Myths</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>