<?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 Pratik Chhapolika on Medium]]></title>
        <description><![CDATA[Stories by Pratik Chhapolika on Medium]]></description>
        <link>https://medium.com/@pratikchhapolika1?source=rss-63c0e92202e0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*183DM4rjko8eXggPSNe1BQ.jpeg</url>
            <title>Stories by Pratik Chhapolika on Medium</title>
            <link>https://medium.com/@pratikchhapolika1?source=rss-63c0e92202e0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:51:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pratikchhapolika1/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[Why Are Companies Mandating a Return to Office? Let’s Break It Down.]]></title>
            <link>https://pratikchhapolika1.medium.com/why-are-companies-mandating-a-return-to-office-lets-break-it-down-7589fefb37ff?source=rss-63c0e92202e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7589fefb37ff</guid>
            <category><![CDATA[work-from-home]]></category>
            <category><![CDATA[remote-work]]></category>
            <category><![CDATA[worklife-balance]]></category>
            <category><![CDATA[peace-of-mind]]></category>
            <category><![CDATA[employee-wellbeing]]></category>
            <dc:creator><![CDATA[Pratik Chhapolika]]></dc:creator>
            <pubDate>Sat, 12 Apr 2025 08:31:38 GMT</pubDate>
            <atom:updated>2025-04-12T08:40:35.197Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Rethinking the Return-to-Office Mandate: Embracing Flexibility Over Outdated Norms</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*gbn105C7TQPseLb9" /></figure><p>When COVID‑19 sent us all home in March 2020, we learned firsthand that virtually any knowledge‑work function — from software engineering, UX/UI design, data analysis, to copywriting — can be executed just as effectively (if not more so) from a kitchen table as from a high‑rise office. A U.S. Bureau of Labor Statistics study even found that industries with the largest uptick in remote work between 2019 and 2021 saw the strongest gains in total‑factor productivity, even after accounting for pre‑pandemic trends .</p><p>Yet, despite this breakthrough evidence of remote work efficacy, organizations have oscillated in their approach — from one day per week in the office during 2021 to two and three days in 2022, and now a full five‑day return mandate is being imposed by many. A recent analysis by the University of Pittsburgh on S&amp;P 500 companies revealed that these rigid return-to-office (RTO) policies did not translate into measurable gains in revenue or market capitalization; instead, they were associated with significant declines in employee satisfaction and engagement .</p><p>Despite this, many organizations have shifted from flexible remote policies to mandating full-time office returns. A University of Pittsburgh analysis of S&amp;P 500 companies showed no measurable uptick in revenue or market cap following return-to-office (RTO) mandates; instead, they recorded significant declines in employee satisfaction and engagement.​</p><p><strong>So, what’s driving this push back to the office?</strong></p><ol><li><strong>Real Estate Investments:</strong> Companies with substantial investments in office spaces may feel compelled to utilize these assets fully.​</li><li><strong>Perceived Productivity:</strong> Some leaders believe in-person work enhances collaboration and productivity, despite evidence to the contrary.​</li><li><strong>Control and Oversight:</strong> There’s a notion that physical presence equates to better oversight, even if remote work has proven effective.​</li></ol><p><strong>The Human Cost:</strong></p><ul><li><strong>Employee Well-being:</strong> Mandated office returns can negatively impact morale, job satisfaction, and overall productivity.​</li><li><strong>Commute Stress:</strong> Longer transit times can lead to increased stress and reduced focus.​</li><li><strong>Fear of Repercussions:</strong> Employees may hesitate to express concerns about RTO policies, fearing it could affect their career progression.​</li></ul><p><strong>A Path Forward:</strong></p><p>Organizations should consider role-specific analyses to determine the necessity of in-office work, focus on outcome-oriented metrics, and foster a culture of trust and flexibility. Empowering employees to choose their work environment can lead to increased satisfaction and productivity.​</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bq7uQoJQ_yo-Lf7z.png" /></figure><h3>The Case for Remote Work [Details]</h3><p><strong>Demonstrated Productivity:</strong><br> The COVID‑19 experiment showcased that most knowledge workers — whether software developers, marketers, financial analysts, or HR professionals — thrived in a remote environment. This shift not only maintained productivity but, in many cases, enhanced it. Studies from PwC and Buffer confirm the benefits of remote work with improvements in work–life balance and measurable gains in deliverables , .</p><p><strong>Role‑Specific Needs:</strong><br> Not every role requires full‑time on‑site presence. The few exceptions include:</p><ul><li><strong>Physical‑Plant and Equipment‑Intensive Functions:</strong> Such as manufacturing, labs, and certain R&amp;D activities.</li><li><strong>Customer‑Facing Services:</strong> Roles in healthcare or retail that necessitate specialized on‑premise tools or infrastructure.<br> For the vast majority of knowledge workers, modern collaborative technologies allow for seamless, asynchronous collaboration without sacrificing innovation or speed.</li></ul><h3>Unraveling the Mandate: Hidden Motives?</h3><p><strong>Real‑Estate &amp; Political Incentives:</strong><br> Empty desks represent lost rent, reduced property taxes, and diminished foot traffic for local businesses. These economic considerations, alongside political and commercial-landlord pressures, often push organizations toward a five‑day office mandate. Reoccupied office spaces help sustain commercial real estate values and support local economies — even if the financial benefits to companies are marginal .</p><p><strong>Optics Over Outcomes:</strong><br> There is a prevailing belief among some managers that “out of sight, out of mind” equates to reduced productivity. In reality, research shows that remote workers often spend 10 minutes less per day on non‑value‑adding tasks and, on average, effectively add an extra workday’s output per week. This misalignment between presence and performance creates an environment where physical attendance is valued far more than actual results.</p><p><strong>The Pretext of “Collaboration”:</strong><br> Advocates for mandatory in‑office time argue that spontaneous, face‑to‑face interactions drive innovation. While in‑person conversations can spark ideas, structured digital whiteboards, Slack threads, and video brainstorming sessions have proven to yield richer, documented outcomes that are accessible long after the conversation ends. This suggests that the need for physical presence is less about genuine collaboration and more about traditional perceptions of work.</p><h3>The Human Cost and Hidden Risks</h3><p><strong>Fear‑Driven Feedback:</strong><br> Internal “anonymous” surveys often filter through HR systems, meaning employees might self‑censor their true opinions. Concerns about career progression have led many to conform to the “company line,” further skewing feedback on remote work policies.</p><p><strong>Career‑Risk Anxiety:</strong><br> Employees are increasingly wary of requesting hybrid arrangements or voicing their concerns, fearing negative impacts on promotions or project assignments. This anxiety contributes to a climate where speaking up about work preferences becomes a risky proposition.</p><p><strong>Commute‑Related Burnout:</strong><br> Time spent in traffic isn’t just lost productivity — it’s a drain on mental health. Lengthy commutes elevate stress levels and diminish the “deep work” hours necessary for high‑impact deliverables. The net result is a workforce that is less engaged and more prone to burnout.</p><h3>A Call for Enlightened Leadership</h3><p>What truly matters is that an employee’s credibility should rest solely on the quality and timeliness of their deliverables — not on the number of days they spend at a desk. To unlock the full potential of our teams, organizations must pivot towards a model that emphasizes:</p><ol><li><strong>Role‑Specific Analysis:</strong> Rigorously assess which functions genuinely require on‑site presence.</li><li><strong>Outcome‑Oriented Metrics:</strong> Measure cycle times, deliverable quality, and overall team engagement instead of merely tracking badge‑swipes.</li><li><strong>Trust &amp; Flexibility:</strong> Empower employees to choose the work environment in which they excel, while holding them accountable to clear performance goals.</li></ol><p>Leaders must resist the pressures of political incentives and the outdated optics of physical presence. Instead, they should focus on cultivating a culture of trust, support, and flexibility. After all, when employees feel empowered rather than policed, they transform from workers driven by obligation into innovators fueled by passion.</p><p><strong>If you want change, be the change.</strong> Your people are the pillars of your organization — support them, and they will build the future you envision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JWOT2eGhpMPEYv9c.png" /></figure><p><strong>References and Further Reading:</strong></p><ul><li>The rise in remote work since the pandemic and its impact on productivity : Beyond the Numbers: U.S. Bureau of Labor Statistics<br><a href="https://www.bls.gov/opub/btn/volume-13/remote-work-productivity.htm">https://www.bls.gov/opub/btn/volume-13/remote-work-productivity.htm</a></li><li>Is remote work bad for productivity? — Anita Lettink<br><a href="https://anitalettink.com/futureofwork/is-remote-work-bad-for-productivity/">https://anitalettink.com/futureofwork/is-remote-work-bad-for-productivity/</a></li><li>Surprising Working From Home Productivity Statistics (2025)<br><a href="https://www.apollotechnical.com/working-from-home-productivity-statistics/?utm_source=chatgpt.com">https://www.apollotechnical.com/working-from-home-productivity-statistics/</a></li><li><strong>U.S. Bureau of Labor Statistics:</strong> <a href="https://www.bls.gov/">https://www.bls.gov</a></li><li><strong>Buffer’s State of Remote Work 2022:</strong> <a href="https://buffer.com/state-of-remote-work/2022">https://buffer.com/state-of-remote-work/2022</a></li><li><a href="https://www.timechamp.io/blogs/40-must-know-remote-work-statistic">https://www.timechamp.io/blogs/40-must-know-remote-work-statistic</a></li></ul><p><em>Let this post serve as a reminder that our future hinges on valuing outcomes over outdated processes, and on building a work culture where innovation and well‑being go hand in hand.</em></p><p><em>If you want change, be the change. Support your employees, and they’ll build the future you seek.</em></p><p>— Pratik <a href="https://www.linkedin.com/in/pratikchhapolika/">https://www.linkedin.com/in/pratikchhapolika/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7589fefb37ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Full Supervision: Active Learning and Data Programming]]></title>
            <link>https://pratikchhapolika1.medium.com/beyond-full-supervision-active-learning-and-data-programming-b8b2b2ff240a?source=rss-63c0e92202e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8b2b2ff240a</guid>
            <category><![CDATA[active-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-programming]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Pratik Chhapolika]]></dc:creator>
            <pubDate>Wed, 16 Jun 2021 06:30:28 GMT</pubDate>
            <atom:updated>2021-06-16T06:30:28.365Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article I have summarized recent papers, journals and articles on <strong>Data Programming.</strong></p><p><strong>What is Data Programing and why we need it?</strong></p><p>Representative weak supervision technique of employing humans to develop labelling functions (LFs) to label data (ex: person riding a bike). A simple, unifying framework for weak supervision, in which training labels are noisy and may be from multiple, potentially overlapping sources. Training data is the bottleneck in building ML systems today.</p><p>For example, consider the scenario when two labeling functions of differing quality and scope overlap and possibly conflict on certain training examples; in prior approaches the user would have to decide which one to use, or how to somehow integrate the signal from both. In data programming, we accomplish this automatically by learning a model of the training set that includes both labeling functions. Additionally, users are often aware of, or able to induce, dependencies between their labeling functions. In data programming, users can provide a dependency graph to indicate, for example, that two labeling functions are similar, or that one “fixes” or “reinforces” another. We describe cases in which we can learn the strength of these dependencies, and for which our generalization is again asymptotically identical to the supervised case.</p><p>However, initial feedback from users suggests that writing labeling functions in the framework of data programming may be easier. While the impact of a feature on end performance is dependent on the training set and on statistical characteristics of the model, a labeling function has a simple and intuitive optimality criterion: that it labels data correctly. Motivated by this, we explore whether we can flip the traditional machine learning development process on its head, having users instead focus on generating training sets large enough to support automatically-generated features.</p><p><strong>Some significant drawbacks of hand-labeling training data:</strong></p><ul><li>Expensive</li><li>Slow</li><li>Static ( Applications in real world works iteratively)</li></ul><p><strong>Related work in this area:</strong></p><ul><li>Distant Supervision</li><li>Using external knowledge bases such as Wikipedia, Freebase etc.</li><li>Crowd Sourcing</li><li>Mechanical Turk</li><li>Co-Training</li><li>Combining labeled and unlabeled data — using two views</li><li>Boosting</li><li>Combining many weak classifiers</li></ul><p><strong>Dealing with lack of annotated data.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*g9Qrt-xn2VhXhCPcKhErQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*34r1da1IXpi7HKIrlbASbA.png" /></figure><p><strong>Labeling functions vs Hand Labeling</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*c53zxDhuqWAdKJnWY5fT6A.png" /></figure><p><strong>Labeling Functions:</strong></p><p>Process of labeling a training set, enables users to quickly create large but noisy training set using standard scripting language.</p><ul><li><strong>Keyword searches</strong>: looking for specific words in a sentence</li><li><strong>Pattern matching</strong>: looking for specific syntactical patterns</li><li><strong>Third-party models</strong>: using an pre-trained model (usually a model for a different task than the one at hand)</li><li><strong>Distant supervision</strong>: using external knowledge base</li><li><strong>Crowdworker labels</strong>: treating each crowdworker as a black-box function that assigns labels to subsets of the data</li></ul><p><strong>Metrics for labeling Functions:</strong></p><p>Lots of statistics about labelling functions, like coverage, are useful when building any application. Following summary statistics for multiple LFs at once:</p><ul><li><strong>Polarity</strong>: The set of unique labels this LF outputs (excluding abstains)</li><li><strong>Coverage</strong>: The fraction of the dataset the LF labels</li><li><strong>Overlaps</strong>: The fraction of the dataset where this LF and at least one other LF label</li><li><strong>Conflicts</strong>: The fraction of the dataset where this LF and at least one other LF label and disagree</li><li><strong>Correct</strong>: The number of data points this LF labels correctly (if gold labels are provided)</li><li><strong>Incorrect</strong>: The number of data points this LF labels incorrectly (if gold labels are provided)</li><li><strong>Empirical Accuracy</strong>: The empirical accuracy of this LF (if gold labels are provided)</li></ul><p><strong>An example of extracting mentions of gene-disease relations from the scientific literature.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*MMc9LAxRnYrfhwNtto1Iqw.png" /></figure><p><strong>DATA STATISTICS:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*DbCqWJ-_3MrRVaxMQHhGtQ.png" /></figure><p>Labeling function (LF) summary statistics, sizes of generated training sets S (only counting non-zero labels), and relative F1 score improvement over baseline IRT methods for hand-tuned (HT) and LSTM-generated (LSTM) feature sets.</p><p><strong>TYPES OF LABELING FUNCTIONS:</strong></p><ul><li>Discrete labeling functions: Matches one of the trigger words in the set trigWord2 = {’gift’,’click’,’new’,’online’,,’urgent’}</li></ul><pre> def LF(c): <br>     return (1,1) if   len(trigWord2.intersection(c[’text’].split())) &gt; 0. else (0,0)</pre><ul><li>Continuous labeling functions: Instead of -1, +1 values it provides a continuous value between -1 to +1 or 0 to 1.</li></ul><pre>def CLF(c): <br>    sc = 0 word_vectors = get_word_vectors(c[’text’].split()) for w in trigWord1: c=max(sc,get_similarity(word_vectors,w)) return (1,sc)</pre><p><strong>Data Programming using Continuous and Quality-Guided Labeling Functions</strong></p><p><strong>CAGE</strong>, which stands for Continuous And quality Guided labeling functions makes the data programming paradigm more reliable than other tricks based on initialization, sign-penalties, or soft accuracy constraints.</p><ul><li>Supporting continuous labeling functions (generalizations of discrete LFs)</li><li>Proposes a carefully parameterized graphical model that outperforms existing models even for discrete LFs and permits easy incorporation of user priors for continuous LFs.</li><li>It extends the generative model through quality guides, thereby increasing its stability and making it less sensitive to initialization.</li><li>Across several datasets we observed that the accuracy obtained by the existing models was highly sensitive to initialization, training epochs, and learning rates.</li><li>They show that q serves as a user-controlled quality guide that can effectively guide the training process.</li><li>For the case of continuous LFs, they use q as a rough estimate of the mean score of the continuous LF whenever it triggers correctly. A quality guide of q = 0.9 for LF would imply that when LF triggers correctly the average embedding score is 0.9.</li></ul><p>Coupling discrete and continuous variables.</p><p>For the discrete binary tij variables, we chose these simple potentials:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*TmE0Tz2NfX6N2c2veYsG2A.png" /></figure><p>Thus, for each LF we have K parameters corresponding to each of the class labels.</p><p><strong>Experimental Results:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bsmlMBl-T-tKGWbKMIfXyw.png" /><figcaption>Figure 1: F1 with increasing number of training epochs compared across snorkel, CAGE􀀀C􀀀Gand CAGE􀀀C, for three datasets.</figcaption></figure><p>For each dataset, in the absence of guides, we observe unpredictable variation in test F1 as training progresses.</p><p><strong>Data Programming using Semi-Supervision and Subset Selection.</strong></p><p>In this paper, they leverage semi supervision in the feature space for more effective data programming using labelling functions. Could we determine precisely that size constrained subset of the training set, knowledge of whose true labels would help us train a model that is most effective on the test set?</p><p>In this paper, they used the framework of data subset selection for selecting a subset of unlabelled data for obtaining labels. The goal of data selection considered here though is different from the data selection in active learning. In particular, they want to select a set of diverse examples such that the labelling functions perform very poorly on these examples.</p><p>The main applications of data subset selection have been:</p><p>(i) Reduction of end to end training time,</p><p>(ii) Reduction of labeling cost and time, and</p><p>(iii) Faster adaptation and better generalization.</p><ul><li>Their framework can also leverage any state-of-the-art semi-supervised learning algorithm, though they focus mostly on Entropy Minimization for the experiments in this paper.</li><li>Finally, they evaluate their model on four publicly available datasets from domains such as spam detection and record classification and show improvement over state-of-the-art techniques.</li><li>All the labelling functions are discrete and hence no continuous scores are associated with them.</li></ul><p><strong>Training</strong>: They have the following loss function to minimize.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*oah8CQR8RWWAKlWaGR8-MQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*7l9vyQbfYOIl-qdzPvIaQA.png" /></figure><p><strong>Experimental Results:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*z2aWoWvmPUzhUB7ubGlxyg.png" /><figcaption>Comparison of our ‘Best’ JL approach against various state of the art methods on four different datasets. Please note that all results are based on the same hand-picked labelled data subset as was chosen in (Awasthi et al. 2020).</figcaption></figure><p>The numbers reported (below double lines) are gains over the baseline method (Only-L). All results are averaged over 5 runs.</p><p><strong>Experimental Results-2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*IF5y3hxkL1dKGJPyFSF8hQ.png" /></figure><p>Performance on the test data, of various loss combinations from our objective function, reported for the four data-sets. For each data-set, the numbers in bold refer to the ‘best’ performing combination, determined based on performance on the validation data-set. In general, we observe that all the loss components (barring L2 for three datasets) contribute to the best model. QG refer to Quality Guides.</p><p><strong>Papers Referred:</strong></p><ul><li><a href="https://www.snorkel.org/">https://www.snorkel.org/</a></li><li><a href="https://arxiv.org/pdf/1911.09860.pdf">https://arxiv.org/pdf/1911.09860.pdf</a></li><li><a href="https://arxiv.org/abs/2008.09887">https://arxiv.org/abs/2008.09887</a></li><li><a href="https://arxiv.org/abs/2009.01444">https://arxiv.org/abs/2009.01444</a></li><li><a href="https://arxiv.org/abs/2004.03264">https://arxiv.org/abs/2004.03264</a></li><li><a href="https://arxiv.org/abs/1912.07685">https://arxiv.org/abs/1912.07685</a></li><li><a href="https://daviddao.org/papers/geolabels.pdf">https://daviddao.org/papers/geolabels.pdf</a></li></ul><blockquote><em>Thanks for reading. Feel free to comment, clap here and say hi on LinkedIn </em><a href="https://www.linkedin.com/in/pratikchhapolika/"><em>here </em></a><em>or subscribe to get my future essays.</em></blockquote><p>PRATIK CHHAPOLIKA</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8b2b2ff240a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning | Deep Learning | Data Science | Artificial Intelligence stuff for beginners at…]]></title>
            <link>https://pratikchhapolika1.medium.com/machine-learning-deep-learning-data-science-artificial-intelligence-stuff-for-beginners-at-deb4211f82d4?source=rss-63c0e92202e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/deb4211f82d4</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Pratik Chhapolika]]></dc:creator>
            <pubDate>Sun, 14 Jul 2019 12:31:59 GMT</pubDate>
            <atom:updated>2020-09-20T18:06:26.875Z</atom:updated>
            <content:encoded><![CDATA[<h3>Machine Learning | Deep Learning | Data Science | Artificial Intelligence stuff for beginners at one place.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*yCrFCAmgOukq6SKrO-dBJw.png" /></figure><p><a href="https://www.deeplearning.ai/hodl-geoffrey-hinton/"><strong>“Read enough so you start developing intuitions and then trust your intuitions and go for it!”</strong> </a>​<br> — Prof. Geoffrey Hinton, University of Toronto</p><p>The most difficult thing for data science beginners is to choose relevant articles, books, blogs and courses among millions available in the internet.<br>Here is the comprehensive list of courses, blogs which might be super useful for freshers and people taking interviews.<br>Please follow in the order mentioned:</p><p>I have kept the list to minimum so that it is easy to follow.</p><ol><li><strong><em>Calculus (Mathematics)</em></strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dAobWXASxmnUlzkBMXR1Ag.jpeg" /></figure><p>-<strong>Books</strong>:<br><a href="https://gwthomas.github.io/docs/math4ml.pdf">https://gwthomas.github.io/docs/math4ml.pdf</a></p><p><strong>-Videos</strong>:</p><p>Courera: <a href="https://www.coursera.org/learn/multivariate-calculus-machine-learning">https://www.coursera.org/learn/multivariate-calculus-machine-learning</a><br><a href="https://www.youtube.com/playlist?list=PLZHQObOWTQDMsr9K-rj53DwVRMYO3t5Yr">https://www.youtube.com/playlist?list=PLZHQObOWTQDMsr9K-rj53DwVRMYO3t5Yr</a></p><p><strong><em>2. Probability</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lTb20YCb9_hzGrNwe0Xk6g.jpeg" /></figure><p>-<strong>Books</strong><br>Sheldon M Ross: <a href="https://www.ctanujit.org/uploads/2/5/3/9/25393293/_introduction_to_probability_models_by_ross_sheldon.pdf">https://www.ctanujit.org/uploads/2/5/3/9/25393293/_introduction_to_probability_models_by_ross_sheldon.pdf</a></p><p>-<strong>Videos</strong><br>MIT:<br><a href="https://youtu.be/1uW3qMFA9Ho?list=PLUl4u3cNGP60hI9ATjSFgLZpbNJ7myAg6">https://youtu.be/1uW3qMFA9Holist=PLUl4u3cNGP60hI9ATjSFgLZpbNJ7myAg6</a></p><p><strong><em>3. Programming language ( Python)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*2KbTqO4b2pYXYcuu0EK5wA.png" /></figure><p><a href="https://wiki.python.org/moin/BeginnersGuide/NonProgrammers">https://wiki.python.org/moin/BeginnersGuide/NonProgrammers</a></p><p><strong>Coursera</strong>:<br><a href="https://www.coursera.org/learn/python">https://www.coursera.org/learn/python</a><br><strong>You Tube</strong>:<br><a href="https://www.youtube.com/playlist?list=PLS1QulWo1RIaJECMeUT4LFwJ-ghgoSH6n">https://www.youtube.com/playlist?list=PLS1QulWo1RIaJECMeUT4LFwJ-ghgoSH6n</a><br><strong>Udemy</strong>:<br><a href="https://www.udemy.com/python-for-data-science-and-machine-learning-bootcamp/">https://www.udemy.com/python-for-data-science-and-machine-learning-bootcamp/</a></p><p>On top of search results, here are some good programming resources available online:</p><p><a href="https://docs.python.org/3/tutorial/index.html">https://docs.python.org/3/tutorial/index.html</a><br><a href="https://greenteapress.com/wp/think-python/">https://greenteapress.com/wp/think-python/</a></p><p><strong><em>4. Linear Algebra ( Advanced + Basics)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eSHYWGTtQvBTy5I3iWspyw.jpeg" /></figure><p>-<strong>Books</strong>:<br>Linear Algebra and its applications:<br><a href="http://www.math.hcmus.edu.vn/~bxthang/Linear%20algebra%20and%20its%20applications.pdf">http://www.math.hcmus.edu.vn/~bxthang/Linear%20algebra%20and%20its%20applications.pdf</a></p><p>-<strong>Videos</strong></p><p>MIT (Professor Gilbert Strang): <a href="https://ocw.mit.edu/courses/mathematics/18-06-linear-algebra-spring-2010/video-lectures/">https://ocw.mit.edu/courses/mathematics/18-06-linear-algebra-spring-2010/video-lectures/</a> <br>Available in you tube also.</p><p>3BLUE1BROWN SERIES: <a href="https://www.youtube.com/watch?v=fNk_zzaMoSs&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab">https://www.youtube.com/watch?v=fNk_zzaMoSs&amp;list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab</a></p><p><strong><em>5. Machine Learning | Data Science | Artificial Intelligence</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*03IkCckZwsGWGv7TzZcOcw.jpeg" /></figure><p>-<strong>Books</strong>: <br>Bishop, Christopher M. Pattern Recognition and Machine Learning. Springer, 2006. ISBN 978–0–387–31073–2<br>Alpaydin, Ethem Introduction to Machine Learning. MIT Press, 2014. ISBN 978–0–262–02818–9<br>( PDF version is available on internet)</p><p>-<strong>Videos</strong>:<br>Machine Learning (Andrew Ng): <a href="https://www.coursera.org/learn/machine-learning">https://www.coursera.org/learn/machine-learning</a><br>Deep Learning (Andrew Ng): <a href="https://www.coursera.org/specializations/deep-learning">https://www.coursera.org/specializations/deep-learning</a><br>Applied AI ( Easy to understand):<a href="https://www.appliedaicourse.com/">https://www.appliedaicourse.com/</a></p><p><a href="https://www.udacity.com/course/machine-learning-engineer-nanodegree--nd009t?utm_source=gsem_brand&amp;utm_medium=ads_n&amp;utm_campaign=920638034_c&amp;utm_term=44839744966_in&amp;utm_keyword=%2Budacity%20%2Bmachine%20%2Blearning_b&amp;gclid=Cj0KCQjwpavpBRDQARIsAPfTwiycvD6Fzvk3xkv2VVmstv5hOy0vRxPz8tsw6vugROFKQv0uUtVKzOkaAvuIEALw_wcB"><strong>Udacity Nano Degree Courses</strong></a></p><p><strong><em>6. Interview | Blogs</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ertJg6r-hU4vpuKQ_pw3RA.png" /></figure><p><strong>Analytics Vidiya</strong><br><a href="https://www.analyticsvidhya.com/">https://www.analyticsvidhya.com/</a></p><p><a href="https://houseofbots.com/news-detail/11729-1-35-plus-most-popular-machine-learning-interview-questions-with-answers">https://houseofbots.com/news-detail/11729-1-35-plus-most-popular-machine-learning-interview-questions-with-answers</a></p><p><strong>Linkedin </strong>(Vipul Patel:)<br><a href="https://www.linkedin.com/in/vipulppatel/">https://www.linkedin.com/in/vipulppatel/</a></p><p><strong>Oracle</strong>:<br><a href="https://www.datascience.com/blog/page/5">https://www.datascience.com/blog/page/5</a></p><p><strong>Puzzles | Programs</strong>:<br><a href="https://discuss.fogcreek.com/techInterview/">https://discuss.fogcreek.com/techInterview/</a></p><p><strong>Free links to practice ML programs with GPU</strong>:<br>Google Colab: <a href="https://colab.research.google.com/">https://colab.research.google.com/</a></p><p>Neural Network Playground: <a href="https://playground.tensorflow.org/">https://playground.tensorflow.org/</a></p><p><strong>All videos at one place:</strong></p><ul><li><a href="https://deep-learning-drizzle.github.io/">Deep Learning Drizzle</a></li><li><a href="https://course.fullstackdeeplearning.com/">Full Stack Deep Learning</a></li></ul><p><strong>Some good you tube links to follow</strong>:</p><p><a href="https://www.youtube.com/user/joshstarmer">STATQUEST</a></p><p><a href="https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw">3Blue1Brown</a></p><p><a href="https://www.youtube.com/user/sentdex">SENTDEX</a></p><p>I will keep updating the link if something interesting comes up.</p><blockquote>“ <strong>Nothing is more effective than consistency when it comes to making your company, or your performance, stand out.”</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*2xEsffWRBFHqjbOnQgMH5A.png" /></figure><blockquote><strong>Thanks for reading. Feel free to comment, clap here and say hi on LinkedIn </strong><a href="https://www.linkedin.com/in/pratikchhapolika/"><strong>here </strong></a><strong>or subscribe to get my future essays.</strong></blockquote><p><a href="https://www.linkedin.com/in/pratikchhapolika/">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=deb4211f82d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOLVING DATA QUALITY ISSUES USING FREQUENT PATTERN MINING ALGORITHM.]]></title>
            <link>https://pratikchhapolika1.medium.com/solving-data-quality-issues-using-frequent-pattern-mining-algorithm-a7dec9b107a8?source=rss-63c0e92202e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7dec9b107a8</guid>
            <category><![CDATA[frequent-pattern]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-mining]]></category>
            <category><![CDATA[fp-growth]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Pratik Chhapolika]]></dc:creator>
            <pubDate>Fri, 05 Jul 2019 08:10:54 GMT</pubDate>
            <atom:updated>2020-09-20T17:35:08.678Z</atom:updated>
            <content:encoded><![CDATA[<p>Since the last decades and due to the high capacity of storage, data is being increasingly available in information society, which has led to the need for valid tools for its modelling and analysis such as Knowledge Discovery in Databases (KDD) methods (known as data mining methods). However, many problems go along with the business application of data mining. In fact, the quality of the generated models is strongly correlated to the data quality. This article deals with the data mining contribution in the data quality domain, commonly known as DQM ; where I have used the association rules as a method to improve poor data quality in business databases. I will explain the approach and discuss about the results and the possible perspectives</p><p>Lets just start by giving an overview of what frequent pattern mining algorithm is and then I will directly dive into real supply chain problem solving using this technique.</p><p><strong>Association rules</strong> are an important class of regularities in data. Mining of<br>association rules is a fundamental data mining task. It is perhaps the most<br>important model invented and extensively studied by the database and data<br>mining community. Its objective is to find all co-occurrence relationships,<br>called associations, among data items. The classic application of association rule mining is the market basket data analysis, which aims to discover how items purchased by customers in a supermarket (or a store) are associated. An example association rule is:</p><p><strong>Bread →Butter [support = 10%, confidence = 80%]</strong>. The rule says that 10% customers buy Bread and Butter together, and those who buy Bread also buy Butter 80% of the time. Support and confidence are two measures of rule strength, which we will define now.</p><p>Let <strong>X,Y</strong> be item-sets, <strong>X →Y</strong> an association rule and <strong>T</strong> a set of transactions of a given database. <strong>Support </strong>is an indication of how frequently the item-set appears in the data-set. The support of <strong>X</strong> with respect to <strong>T </strong>is defined as the proportion of transactions t in the data set which contains the item-set <strong>X</strong>. Formula for it can be found <a href="https://en.wikipedia.org/wiki/Association_rule_learning"><strong>here</strong></a>. <strong>Confidence </strong>is an indication of how often the rule has been found to be true. The <strong>Confidence </strong>value of a rule <strong>X →Y</strong> , with respect to a set of transactions <strong>T</strong> , is the proportion of the transactions that contains <strong>X </strong>also contains <strong>Y. </strong>Confidence thus determines the predictability of the rule. If the confidence of a rule is too low, one cannot reliably infer or predict <strong>Y </strong>from <strong>X</strong>. There are some other terms like<strong> Lift, Conviction </strong>and <strong>Rule Power Factor </strong>which are not required as of now<strong>.</strong></p><p><strong>Example: </strong>Shows a set of seven transactions. Each transaction ti is a set of items purchased in a basket in a store by a customer. The set I is the set of all items sold in the store.<br>t1: Beef, Chicken, Milk<br>t2: Beef, Cheese<br>t3: Cheese, Boots<br>t4: Beef, Chicken, Cheese<br>t5: Beef, Chicken, Clothes, Cheese, Milk<br>t6: Chicken, Clothes, Milk<br>t7: Chicken, Milk, Clothes<br>Given the user-specified minsup = 30% and minconf = 80%, the following<br>association rule (sup is the support, and conf is the confidence)<br>Chicken, Clothes Milk [sup = 3/7, conf = 3/3] is valid as its support is 42.86% (&gt; 30%) and its confidence is 100% (&gt;80%). The rule below is also valid, whose consequent has two items: Clothes Milk, Chicken [sup = 3/7, conf = 3/3].</p><p>Now lets apply this algorithm for solving data quality issues. It is something which is not straightforward. We need to transform our data in a form of transactions for the algorithm to work. There are two approaches which can be done based on requirements. Suppose the original data-set is as follows:</p><p>Approach-1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vdS3yb32T5x7CMcX0kFdWQ.jpeg" /><figcaption>Figure -1</figcaption></figure><p>Here in the above <strong><em>Figure-1, </em></strong>the first approach is easy and it’s filling the cells with its respective column names whenever there is a value else nothing. We are doing this because we want to understand how one column is related to other columns in high level.</p><p>2nd Approach is much more holistic where every column value is appended with column name to avoid duplicates in transaction. <strong>Note: In a single transaction there cannot be duplicate items. </strong>For example if a customer goes to a shop and buys 3 eggs and 2 peanut butter, but the transaction will be just eggs and peanut butter. This approach gives a deep level understanding of categories in our data-sets and its relations.</p><p>Now the next step is to apply algorithm. There are basically 3 algorithms that we can choose: (<strong>1) Apriori</strong> (<strong>2) FPgrowth</strong> (<strong>3) Eclat</strong>. The advantages and when to use which algorithm is explained <a href="https://www.researchgate.net/figure/Comparison-of-Apriori-Eclat-and-FP-Growth-algorithm-on-a-dataset-with-the-number-of_fig4_272864559"><strong>here</strong></a>. In this article I am using FPGrowth.</p><p>Since the data in real scenario will be huge, millions of data points with hundreds of columns. So the use of “<strong>pyfpgrowth</strong>” package in python and several other other packages in local system will take years to run. The best approach to solve this by using “<strong>pyspark in python</strong>”, setup the spark cluster and then run the algorithm.</p><p>Here is the code after the data transformation:</p><p><em>from pyspark.ml.fpm import FPGrowth<br>from pyspark.sql import Row<br>from pyspark.context import SparkContext<br>from pyspark.sql.session import SparkSession<br>from pyspark import SparkConf</em></p><p><em># You can change the spark memories according to requirements.<br>conf = SparkConf().setAppName(“App”)<br>#Incomplete</em></p><p><em># More parameters can be tuned : please visit the spark website mentioned in the references<br>fpGrowth = FPGrowth(itemsCol=”items”,minSupport=0.9, minConfidence=0.9)</em></p><p><em>model = fpGrowth.fit(df)</em></p><p><em># Display generated association rules.<br>model.associationRules.show()</em></p><p><em># Filtering rules, here just for 1 item-set<br>ar=model.associationRules.where(func.size(func.col(‘antecedent’)) == 1).where(func.size(func.col(‘consequent’)) == 1)</em></p><p><em># Save the output, Note: You can use parquet if the file is too large to fit in memory<br>ar.cache()<br>ar.write.csv(“out.csv”)</em></p><p>The idea behind was to how to approach data quality problems. The code can be redefined based on your requirements.</p><p><strong>References</strong>:</p><p>facweb.cs.depaul.edu/mobasher/classes/ect584/Lectures/Liu-Ch2–4.pdf<br><a href="https://en.wikipedia.org/wiki/Association_rule_learning">https://en.wikipedia.org/wiki/Association_rule_learning</a><br><a href="https://spark.apache.org/docs/latest/ml-frequent-pattern-mining.html">https://spark.apache.org/docs/latest/ml-frequent-pattern-mining.html</a></p><ul><li>Pratik Chhapolika ( IIT-Hyderabad) <a href="https://www.linkedin.com/in/pratikchhapolika/">LinkedIn</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7dec9b107a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Story of a Data Scientist -”Data is the new Science?”]]></title>
            <link>https://pratikchhapolika1.medium.com/story-of-a-data-scientist-data-is-the-new-science-a43d93f0861f?source=rss-63c0e92202e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a43d93f0861f</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[funny]]></category>
            <category><![CDATA[reality]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[storytelling]]></category>
            <dc:creator><![CDATA[Pratik Chhapolika]]></dc:creator>
            <pubDate>Thu, 04 Jul 2019 14:23:43 GMT</pubDate>
            <atom:updated>2020-09-20T17:32:29.885Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*C7XBHBZNyF3B5vYKVIcFfA.png" /></figure><p>It started with the fortress- ”<strong>The White House</strong>”, no not the Washington but the fortress of <strong>Infosys</strong>, Mysore campus in India. I was trained in <strong>Java</strong>, <strong>DBMS </strong>and was lucky enough to land in <strong>Data Science</strong>. This is the uniqueness of Infosys, it keeps surprising you at every moment. How could I forget that day, <strong>2014, August 25th</strong>. The whole career took a big-big turn when I joined Infosys Data Science Research and Development Group in Bangalore. Never heard of this name before, so there was a glimpse of fear and anxiety about what this is all about.</p><p>The sound of <strong>Linear Regression</strong>, <strong>Logistic Regression</strong> and more was just making me more nervous and incapable. There were some big players sitting beside me having PhD in Machine Learning, PhD in Computer Vision that added more to my nervousness.</p><p>Spending dozens of hours to answer a single, seemingly simple, question reading blogs, several materials on internet, you tube and lots and lots of toy example to run in computer made me understand about <strong>Data Science</strong> and its Application. “ <strong>Data science</strong> is an awesome profession, but there are definitely some serious frustrations that come with it.” I fought with it being new to this field. Once I thoroughly studied books and followed it with practical demos, then the things started to unravel itself and became more clear.</p><p>So, to keep this short as this is my first article Data Science is one of the most Beautiful things to work on. I never get bored, it keeps pushing you for innovative ideas and keeps us updated with recent technologies. Not to miss that when I changed my company from Infosys I got almost a 200% hike. What comes easy has no value!! With all that frustration and hard work, I gained knowledge and money. But in my journey, I have recognized a few unhealthy mechanisms towards Data Science that is <strong>Lack of mathematics behind it, Creative Thinking and hands-on experience</strong>. So make sure you have all these things covered. :-)</p><p>“ <strong><em>DATA WILL TALK TO YOU, IF YOU’RE WILLING TO LISTEN”</em></strong></p><blockquote>Thanks for reading. Feel free to comment, clap here and say hi on LinkedIn <a href="https://www.linkedin.com/in/pratikchhapolika/">here </a>or subscribe to get my future essays.</blockquote><p><a href="https://www.linkedin.com/in/pratikchhapolika/">LinkedIn</a></p><p>-PRATIK CHHAPOLIKA (IIT HYDERABAD)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a43d93f0861f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>