<?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 Abhijit Das on Medium]]></title>
        <description><![CDATA[Stories by Abhijit Das on Medium]]></description>
        <link>https://medium.com/@abhi05147?source=rss-daf64cdf1328------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*W-83P5fAEFQx5O4G</url>
            <title>Stories by Abhijit Das on Medium</title>
            <link>https://medium.com/@abhi05147?source=rss-daf64cdf1328------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 22 May 2026 13:50:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhi05147/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[Easiest way to Run a Python Script in the Background]]></title>
            <link>https://medium.com/analytics-vidhya/easiest-way-to-run-a-python-script-in-the-background-4aada206cf29?source=rss-daf64cdf1328------2</link>
            <guid isPermaLink="false">https://medium.com/p/4aada206cf29</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[background]]></category>
            <dc:creator><![CDATA[Abhijit Das]]></dc:creator>
            <pubDate>Sun, 22 Mar 2020 06:33:51 GMT</pubDate>
            <atom:updated>2024-02-08T10:38:04.989Z</atom:updated>
            <content:encoded><![CDATA[<p>The easiest way of running a <a href="https://www.analyticsvidhya.com/blog/2016/01/complete-tutorial-learn-data-science-python-scratch-2/?utm_source=Backlink&amp;utm_medium=SEO">python script</a> to run in the background is to use <strong><em>cronjob feature (in macOS and Linux)</em></strong>. In windows, we can use Windows Task Scheduler.</p><p>In Mac or Linux, open the terminal using the following command to check what jobs are running in the background</p><blockquote>crontab -l</blockquote><p>Now, to edit the list type the following command</p><blockquote>crontab -e</blockquote><p>You can then give the path of your python script file to<a href="https://www.analyticsvidhya.com/blog/2016/01/complete-tutorial-learn-data-science-python-scratch-2/?utm_source=Backlink&amp;utm_medium=SEO"> run </a>at a specific time by giving the time particulars. Now enter the following and press CTRL+O and CTRL+X to save and exit.</p><p>Presently I have two jobs scheduled to run in the background as can be seen from the below screenshot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*UisD_8_ZGmZOWQjr" /></figure><p>The first job will run at the 15th minute of 11th Hour on the 27th of the month. This job periodically scans the contact details of field offices and store them in a csv file.</p><p>The second job runs at the 15th minute of every hour to check the weather details of various places.</p><p><strong>Structure of cronjob:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*0RqBI0IJXtRn0dx2" /></figure><p><strong>For Windows</strong>, search for <strong><em>Task Scheduler</em></strong>.</p><ol><li>Open the program.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fI6gtHoCx0F0nMK5a86wKw.png" /></figure><p>2. Now, on the right panel click on “<em>Create Basic Task</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*Zst9cuazc8R9EiiWqIJXGw.png" /><figcaption>Give a task name and its description and click next</figcaption></figure><p>3. Next select how often do you need to run the script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*nQ0FFSx3ob3VdyqGGF5TOw.png" /><figcaption>Select ‘daily’ if you want to run the script daily</figcaption></figure><p>4. On the next screen, select date and time on which you want to run the script</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*rrqusxxgkjVdMQMf1wbRwg.png" /></figure><p>5. Next, select “Start a Program”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*tq-k13KMBahhQxq-rBOu5g.png" /></figure><p>6. Browse for the script to be executed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*Y4URPhpV9PS0eE5CBzO-5Q.png" /></figure><p>7. Select the script and click on ‘Finish’ to schedule the task</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*K3ThXEiholW_02HojdUYeQ.png" /></figure><p>Happy Coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4aada206cf29" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/easiest-way-to-run-a-python-script-in-the-background-4aada206cf29">Easiest way to Run a Python Script in the Background</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[Is the code written in Python 3 backward compatible with Python 2?]]></title>
            <link>https://medium.com/@abhi05147/is-the-code-written-in-python-3-backward-compatible-with-python-2-ef6986c40cc7?source=rss-daf64cdf1328------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef6986c40cc7</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Abhijit Das]]></dc:creator>
            <pubDate>Tue, 07 Jan 2020 15:36:06 GMT</pubDate>
            <atom:updated>2020-01-07T15:36:06.881Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Python 3 implements a lot of very useful features and breaks backward compatibility. It does it on purpose, so that the great features can be implemented even despite the fact Python 2 code may not work correctly under Python 3.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N0BRfrl0HS6KRMVe" /><figcaption>Photo by <a href="https://unsplash.com/@lucabravo?utm_source=medium&amp;utm_medium=referral">Luca Bravo</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>The simple and straight-forward answer is “No”.</h4><p>Some of the most notable features that may be considered as breaking backward compatibility are:</p><ul><li><em>print</em> is now a function, not a statement, and using it as statement will result in an error,</li><li>various <em>functions</em> &amp; <em>methods</em> now return an <em>iterator</em> or view instead of list, which makes iterating through their results more memory-efficient (you do not need to store the whole list of results in the memory),</li><li><em>cmp</em> argument for sorting functions like <em>sorted</em>() and list.<em>sort</em>() is no longer supported, and should be replaced by key argument,</li><li><em>int</em> is now the same as Python 2.x’s <em>long</em>, which makes number processing less complex,</li><li><em>/ operator</em> is now an operator for true division by default (you can still use // for floor division),</li><li>text in Python 3.x is now <em>Unicode</em> by default,</li><li><em>True, False</em> and <em>None</em> are now <em>reserved</em> words (so you are not able to do True, False = False, True</li></ul><p>More details can be found on the following link:</p><p><a href="https://docs.python.org/3/whatsnew/3.0.html"><em>https://docs.python.org/3/whatsnew/3.0.html</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef6986c40cc7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How will one learn data science within a period of six months?]]></title>
            <link>https://medium.com/@abhi05147/how-will-one-learn-data-science-within-a-period-of-six-months-f7436ec7b43?source=rss-daf64cdf1328------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7436ec7b43</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[udacity]]></category>
            <category><![CDATA[algebra]]></category>
            <dc:creator><![CDATA[Abhijit Das]]></dc:creator>
            <pubDate>Tue, 07 Jan 2020 15:02:05 GMT</pubDate>
            <atom:updated>2020-01-07T15:02:05.874Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>I have learned Data Science within 2 (Two) months. But I had the advantage of having prior knowledge of Python which is quite essential for learning Data Science.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l-7g3u6swezxfqM1" /><figcaption>Photo by <a href="https://unsplash.com/@clintadair?utm_source=medium&amp;utm_medium=referral">Clint Adair</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As per Wikipedia, <strong>Data science</strong> is a multi-disciplinary field that uses scientific methods, processes, algorithms and systems to extract knowledge and insights from structured and unstructured data.</p><p>Literally speaking, we all are data-scientists. We read about lots of data be it in the news, or our office works, colleges, schools and come to some sort of conclusion based on it. However, when we are unable to conceive and process large amounts of data with our bare eyes , we have to take help of machines and this process is known as “Data Science”. Data science is the precursor to Machine Learning and Artificial Intelligence (A.I.)</p><p>For learning data science with reference to machine learning and AI, you need to have a good knowledge on Python Language. Python is the most effective and efficient language to perform large-scale scientific operations on data. It has lots of libraries specially for data-science.</p><p>You can learn Python in 1(One) month from <a href="https://www.udacity.com/school-of-data-science"><em>Udacity</em></a><em> </em>for free. They also have paid courses as well but those aren’t very different from the free ones. The only difference is that you have to submit a project at the end of the course for getting certification.</p><p>Once you are comfortable in python, you can start learning Data Science right away. I had learned from <a href="https://www.udacity.com/school-of-data-science"><em>Udacity</em></a>. Their course is nicely structured and the instructors are well versed with the subject. There are many real world problems with <a href="https://archive.ics.uci.edu/ml/index.php">data-sets</a> to apply your data science models.</p><p>You also need to learn Algebra in order to learn data-science. Various statistical methods such as linear regression, correlation, bayes method etc. are useful for performing data-science operations.</p><p>But whether you learn in 6 months or 1 month, regular practice is the key for retaining the learning. Keep exploring new <a href="https://archive.ics.uci.edu/ml/index.php">data-sets</a> with the data science models regularly. This will help you to grasp the subject in a more efficiently.</p><p>Good luck.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7436ec7b43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Forecasting of power demand for distribution utilities and allotment of load using Machine learning]]></title>
            <link>https://medium.com/@abhi05147/forecasting-of-power-demand-for-distribution-utilities-and-allotment-of-load-using-machine-learning-3bb01ade18e3?source=rss-daf64cdf1328------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bb01ade18e3</guid>
            <category><![CDATA[renewables]]></category>
            <category><![CDATA[energy]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[power-distribution]]></category>
            <category><![CDATA[forecasting]]></category>
            <dc:creator><![CDATA[Abhijit Das]]></dc:creator>
            <pubDate>Sun, 01 Dec 2019 16:25:00 GMT</pubDate>
            <atom:updated>2019-12-01T16:25:00.023Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Accurate forecasting of power demand in the backdrop of distributed energy resources</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L9NRZUxRiGT34af5" /><figcaption>Photo by <a href="https://unsplash.com/@karsten_wuerth?utm_source=medium&amp;utm_medium=referral">Karsten Würth (@karsten.wuerth)</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong><em>Background</em></strong></p><p>Load forecasts are extremely important for energy suppliers and other participants in electric energy generation, transmission, distribution and markets. Accurate models for electric power load forecasting are essential to the operation and planning of a utility company.</p><p>A conventional electricity demand forecasting requires analysing the following types of variables:</p><p>• Calendar data: Season, hour, holidays, etc.</p><p>• Weather data: Temperature, humidity, rainfall, etc.</p><p>• Company data: Price of electricity</p><p>• Demand data: Historical consumption of electricity.</p><p>But, due to growing use of distributed energy resources (DER) such as roof-top solar, wind, biomass etc., the power demand scenario for the distribution utilities are changing. With more and more number of consumers opting for such own generation options, the utilities would need a smart demand forecasting and allocation technique using the latest tools available to optimise cost and provide reliable services.</p><p><strong><em>Way Ahead</em></strong></p><p>To overcome such difficulties, new techniques for demand forecasting and load allotment could be devised using IT tools such as Big Data and Machine Learning (Artificial Intelligence).</p><p><strong><em>Big Data — For information Gathering and Assessment</em></strong></p><p>Big data is a term used to refer to data sets that are too large or complex for traditional data-processing application software to adequately deal with.</p><p>Big Data will be able to capture, process and analyse the following information:</p><p>1) Historical power demand information for all consumers</p><p>2) Distributed generation information for all consumers</p><p>3) Weather forecasting information (provided by the agencies)</p><p>4) Load Growth</p><p>5) Consumer Mix</p><p>6) Special Factors such as Festivals etc.</p><p>7) Power prices at the IEX (Indian Energy Exchange) in real time</p><p><strong><em>Machine Learning (ML) — For Analysis and prediction</em></strong></p><p>The data gathered through Big Data System could be brought together in a single predictive ML model, so as to discover associations between all the above variables. This will give us deeper understanding on the causes of demand and will allow better decision making. This involves the accurate prediction of both the magnitudes and geographical locations of electric load over the different periods of the planning horizon.</p><p>On the basis of information provided by the ML model, adequate planning could be done by the utilities to purchase power accordingly. This will also help in better load allotment to various locations on the basis of their predicted demand considering the above factors.</p><p><strong><em>About Machine Learning</em></strong></p><p>Machine learning (ML) is a field of AI (artificial intelligence) that uses statistical techniques to give computer systems the ability to “learn” (e.g., progressively improve performance on a specific task) from data, without being explicitly programmed.</p><p>Broadly, Machine Learning falls into two major categories</p><p>- <em>Supervised Machine Learning</em></p><p>- <em>Unsupervised Machine Learning</em></p><p><strong><em>Supervised Machine Learning</em></strong></p><p>- Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs.</p><p>- A supervised learning algorithm analyses the training data and produces an inferred function, which can be used for mapping new examples.</p><p>- Example : Association between weather information (such as temperature) and power demand. By varying the temperature variable, we can assume that the power demand would vary.</p><p><strong><em>Unsupervised Machine Learning</em></strong></p><p>- Unsupervised learning is a branch of machine learning that learns from test data that has not been labelled, classified or categorised.</p><p>- Instead of responding to feedback, unsupervised learning identifies commonalities in the data and reacts based on the presence or absence of such commonalities in each new piece of data.</p><p>- Example: Sometimes, the power demand drastically falls or increases without any significant variance in the associated factors. Unsupervised ML can learn from such scenarios so that such scenarios could be tackled efficiently in future.</p><p><strong><em>Advantages:</em></strong></p><p>- Machine Learning Models could anticipate customer response and changing attitudes about energy consumption by looking at all types of factors.</p><p>- The results are improved forecast accuracy, which means better information to decide what the best course of action is.</p><p>- With such ML based models put in place, this would ensure smart decision making in power purchase which would save in cost incurred.</p><p>- Efficient load allocation would result in better customer satisfaction and improving system reliability</p><p>- ML model could automatically correct the forecasting techniques to keep track of changing conditions</p><p>- Over time, such models could automatically determine the various load growth centres of the utility and can help in planning for infrastructure upgradation / addition.</p><p><strong><em>Challenges:</em></strong></p><p>- Deploying Big Data systems is capital intensive as they require high capacity servers</p><p>- Historical information on load growth pattern in different parts of the state</p><ul><li>Accuracy of Historical information on power availability</li></ul><p>Reference:</p><p>Arunesh Kumar Singh, Ibraheem, S. Khatoon and Md. Muazzam, “An overview of Electricity Demand Forecasting Techniques” Vol.3, No. 3, 2013- National conference on Emerging Trends in Electrical, Instrumentation &amp; Communication Engineering</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bb01ade18e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>