<?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 Arpit Bhushan Sharma on Medium]]></title>
        <description><![CDATA[Stories by Arpit Bhushan Sharma on Medium]]></description>
        <link>https://medium.com/@arpit3043?source=rss-2b311c3c9265------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DP3-QUcivWMMJ-4Vn8FBwA.jpeg</url>
            <title>Stories by Arpit Bhushan Sharma on Medium</title>
            <link>https://medium.com/@arpit3043?source=rss-2b311c3c9265------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 21:36:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arpit3043/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[Leetcode — Check Array Formation Through Concatenation]]></title>
            <link>https://arpit3043.medium.com/leetcode-check-array-formation-through-concatenation-228e25b2c6a6?source=rss-2b311c3c9265------2</link>
            <guid isPermaLink="false">https://medium.com/p/228e25b2c6a6</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[c]]></category>
            <category><![CDATA[leetcode]]></category>
            <dc:creator><![CDATA[Arpit Bhushan Sharma]]></dc:creator>
            <pubDate>Mon, 01 Aug 2022 18:56:29 GMT</pubDate>
            <atom:updated>2022-08-01T18:56:29.567Z</atom:updated>
            <content:encoded><![CDATA[<h3>Leetcode — Check Array Formation Through Concatenation</h3><p>The given question is 1640 in the Leetcode and comes in the easy category of Leetcode.</p><p>Now, let&#39;s study, what&#39;s the question s</p><p><em>You are given an array of </em><strong><em>distinct</em></strong><em> integers </em><em>arr and an array of integer arrays, where the integers </em><em>pieces are </em><strong><em>distinct</em></strong><em>. Your goal is to form </em><em>arr by concatenating the arrays in </em><em>pieces </em><strong><em>any order</em></strong><em>. However, you are </em><strong><em>not</em></strong><em> allowed to reorder the integers in each array </em><em>pieces[i].</em></p><p><em>Return </em><em>true if it is possible to form the array </em><em>arr from </em><em>pieces. Otherwise, return </em><em>false.</em></p><p>As per the given conditions, we are given an input array and pieces of the array. If the pieces are added(concatenate) to form an array, then we can return boolean true, else return false.</p><p>The given examples are as follows:</p><p><strong>Example 1:</strong></p><pre><strong>Input:</strong> arr = [15,88], pieces = [[88],[15]]<br><strong>Output:</strong> true<br><strong>Explanation:</strong> Concatenate [15] then [88]</pre><p><strong>Example 2:</strong></p><pre><strong>Input:</strong> arr = [49,18,16], pieces = [[16,18,49]]<br><strong>Output:</strong> false<br><strong>Explanation:</strong> Even though the numbers match, we cannot reorder pieces[0].</pre><p><strong>Example 3:</strong></p><pre><strong>Input:</strong> arr = [91,4,64,78], pieces = [[78],[4,64],[91]]<br><strong>Output:</strong> true<br><strong>Explanation:</strong> Concatenate [91] then [4,64] then [78]</pre><p>The constraints are the most important aspect of the given question by which we can identify the time complexity of the given question and then we can go to a lower time complexity as per the expectations.</p><p><strong>Constraints:</strong></p><ul><li>1 &lt;= pieces.length &lt;= arr.length &lt;= 100</li><li>sum(pieces[i].length) == arr.length</li><li>1 &lt;= pieces[i].length &lt;= arr.length</li><li>1 &lt;= arr[i], pieces[i][j] &lt;= 100</li><li>The integers in arr are <strong>distinct</strong>.</li><li>The integers in pieces are <strong>distinct</strong> (i.e., If we flatten pieces in a 1D array, all the integers in this array are distinct).</li></ul><p>Since all elements are unique, we can map the first element in pieces to the piece position. Then, we just check if we have the right piece, and if so - try to fit it. As values are within [0..100], we can use an array instead of a hashmap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*5-X4L6M3zIYqJzGd.png" /><figcaption><a href="https://assets.leetcode.com/users/images/a91dbf04-3aa3-4126-8899-6dfa59b03345_1609490424.586389.png">Valid Explanation for the solution</a></figcaption></figure><p><strong>C++</strong></p><pre>class Solution {<br>public:<br>    bool canFormArray(vector&lt;int&gt;&amp; arr, vector&lt;vector&lt;int&gt;&gt;&amp; pieces) {<br>        map&lt;int,vector&lt;int&gt;&gt; mp; <br>        // map the 1st element in pieces[i] to pieces[i]<br>        for(auto p:pieces) <br>            mp[p[0]] = p;<br>        vector&lt;int&gt; result;<br>        for(auto a:arr) {<br>            if(mp.find(a)!=mp.end()) <br>                result.insert(result.end(),mp[a].begin(),mp[a].end());<br>        }<br>        return result ==arr;<br>    }<br>};</pre><p>For the given Solution, We have the Time complexity of O(N) where N is the size of the array, and the Auxillary Space Complexity of O(N) for creating a hashmap</p><p><strong>Python</strong></p><pre>class Solution:<br>    def canFormArray(self, arr: List[int], pieces: List[List[int]]) -&gt; bool:<br>        keys, ans = {}, []<br>        for piece in pieces:<br>            keys[piece[0]] = piece<br>        for a in arr:<br>            if a in keys:<br>                ans.extend(keys[a])<br>        return &#39;&#39;.join(map(str, arr)) == &#39;&#39;.join(map(str, ans))</pre><p>For the given Solution, We have the Time complexity of O(N) where N is the size of the array, and the Auxillary Space Complexity of O(N) for creating a hashmap.</p><p>If any optimal solution is found, do comment here.</p><p>Thank You</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=228e25b2c6a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science Movies Recommendation System]]></title>
            <link>https://arpit3043.medium.com/data-science-movies-recommendation-system-5a26c5a839a8?source=rss-2b311c3c9265------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a26c5a839a8</guid>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[movies]]></category>
            <dc:creator><![CDATA[Arpit Bhushan Sharma]]></dc:creator>
            <pubDate>Sun, 11 Jul 2021 15:09:53 GMT</pubDate>
            <atom:updated>2021-07-11T15:10:56.873Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V8aAun6qoufJEGGaK9O6Bw.png" /><figcaption><a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Flink.springer.com%2Fchapter%2F10.1007%2F978-3-030-15032-7_75&amp;psig=AOvVaw15cedxOzdQGw54DyGDTavM&amp;ust=1626102561358000&amp;source=images&amp;cd=vfe&amp;ved=0CAoQjRxqFwoTCIiUlJ6m2_ECFQAAAAAdAAAAABAI">Source</a></figcaption></figure><p>Nearly everybody wants to invest their recreation energy to watch motion pictures with their loved ones. We as a whole have a similar encounter when we sit on our lounge chair to pick a film that we will watch and go through the following two hours yet can’t discover one following 20 minutes. It is so baffling. We unquestionably need a PC operator to give film proposals to us when we have to pick a film and spare our time. Evidently, a film suggestion specialist has just become a fundamental aspect of our life. As indicated by Data Science Central “Albeit hard information is hard to obtain, many educated sources gauges that, for the significant online business stages like Amazon and Netflix, that recommenders might be liable for as much as 10% to 25% of steady income.”</p><p><strong>What is the recommender System?</strong></p><p>There are two types of recommendation systems. They are</p><p><strong>1.</strong> <strong>Content-Based Recommender System</strong></p><p><a href="https://www.analyticsvidhya.com/blog/2015/08/beginners-guide-learn-content-based-recommender-systems/">A content-based recommender system</a> functions on a user’s generated data. We can create the data either directly (such as clicking likes) or indirectly (such as clicking links). This information is used to create a personal profile for the personal that includes the metadata of the user-interacted objects. The more reliable the device or engine collects results, the Interactive Recommender System becomes.</p><p><strong>2.</strong> <strong>Collaborative Recommender System</strong></p><p><a href="https://towardsdatascience.com/collaborative-filtering-based-recommendation-systems-exemplified-ecbffe1c20b1">A collaborative recommender system </a>makes a suggestion based on how the item was liked by related people. Users with common preferences would be grouped by the system. Recommender schemes can also conduct mutual filtering using object similarities in addition to user similarities (such as ‘Users who liked this object X also liked Y’). Most systems will be a combination of these two methods.</p><p>It is not a novel idea to make suggestions. Even if e-commerce was not so prevalent, retail store sales workers promoted goods to consumers for the purpose of upselling and cross-selling, eventually optimising profit. The goal of the recommendation programmes is exactly the same.</p><p>The recommendation system’s other goal is to achieve customer satisfaction by delivering valuable content and optimising the time a person spends on your website or channel. It also tends to increase the commitment of customers. On the other hand, ad budgets can be tailored only for those who have a tendency to respond to them by highlighting products and services.</p><h3>Why Recommendation systems?</h3><p><strong>1. They assist the customer with identifying objects of interest</strong></p><p><strong>2. Helps the provider of products distribute their products to the proper customer</strong></p><p><strong>a. To classify, for each consumer, the most appropriate products</strong></p><p><strong>b. Display each user customised content</strong></p><p><strong>c. Recommend the correct customer with top deals and discounts</strong></p><p>3. User interaction will enhance websites</p><p>4. This raises company profits by increased consumption.</p><h3>Daily Life Examples of Movies Recommender Systems:</h3><p>1.GroupLens <br> a) Helped in developing initial recommender systems by pioneering collaborative filtering model.</p><p>b) It also provided many data-sets to train models including Movie Lens and Book Lens<br> 2. Amazon<br> a) Implemented commercial recommender systems<br> b) They also implemented a lot of computational improvements<br> 3. Netflix<br> a) Pioneered Latent Factor/ Matrix Factorization models<br> 4. Google</p><p>a) Search results in search bar</p><p>b) Gmail typing next word</p><p>5. YouTube</p><p>a) Making a playlist</p><p>b) Suggesting same Genre videos<br> c) Hybrid Recommendation Systems<br> d) Deep Learning-based systems</p><blockquote>Let’s go with the Coding part. The dataset link is: <a href="https://www.kaggle.com/rounakbanik/the-movies-dataset">https://www.kaggle.com/rounakbanik/the-movies-dataset</a></blockquote><blockquote>import pandas as pd</blockquote><blockquote>import numpy as np</blockquote><blockquote>df1=pd.read_csv(‘../input/movies-dataset/movie_dataset.csv’)</blockquote><blockquote>df1.columns</blockquote><blockquote>df1.head(5)</blockquote><blockquote>import matplotlib.pyplot as plt</blockquote><blockquote>rich=df1.sort_values(‘budget’,ascending=False)</blockquote><blockquote>fig, ax = plt.subplots()</blockquote><blockquote>rects1 = ax.bar(rich[‘title’].head(15),rich[‘budget’].head(15), color=[“Red”,”Orange”,”Yellow”,”Green”,”Blue”])</blockquote><blockquote>plt.xlabel(“Movie Title”)</blockquote><blockquote>plt.rcParams[“figure.figsize”] = (50,50)</blockquote><blockquote>plt.title(“Budget Wise top movies”)</blockquote><blockquote>plt.ylabel(“Movie Budeget”)</blockquote><blockquote>def autolabel(rects):</blockquote><blockquote>for rect in rects:</blockquote><blockquote>height = rect.get_height()</blockquote><blockquote>ax.text(rect.get_x() + rect.get_width()/2., 1.05*height,</blockquote><blockquote>‘%f’ % float(height/100000),</blockquote><blockquote>ha=’center’, va=’bottom’)</blockquote><blockquote>autolabel(rects1)</blockquote><blockquote>plt.xticks(rotation=90)</blockquote><blockquote>plt.show()</blockquote><blockquote>rich1=df1.sort_values(‘vote_average’,ascending=False)</blockquote><blockquote>rich1.head()</blockquote><blockquote>fig, ax = plt.subplots()</blockquote><blockquote>rects1 = ax.bar(rich1[‘title’].head(20),rich1[‘vote_average’].head(20), color=[“Red”,”Orange”,”Yellow”,”Green”,”Blue”])</blockquote><blockquote>plt.xlabel(“Movie Title”)</blockquote><blockquote>plt.rcParams[“figure.figsize”] = (30,20)</blockquote><blockquote>plt.title(“Rating Wise top movies”)</blockquote><blockquote>plt.ylabel(“Average rating”)</blockquote><blockquote>def autolabel(rects):</blockquote><blockquote>for rect in rects:</blockquote><blockquote>height = rect.get_height()</blockquote><blockquote>ax.text(rect.get_x() + rect.get_width()/2., 1.05*height,</blockquote><blockquote>‘%f’ % float(height),</blockquote><blockquote>ha=’center’, va=’bottom’)</blockquote><blockquote>autolabel(rects1)</blockquote><blockquote>plt.xticks(rotation=90)</blockquote><blockquote>plt.show()</blockquote><blockquote>C= df1[‘vote_average’].mean()</blockquote><blockquote>print(C)</blockquote><blockquote>m= df1[‘vote_count’].quantile(0.9)</blockquote><blockquote>q_movies = df1.copy().loc[df1[‘vote_count’] &gt;= m]</blockquote><blockquote>q_movies.shape</blockquote><blockquote>def weightedrating(x,m=m,C=C):</blockquote><blockquote>v = x[‘vote_count’]</blockquote><blockquote>R = x[‘vote_average’]</blockquote><blockquote># Calculation based on the IMDB formula</blockquote><blockquote>return (v/(v+m) * R) + (m/(m+v) * C)</blockquote><blockquote># A new column for weighted rating named weight_score in the dataset</blockquote><blockquote>q_movies[‘weight_score’] = q_movies.apply(weightedrating, axis=1)</blockquote><blockquote>#Sort movies based on score calculated above</blockquote><blockquote>q_movies = q_movies.sort_values(‘weight_score’, ascending=False)</blockquote><blockquote>#Print the top 20 movies</blockquote><blockquote>q_movies[[‘title’, ‘vote_count’, ‘vote_average’, ‘weight_score’]].head(20)</blockquote><blockquote>pop= df1.sort_values(‘popularity’, ascending=False)</blockquote><blockquote>import matplotlib.pyplot as plt</blockquote><blockquote>plt.figure(figsize=(12,4))</blockquote><blockquote>plt.barh(pop[‘title’].head(5),pop[‘popularity’].head(5), align=’center’,</blockquote><blockquote>color=[‘red’,’pink’,’orange’,’yellow’,’green’])</blockquote><blockquote>plt.gca().invert_yaxis()</blockquote><blockquote>plt.xlabel(“Popularity”)</blockquote><blockquote>plt.title(“Popular Movies”)</blockquote><blockquote>df1[‘overview’].head(5)</blockquote><blockquote>features = [‘keywords’,’cast’,’genres’,’director’]</blockquote><blockquote>##Step 3: Create a column in DF which combines all selected features</blockquote><blockquote>for feature in features:</blockquote><blockquote>df1[feature] = df1[feature].fillna(‘’)</blockquote><blockquote>def combine_features(row):</blockquote><blockquote>try:</blockquote><blockquote>return row[‘keywords’] +” “+row[‘cast’]+” “+row[“genres”]+” “+row[“director”]</blockquote><blockquote>except:</blockquote><blockquote>print(“Error:”, row)</blockquote><blockquote>df1[“combined_features”] = df1.apply(combine_features,axis=1)</blockquote><blockquote>from sklearn.feature_extraction.text import CountVectorizer</blockquote><blockquote>from sklearn.metrics.pairwise import cosine_similarity</blockquote><blockquote>cv = CountVectorizer()</blockquote><blockquote>count_matrix = cv.fit_transform(df1[“combined_features”])</blockquote><blockquote>##Step 5: Compute the Cosine Similarity based on the count_matrix</blockquote><blockquote>cosine_sim = cosine_similarity(count_matrix)</blockquote><blockquote>sim_df = pd.DataFrame(cosine_sim,index=df1.title,columns=df1.title)</blockquote><blockquote>sim_df.head()</blockquote><blockquote>movie_user_likes = “Avatar”</blockquote><blockquote>sim_df[movie_user_likes].sort_values(ascending=False)[:20]</blockquote><blockquote>movie_user_likes = “Gravity”</blockquote><blockquote>sim_df[movie_user_likes].sort_values(ascending=False)[:20]</blockquote><blockquote>from scipy import sparse</blockquote><blockquote>from sklearn.metrics.pairwise import cosine_similarity</blockquote><blockquote>ratings = pd.read_csv(“../input/colab-fitting/toy_dataset.csv”,index_col=0)</blockquote><blockquote>ratings = ratings.fillna(0)</blockquote><blockquote>ratings</blockquote><blockquote>def standardize(row):</blockquote><blockquote>new_row = (row — row.mean())/(row.max()-row.min())</blockquote><blockquote>return new_row</blockquote><blockquote>ratings_std = ratings.apply(standardize)</blockquote><blockquote>item_similarity = cosine_similarity(ratings_std.T)</blockquote><blockquote>print(item_similarity)</blockquote><blockquote>item_similarity_df = pd.DataFrame(item_similarity,index=ratings.columns,columns=ratings.columns)</blockquote><blockquote>item_similarity_df</blockquote><blockquote>def get_similar_movies(movie_name,user_rating):</blockquote><blockquote>similar_score = item_similarity_df[movie_name]*(user_rating-2.5)</blockquote><blockquote>similar_score = similar_score.sort_values(ascending=False)</blockquote><blockquote>return similar_score</blockquote><blockquote>print(get_similar_movies(“romantic3”,1))</blockquote><blockquote>action_lover = [(“action1”,5),(“romantic2”,1),(“romantic3”,1)]</blockquote><blockquote>similar_movies = pd.DataFrame()</blockquote><blockquote>for movie,rating in action_lover:</blockquote><blockquote>similar_movies = similar_movies.append(get_similar_movies(movie,rating),ignore_index=True)</blockquote><blockquote>similar_movies.head()</blockquote><blockquote>similar_movies.sum().sort_values(ascending=False)</blockquote><p>In case the user or the movie is very new, we do not have many records to predict results. In such cases, the last value in the prediction will appear in recommendations and the performance of the recommendation system by comparing predicted values and original rating values. We will calculate the ‘RMSE’ (root mean squared error) value. In this case, the RMSE value is 0.9313, which one can judge if it is good or bad depending on the size of the dataset.</p><h3>Disadvantages of Movie Recommendation system:</h3><ol><li>It does not work for a new user who has not rated any item yet as enough ratings are required content-based recommender evaluates the user preferences and provides accurate recommendations.</li><li>No recommendation of serendipitous items.</li><li>Limited Content Analysis- The recommender does not work if the system fails to distinguish the items that a user likes from the items that he does not like.</li></ol><p>Give it claps if you love it as a beginner.<br>The blog is contributed by Arpit Bhushan Sharma !</p><p>For more projects, follow us on Github: www.github.com/arpit1920</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a26c5a839a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tensorflow for Reinforcement Learning]]></title>
            <link>https://arpit3043.medium.com/tensorflow-for-reinforcement-learning-9397e1237759?source=rss-2b311c3c9265------2</link>
            <guid isPermaLink="false">https://medium.com/p/9397e1237759</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Arpit Bhushan Sharma]]></dc:creator>
            <pubDate>Sun, 14 Feb 2021 10:12:00 GMT</pubDate>
            <atom:updated>2021-02-15T19:53:20.253Z</atom:updated>
            <content:encoded><![CDATA[<p>Reinforcement learning has gained valuable popularity with the relatively recent success of DeepMind’s AlphaGo method to beat the world champion Go player. The AlphaGo method was educated in part by reinforcement learning on deep neural networks. This style of learning is a distinct feature of machine learning from the classical supervised and unsupervised paradigms. In reinforcement learning, the network responds to environmental data (called the state) using deep neural networks and influences the behavior of an agent to try to optimize a reward. This technique helps a network to learn how to play sports, such as Atari or other video games, or some other challenge that can be rewritten as a form of the game. In this tutorial, a common model of reinforcement learning, I will introduce the broad principles of Q learning, and I will demonstrate how to incorporate deep Q learning in TensorFlow.</p><h3>Introduction to reinforcement learning</h3><p>As mentioned above, reinforcement learning consists of a few basic entities or principles. They are an environment that creates a condition and reward and an entity that performs actions in the given environment. In the diagram below, you see this interaction: The task of the agent in such a setting is to analyze the state and the incentive information it receives and pick a behavior that maximizes the input it receives from the reward. The agent learns by repetitive contact with the world, or, in other words, repeated playing of the game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/0*mwDB8uqA4ilBDvGY.png" /></figure><p>To succeed, it is necessary for the agent to: <br>1. Learn the link between states, behavior, and resulting incentives<br>2. Determine which is the best move to pick from (1) Implementation (1) requires defining a certain set of principles that can be used to notify (2) and (2) is referred to as the strategy of operation. One of the most common methods of applying (1) and (2) using deep Q is the Deep Q network and the epsilon-greedy policy.</p><p>You can see in the table above that for this simple game when the agent is State 1 and takes Action 2 if it takes Action 1, it will receive a reward of 10 but zero rewards. In-State 2, the condition is reversed, and State 3 eventually resembles State 1. If an agent arbitrarily explored this game and tallied up the behavior obtained the most reward in any of the three states (storing this knowledge in an array, say), so the above table’s practical form will effectively be known. In other words, if the agent actually selected the behavior it had learned in the past that had provided the highest reward (learning some form of the table above effectively), it would have learned how to play the game effectively. When it is appropriate to simply build tables by summation, why do we need fancy ideas like Q learning and then neural networks?</p><p><strong>Deferred reward </strong><br>Well, the first apparent answer is that the game above is simply very simple, with just 3 states and 2 acts per state. True games are significantly more complex. The principle of delayed reward in the above case is the other significant concept that is absent. An agent has to learn to be able to take steps to properly play the most realistic games, which may not necessarily lead to a reward, but may result in a significant reward later down the road.</p><p>If Action 2 is taken in all states in the above-mentioned game, the agent moves back to State 1, i.e., it goes back to the beginning. In States 1 to 3, it even gets a credit of 5 as it does so. If therefore, Action 1 is taken in all States 1–3, the agent shall travel to the next state, but shall not receive a reward until it enters State 4, at which point it shall receive a reward of 20. In other words, an agent is better off if it does not take Action 2 to get an instantaneous reward of 5, but instead, it can choose Action 1 to proceed continuously through the states to get a reward of 20. The agent wants to be able to pick acts that result in a delayed reward when the delayed reward value is too high.</p><h3>The Q learning rule</h3><h3>Deep Q learning</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/0*-TJEwqxgGztqrOIC.png" /></figure><p>Q learning is a value-based way of delivering data to tell which action an agent can take. To create a table that sums up the benefits of taking action over several games plays in a state is an originally intuitive concept of generating principles on which to base actions. This will keep track of which the most beneficial movements are. For starters, let’s consider a simple game in each state with 3 states and two potential actions-a the table may represent the rewards for this game: Which encourages us to clarify the Q learning rules. In deep Q learning, the neural network needs to take the present state, s, as a vector and return a Q value for each potential behavior, a, in that state, i.e. It is necessary to return Q(s, a) for both s and a. This Q(s, a) needs to be revised in training through the following rule:</p><p>Q(s,a) = Q(s,a) + alp[r+γmax Q(s’,a ‘) — Q(s,a)] + alp[r+ γmax Q(s’,a’)</p><p>This law needs a bit of unpacking for the upgrade. Second, you can see that the new value of Q(s, a) requires changing its existing value by inserting some extra bits on the right-hand side of the above equation. Switch left to right. Forget the alpha for a while. Inside the square brackets, we see the first word is r, which stands for the award earned for taking action in states. This is the instant reward; no deferred satisfaction is involved yet. The next word is the deferred incentive estimation. First of all, we have the γ value that discounts the delayed reward effect, which is always between 0 and 1. More on that in a second. The next term maxa’Q(s, ‘a’) is the maximum Q value available in the next condition. Let’s make things a little easier-the agent starts in states, takes action a, finishes in states, and then the code specifies the maximum value of Q in states, i.e. max a ‘Q(s’, a’). Why is the Max a ‘Q(s’, a’) sense taken into consideration, then? If it takes effect and in state s, it is known to represent the full possible reward going to the handler. However, γ discounts this value to take into account that waiting for a possible incentive forever is not desirable for the agent-it is better for the agent to target the largest prize with the least amount of time. Notice that the Q(s’, a)’ value also implicitly retains the highest discounted incentive for the economy after that, i.e. Q(s’, a)’ because it maintains the discounted motivation for the state Q(s’, a)’ and so on. This is because the agent will select the action not only based on the immediate reward r but also based on potential future discounted incentives.</p><p>Deep Q learning follows the Q learning updating law throughout the training phase. In other words, a neural network is created that takes state s as its input, and then the network is trained to produce appropriate Q(s, a) values for each behavior in state s. The action of the agent will then be selected by taking the action with the largest Q(s, a) value (by taking an argmax from the output of the neural network). This can be seen in the first step of the diagram below:</p><p><strong>Action selecting and training steps — Deep Q learning</strong></p><p>Once this transfer has been made and action has been selected, the agent will act. The agent will then gain feedback on what incentive is being given for taking the action from that state. In keeping with the Q Learning Guideline, the next step we want to do now is to train the network. In the second part, this can be seen in the diagram above. The state vector s is the x input array for network training, and the output training sample is the Q(s, a) vector collected during the action’s selection process. However, one of the Q(s, a) values, corresponding to action a, is set to have a goal of r+γQ(s’, a ‘), as can be seen in the figure above. By training the network in this way to tell the agent what behavior will be the best to select for its long-term benefit, the Q(s, a) output vector from the network will get stronger over time.</p><p><strong>Pros of Reinforcement Learning:</strong></p><p>Reinforcement learning can be used to solve very challenging challenges that can not be overcome by conventional approaches. This strategy is selected to produce long-term results, which are very difficult to achieve. This learning pattern is somewhat similar to the learning of human beings. Hence, it is close to reaching perfection. The model would correct the mistakes that have occurred during the testing phase. If an error is corrected by the model, the chances of the same mistake occurring are slightly lower. It would create the best paradigm for a particular problem to be solved.</p><p><strong>Cons of Reinforcement Learning:</strong></p><ul><li>Reinforcement learning as a scheme is incorrect in many different respects, but it is precisely this quality that makes it useful</li><li>Too much reinforcement learning can result in states being overwhelmed, which can reduce the results.</li><li>Reinforcement learning is not preferable to be used to solve fundamental problems.</li><li>Reinforcement learning requires a great deal of intelligence and a great deal of computation. It’s data-hungering. That’s why it fits so well in video games, so you can play the game over and over again, and it seems possible to get a lot of details.</li><li>Reinforcement learning assumes that the universe is Markovian, which it is not. The Markovian model describes a sequence of possible events in which the probability of each occurrence depends only on the condition attained in the previous event.</li></ul><p>Bio:</p><p>About the Author: <a href="https://www.blogger.com/blog/post/edit/7314556598893980690/7132443321114442724#">Arpit Bhushan Sharma</a> (<a href="https://www.blogger.com/blog/post/edit/7314556598893980690/7132443321114442724#">B.Tech</a>, 2016–2020) Electrical &amp; Electronics Engineering, Dr. APJ Abdul Kalam Technical University, Lucknow | Patent Analyst — Lakshmikumaran &amp; Sridharan Attorney | Microsoft Student Partner (Beta)| Student Member R10 IEEE | Student Member PELS/PES | E-mail: bhushansharmaarpit@gmail.com</p><p>If you really like the article, please do the honor by comment and sharing (citation) for motivating me.</p><p><em>Originally published at </em><a href="https://arpit-ml.blogspot.com/2021/02/tensorflow-for-reinforcement-learning.html"><em>https://arpit-ml.blogspot.com</em></a><em> on February 14, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9397e1237759" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hyperparameter Tuning in Python]]></title>
            <link>https://arpit3043.medium.com/hyperparameter-tuning-in-python-6863ca5bdb35?source=rss-2b311c3c9265------2</link>
            <guid isPermaLink="false">https://medium.com/p/6863ca5bdb35</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[hyperparameter-tuning]]></category>
            <category><![CDATA[optuna]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Arpit Bhushan Sharma]]></dc:creator>
            <pubDate>Thu, 31 Dec 2020 10:40:06 GMT</pubDate>
            <atom:updated>2020-12-31T10:40:06.224Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the easiest ways to get the last juice out of the models is to pick the right hyperparameters for machine learning or deep learning models. I will show you in this article some of the best ways to do hyperparameter tuning available today (in 2021)</p><h3>Difference between parameter and hyper-parameters?</h3><ol><li>Parameters of the model: These are the parameters calculated on the given dataset by the model. The weights of a deep neural network, for instance.</li><li>Hyperparameters of Models: these are the parameters where the data model cannot predict. This is used for calculating the parameters of the model. For starters, in deep neural networks the learning rate.</li></ol><h3>Why Hyper-parameter tuning is more important?</h3><p>The tuning technique is used to estimate the best hyperparameter combination that helps the algorithm to optimise the efficiency of the model. The proper hyperparameter combination is the only way to achieve the full value from the models.</p><h3>How to Choose Hyper-parameters?</h3><p>It isn’t a straightforward feat to pick the correct hyperparameter mix. It can be set in two forms.<br>1. Hyperparameter manual tuning: This approach is used to manually set (and experiment) various combinations of hyperparameters. This is a repetitive method and not feasible how multiple hyperparameters are to be attempted.<br>2. Applying automatic hyperparameters: This approach uses an algorithm that automates and optimises the procedure and determines optimal hyperparameters.</p><h3>Methods of Hyper-Parameter Tuning</h3><ol><li><strong>Random Search:</strong> We construct a grid of potential hyperparameter values using the random search technique. Each iteration attempts a random mix of hyperparameters, tracks the output of the grid and eventually returns the best performing combination of the hyperparameters.</li><li><strong>Grid Search: </strong>We construct a grid of potential hyperparameter values in the grid search process. Each iteration attempts in a particular order to combine hyperparameters. It adapts to all possible hyperparameter configurations and reports the efficiency of the model. Finally, for the optimal hyperparameters, the best model returns.</li><li><strong>Bayesian Optimization: </strong>The optimisation challenge is to tune and locate the correct hyperparameters for your model. By adjusting model parameters, we wish to minimise the loss function of our model. In a minimal number of moves, Bayesian optimism helps one find the minimum point. Bayesian optimization also uses a buying feature which guides the sampling in areas where the best observation is likely to improve on the present one.</li><li><strong>Tree-structured Parzen estimators (TPE): </strong>The principle of optimising Tree-based Parzen is like optimising Bayesian. The hyperparameter values of the TPE models P(x|y) and P instead of finding the values of p(y|x) where y is the minimised function (e.g., validated loss) and x (y). One of the major limitations of tree-structured Parzen estimators is that the hyperparameters do not map interactions. Thus TPE performs very well and was checked in most fields. This works very well in practice.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/0*85bhGP7HZEVRJB6q" /><figcaption><a href="https://nanonets.com/blog/hyperparameter-optimization/">Source</a></figcaption></figure><h3>Hyperparameter tuning algorithms</h3><ol><li><strong>Hyperband: </strong>Hyperband is a random search variant, but with some discovery, philosophy to find the right time assignment for each setup. For more information, please see this research article.</li><li><strong>Population-based training (PBT): </strong>This methodology is the hybrid of two search techniques most widely used, namely random search and manual tuning for neural network models. PBT begins teaching several neural networks with random hyperparameters in parallel. However, these networks are not completely separate. The data from the rest of the population is used to optimise hyperparameters and to define the hyperparameter value to attempt. For more information on PBT, please review this post.</li><li><strong>Bayesian Optimization and HyperBand(BOHB): </strong>BOHB (Bayesian Optimization and HyperBand) mixes the Hyperband algorithm and Bayesian optimization.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*I2LJyD3PQ9Wh9pWd" /><figcaption><a href="https://deepmind.com/blog/article/population-based-training-neural-networks">Source</a></figcaption></figure><h3>Important tools &amp; Libraries for Hyper-Parameter Tuning</h3><p>Some of the best Hyperparameter Optimization libraries are:</p><ol><li><a href="https://scikit-learn.org/">Scikit-learn</a> (grid search, random search)</li><li><a href="http://hyperopt.github.io/hyperopt/">Hyperopt</a></li><li><a href="https://scikit-optimize.github.io/">Scikit-Optimize</a></li><li><a href="https://optuna.org/">Optuna</a></li><li><a href="https://docs.ray.io/en/latest/tune/index.html">Ray.tune</a></li></ol><h3>Scikit learn</h3><p>Scikit-learn has implementations for grid search and random search and is a good place to start if you are building models with sklearn. For both of those methods, sci-kit-learn trains and evaluates a model in a k fold cross-validation setting over various parameter choices and returns the best model.</p><p>Specifically:</p><ul><li>Random search: with <a href="https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.RandomizedSearchCV.html">randomsearchcv</a> runs the search over some number of random parameter combinations</li><li>Grid search: <a href="https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html">gridsearchcv</a> runs the search over all parameter sets in the grid</li></ul><p>Tuning models with scikit-learn is a good start but there are better options out there and they often have random search strategy anyway.</p><h3><strong>Hyperopt</strong></h3><p>One of the most common tuning packages available for hyperparameters is Hyperopt. Hyperopt helps the user to describe a search field where the user wants the best answer to be able to search the algorithms more accurately in hyperopt.<br>There are actually three hyperopt algorithms.<br>1. Check Random<br>2. Estimators Tree of Parzen (TPE)<br>3. TPE adjustment<br>You can first explain how to use hyperopt:<br>1. The goal function to limit<br>2. Room for searching<br>3. the directory for storing all search points assessments<br>4. Using the Search Algorithm<br>This guide teaches you how to structure the code and use the programme hyperopt to get the best hyperparameters.</p><h3>Scikit-optimize</h3><p>In order to find optimal solutions for hyperparameter search problems in less time, Scikit-optimize uses a sequential models-based search algorithm.<br>Scikit-optimize offers many other features than maximising hyperparameters, for example:<br>1. Products of load and store optimisation,<br>2. Plots for integration,<br>3. Comparison of substitute versions</p><h3>Optuna</h3><p>In order to decide the promising region for maximising the hyperparameter, Optuna uses a historical record of trails and thus finds optimum parameter within a minimum time. It has a cutting mechanism that prevents promising pathways in the early stages of training automatically. Four of the most important characteristics of optuna are:</p><ol><li>Architecture lightweight, scalable and platform-agnostic</li><li>Check spaces Pythonic</li><li>Effective algorithms for optimization</li><li>Simple to parallel</li><li>Quick visualisation</li></ol><h3><strong>Ray Tune</strong></h3><p>RayTune is a common choice of experiments and tuning in every scale for hyperparameters. Ray uses the strength of distributed computation to speed up the optimization of the hyperparameters and has a scaling algorithm for a variety of state of the art. Any of the main characteristics of ray tuning are:</p><ol><li>Asynchronous optimization spread by Ray from the box. distributed It’s quick to scale.</li><li>SOTA algorithms like ASHA, BOHB and population-based workouts were supported.</li><li>Supports MLflow and Tensorboard.</li><li>Supports a wide range of frames, such as sklearn, xgboost, TensorFlow and PyTorch.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/0*RQDbbRqfmIJ96Se6" /><figcaption><a href="https://hackernoon.com/super-simple-distributed-hyperparameter-tuning-with-keras-and-mongo-3aaf488a2dd1">Source</a></figcaption></figure><h3>Keras Tuner</h3><p>Keras Tuner is a library that allows you to select the right collection of hyperparameters for TensorFlow. In addition to model architecture, when you create a model for tuning hyperparameters, you also describe the search space of the hyperparameter.</p><p>A hyper model is called the model you set up for the tuning of hyperparameters. Two approaches help you to describe a hypermodel:</p><ol><li>By using a blueprint building function</li><li>By splitting the Keras Tuner API HyperModel class</li></ol><p>You can also use HyperXception and HyperResNet for machine viewing purposes, two predefined HyperModel groups.</p><h3>Hyper Parameter Tuning Resources and Examples</h3><h4><strong>Random forest</strong></h4><ul><li><a href="https://towardsdatascience.com/hyperparameter-tuning-the-random-forest-in-python-using-scikit-learn-28d2aa77dd74">Understanding Random forest hyperparameters</a></li><li><a href="https://blog.dominodatalab.com/hyperopt-bayesian-hyperparameter-optimization/">Bayesian hyperparameter tuning for random forest</a></li><li><a href="https://www.kaggle.com/sociopath00/random-forest-using-gridsearchcv">Random forest tuning using grid search</a></li></ul><h4>XGBoost</h4><ul><li><a href="https://www.analyticsvidhya.com/blog/2016/03/complete-guide-parameter-tuning-xgboost-with-codes-python/">XGBoost hyperparameters tuning python</a></li><li><a href="https://www.analyticsvidhya.com/blog/2016/01/xgboost-algorithm-easy-steps/">XGBoost hyperparameters tuning in R</a></li><li><a href="https://www.kaggle.com/alexandrnikitin/xgboost-hyperparameter-optimization">XGBoost hyperparameter using hyperopt</a></li><li><a href="https://www.kaggle.com/corochann/optuna-tutorial-for-hyperparameter-optimization">Optuna hyperparameter tuning example</a></li></ul><h4>LightGBM</h4><ul><li><a href="https://neptune.ai/blog/lightgbm-parameters-guide">Understanding LightGBM parameters</a></li><li><a href="https://www.kaggle.com/mlisovyi/lightgbm-hyperparameter-optimisation-lb-0-761">LightGBM hyperparameter tuning example</a></li><li><a href="https://tech.preferred.jp/en/blog/lightgbm-tuner-new-optuna-integration-for-hyperparameter-optimization/">Optuna for LIghtGBM hyperparameter tuning</a></li></ul><h4>Catboost</h4><ul><li><a href="https://catboost.ai/docs/concepts/parameter-tuning.html">Catboost hyperparamters overview</a></li><li><a href="https://effectiveml.com/using-grid-search-to-optimise-catboost-parameters.html">Grid search for catboost hyperparameter tuning</a></li></ul><h4>Keras</h4><ul><li><a href="https://blog.tensorflow.org/2020/01/hyperparameter-tuning-with-keras-tuner.html">Hyperparameter tuning using Keras- tuner example</a></li><li><a href="https://www.sicara.ai/blog/hyperparameter-tuning-keras-tuner">Keras CNN hyperparameter tuning</a></li><li><a href="https://machinelearningmastery.com/grid-search-hyperparameters-deep-learning-models-python-keras/">How to use Keras models in scikit-learn grid search</a></li></ul><h4>Pytorch</h4><ul><li><a href="https://towardsdatascience.com/rocking-hyperparameter-tuning-with-pytorchs-ax-package-1c2dd79f2948">Hyperparameter tuning for Pytorch</a></li><li><a href="https://medium.com/pytorch/using-optuna-to-optimize-pytorch-hyperparameters-990607385e36">Using optuna for hyperparameter tuning</a></li></ul><p>About the Author: <a href="http://bit.ly/arpit-linkedin">Arpit Bhushan Sharma</a> (<a href="http://b.tech/">B.Tech</a>, 2016–2020) Electrical &amp; Electronics Engineering, Dr. APJ Abdul Kalam Technical University, Lucknow | Patent Analyst — Lakshmikumaran &amp; Sridharan Attorney | Microsoft Student Partner (Beta)| Student Member R10 IEEE | Student Member PELS/PES | E-mail: bhushansharmaarpit@gmail.com</p><p>If you really like the article, please do the honour for help and motivating me</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/0*029pmGBR_dV4Faic.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6863ca5bdb35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Will it be good to say- Bye Python and Hello Julia]]></title>
            <link>https://arpit3043.medium.com/will-it-be-good-to-say-bye-python-and-hello-julia-a8ff29dad5d7?source=rss-2b311c3c9265------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8ff29dad5d7</guid>
            <category><![CDATA[hello-world]]></category>
            <category><![CDATA[julia]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Arpit Bhushan Sharma]]></dc:creator>
            <pubDate>Thu, 03 Dec 2020 13:02:22 GMT</pubDate>
            <atom:updated>2020-12-03T13:05:19.368Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*9aPzlBDflJ-qmTY1z-QH0A.png" /><figcaption><a href="https://medium.com/@devathon_/julia-vs-python-in-2020-d2dc2c2ef3f"><em>source</em></a></figcaption></figure><p>A rock-solid culture of computer scientists, data scientists, and AI experts also support Python’s success. But if you’ve ever been with these people at a dinner table, you already know how much they rant about Python’s vulnerabilities. There is plenty to be pissed off over, from being late to having unnecessary checking, to generating runtime errors amid the previous testing. Therefore, other languages are being followed by more and more programmers, with Julia, Go, and Rust being the top players.</p><p>For mathematical and technological activities, Julia is fine, while Go is great for modular applications, and Rust is the top pick for programming systems. Julia is the winner for them, as data scientists and AI specialists work with a lot of mathematical problems. And Julia has upsides, even after critical scrutiny, that Python cannot beat.</p><p><strong>Why Python is not the programming language of the future?</strong></p><p>Everyone as an individual develops a modern programming language and they want to preserve the positive characteristics of old languages and correct the poor ones. In this context, in the late 1980s, to develop ABC, Guido van Rossum developed Python. Although its rigidity made it easy to instruct, it was difficult to use in real life and the libraries made a boom python, the latter was too ideal for a programming language. Python, in comparison, is rather tactical.</p><p><strong>Python kept the good features of ABC</strong>: Readability, simplicity, and beginner-friendliness for example. But Python is far more robust and adapted to real life than ABC ever was. ABC paved the way for Python, which is paving the way for Julia. Photo by <a href="https://www.blogger.com/blog/post/edit/7314556598893980690/5853866509825275715">David Ballew</a> on <a href="https://www.blogger.com/blog/post/edit/7314556598893980690/5853866509825275715">Unsplash</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*NS-sOoiovMBrcS7xZ0EAdw.png" /></figure><p>The developers of Julia, in the same way, tend to retain the good bits of other languages and ditch the bad ones. Julia, though, is even more ambitious: instead of eliminating one language, its aims to beat both of them. This is how <a href="https://www.blogger.com/blog/post/edit/7314556598893980690/5853866509825275715">Julia’s creators</a> say it:</p><p><strong><em>“We are greedy: we want more. We want an open-source language, with a liberal license. We want the speed of C with the dynamism of Ruby. We want a language that’s homo-iconic, with true macros like Lisp, but with an obvious, familiar mathematical notation like MATLAB. We want something as usable for general programming as Python, as easy for statistics as R, as natural for string processing as Perl, as powerful for linear algebra as MATLAB, as good at glueing programs together as the shell. Something that is dirt simple to learn yet keeps the most serious hackers happy. We want it interactive and we want it compiled.”</em></strong></p><p>Julia needs to combine all the upsides that actually exist and not trade them off in other languages for the downsides. And while Julia is a young language, many of the targets set by the developers have already been accomplished.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*gKIdXELPjXQliLQBKwh7Mw.png" /><figcaption><a href="https://devathon.com/blog/julia-vs-python-which-programming-language-is-better/"><em>source</em></a></figcaption></figure><p><strong>What Julia developers are loving</strong></p><p><strong>1.</strong> <strong>Versatility</strong></p><p>From basic machine learning applications to massive supercomputer simulations, Julia can be used for anything. Python may do this, too, to some degree, but Python has somehow evolved into the work.</p><p>Julia, on the other hand, was designed specifically for these things. Up from the bottom.</p><p>2. <strong>Speed</strong></p><p>The developers of Julia tried to render a language as fast as C, but what they’ve developed is much faster. While in recent years, Python has become easier to speed up, its performance is still a far cry from what Julia can do. Julia also joined the Petaflop Group in 2017, a small language club that can reach one petaflop per second at high-performance levels. Apart from Julia, right now, only C, C++ and Fortran are in the club.</p><p>3. <strong>Community</strong></p><p>Python has an immense and supportive society for its more than 30 years of age. There is hardly a Python-related query that within one Google search you will not get answered. The Julia Group, by comparison, is small. Although this means that you may need to search a little deeper to find an answer, you may be able to connect up again and again with the same people. And this can transform into beyond-value programmer-relationships.</p><p>4. <strong>Code conversion</strong></p><p>In Julia, you don’t even need to know a single Julia-code order. Inside Julia, you can not only use Python and C language. In Python, you can also use Julia!</p><p>This makes patching the vulnerabilities in your Python code incredibly simple. Or to remain successful when you are still getting to know Julia.</p><p>5. <strong>Libraries</strong></p><p>This is one of Python’s best aspects, its well-maintained libraries of zillions. Julia does not have many libraries, and users have complained that they are not (yet) maintained impressively.</p><p>But the number of libraries they already have is remarkable when you remember that Julia is a very young language with a small amount of money. Apart from the fact that Julia’s number of libraries is increasing, for instance, it can also communicate with C and Fortran libraries to manage plots.</p><p>6. <strong>Dynamic and static types</strong></p><p>Python is dynamically typed at 100 per cent. This means that at runtime, the programme determines if, for example, a value is a float or an integer. While this is incredibly beginner-friendly, a whole host of potential glitches are also added. This means that, in all possible cases, you need to verify Python code, which is quite a stupid job that takes a lot of time. Since the Julia-creators have wanted it to be quick to read, dynamic typing is completely supported by Julia. But you can add static forms if you wish, in comparison to Python, for example, in the way they are present in C or Fortran. This will save you a lot of time: You can assign the type anywhere it makes sense, instead of making reasons for not checking the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*SpHDnRW3Jpr5x3P4Qobq1Q.png" /><figcaption><a href="https://www.researchgate.net/profile/Dennis_Gannon/publication/329630136/figure/fig1/AS:703505731956736@1544740245010/Speed-up-of-Julia-and-C-relative-to-Python.png"><em>source</em></a></figcaption></figure><p>While all these stuff sounds fantastic, it is important to bear in mind that, relative to Python, Julia is still short. The number of questions on Stack Overflow is one reasonably decent metric: currently, Python is tagged about twenty more frequently than Julia! This does not indicate that Julia is controversial, but it takes some time to get adopted by programmers, inevitably. Think about it, would you actually like to write in a foreign language the whole code? No, in some hypothetical project, you would rather try a different language. This causes a time gap between its publication and its acceptance that every programming language faces. But you’re spending in the future if you implement it today, which is simple because Julia makes a massive amount of language translation. You’ll also have the experience to answer their questions as more and more people support Julia. Even, as more and more Python coding is substituted by Julia, the code will be more durable.</p><p>Python is still insanely popular. But if you learn Julia now, that could be your golden ticket later. In this sense: Bye-bye Python. Hello Julia!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dcHiZUvknHbmQZosKyJbuw.gif" /></figure><p>Author Bio: <a href="http://bit.ly/arpit-linkedin">Arpit Bhushan Sharma</a> (<a href="http://b.tech/">B.Tech</a>, 2016–2020) Electrical &amp; Electronics Engineering, KIET Group of Institutions Ghaziabad, Uttar Pradesh, India. | Patent Analyst — Lakshmikumaran &amp; Sridharan Attorney | Microsoft Student Partner (Beta)| Student Member R10 IEEE | Student Member PELS/PES | Voice: +91 8445726929 | E-mail: bhushansharmaarpit@gmail.com</p><p>If you really like the article, please do the honour for help and motivating me:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*h_eTnVy6NZKBI7Ap44IlwA.gif" /></figure><p>Some FAQs:</p><p>1. Is Julia better than C++ and python both?</p><p><strong>Julia</strong>, an excellent choice for numerical computing and it takes lesser time for big and complex codes. <strong>Julia</strong> undoubtedly beats <strong>Python and C++</strong> in the performance and speed category.</p><p>2. Is Julia as fast as C?</p><p>Julia prides itself on being so fast. Julia can be as swift and sometimes even quicker than C, especially when written well. Julia uses the compiler Just In Time (JIT) which compiles extremely easily, but it compiles more like an interpreted language than a compiled conventional low-level language such as C, or Fortran.</p><p>3. Is it worth learning Julia for the future aspect?</p><p>It is certainly worth learning Julia, particularly if you are disappointed with the success of the most common languages, such as Python or R. It seems like it is really now if you are interested in using Julia for web creation, but you are also going to be an early adopter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8ff29dad5d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with Natural Language Processing on Restaurant Review Data]]></title>
            <link>https://arpit3043.medium.com/working-with-natural-language-processing-on-restaurant-review-data-dc3168abb371?source=rss-2b311c3c9265------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc3168abb371</guid>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[projects]]></category>
            <dc:creator><![CDATA[Arpit Bhushan Sharma]]></dc:creator>
            <pubDate>Wed, 21 Oct 2020 06:50:51 GMT</pubDate>
            <atom:updated>2020-10-21T06:50:51.236Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MsAkDpRSBcDY7zoTWcAAHw.gif" /><figcaption>Natural language Processing</figcaption></figure><p>Computers are great at working with structured data like spreadsheets and database tables. But humans usually communicate in words, not in tables. That’s unfortunate for computers. A lot of information in the world is unstructured — raw text in English or another human language. How can we get a computer to understand the unstructured text and extract data from it?</p><p>The field of study that focuses on the interactions between human language and computers is called Natural Language Processing, or NLP for short. It sits at the intersection of computer science, artificial intelligence, and computational linguistics. NLP is a way for computers to analyze, understand, and derive meaning from human language in a smart and useful way. In simple terms, <em>Natural Language Processing</em>, or <em>NLP</em>, is the sub-field of AI that is focused on enabling computers to understand and process human languages. Let’s see how NLP works so that a computer can understand the unstructured text and extract data from it.</p><h3>Does the computer understand the English language?</h3><p>As long as computers have been around, programmers have been trying to write programs that understand languages like English. The reason is pretty obvious — humans have been writing things down for thousands of years and it would be really helpful if a computer could read and understand all that data.</p><p>Computers don’t yet truly understand English in the way that humans do — but they can already do a lot! In certain limited areas, what you can do with NLP already seems like magic. You might be able to save a lot of time by applying NLP techniques to your own projects.</p><p>And even better, the latest advances in NLP are easily accessible through open-source Python libraries like spaCy, textacy and neuralcoref. What you can do with just a few lines of python is amazing.</p><p>Here is something new with the Work of Natural Language Processing:</p><p>There is a Dataset of Restaurant Review and we have to predict the reviews of Result from the text Data using Natural Language Processing.</p><p>Let&#39;s see If Computer will understand English or not?</p><p>The Link for Dataset is: <a href="https://www.kaggle.com/nanuprasad/restaurant-reviews">https://www.kaggle.com/nanuprasad/restaurant-reviews</a></p><p><strong>Importing All Essential Libraries</strong><br>1. A (software) library is a collection of files (called modules) that contains functions for use by other programs.<br>2. May also contain data values (e.g., numerical constants) and other things.<br>3. Library’s contents are supposed to be related, but there’s no way to enforce that.<br>4. The Python standard library is an extensive suite of modules that comes with Python itself.<br>5. Many additional libraries are available from PyPI (the Python Package Index).</p><p><strong>Reading the Dataset by converting it into a readable Dataframe using Pandas</strong></p><p>panda is an open-source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language. For the source file of pandas, you can go to the <a href="https://github.com/pandas-dev/pandas">Github link</a></p><p><strong>Working on Data Visualizations task</strong></p><p><strong>Cleaning the texts</strong><br>You cannot go straight from raw text to fitting a machine learning or deep learning model. You must clean your text first, which means splitting it into words and handling punctuation and case. In fact, there is a whole suite of text preparation methods that you may need to use, and the choice of methods really depends on your natural language processing task. After actually getting a hold of your text data, the first step in cleaning up text data is to have a strong idea about what you’re trying to achieve, and in that context review your text to see what exactly might help.</p><p>For more study on the topic, you can go on with the following <a href="https://machinelearningmastery.com/clean-text-machine-learning-python/">Blog post</a></p><p><strong>Creating the Bag of Words model</strong><br>The bag-of-words model is a way of representing text data when modeling text with machine learning algorithms. The bag-of-words model is simple to understand and implement and has seen great success in problems such as language modeling and document classification. A bag-of-words model, or BoW for short, is a way of extracting features from the text for use in modeling, such as with machine learning algorithms. The approach is very simple and flexible and can be used in a myriad of ways for extracting features from documents. A bag-of-words is a representation of text that describes the occurrence of words within a document. It involves two things:</p><ol><li>A vocabulary of known words.</li><li>A measure of the presence of known words.</li></ol><p>It is called a “bag” of words, because any information about the order or structure of words in the document is discarded. The model is only concerned with whether known words occur in the document, not where in the document. For more study on this topic, you can move on with the [<a href="https://machinelearningmastery.com/gentle-introduction-bag-words-model/">blog of Machine Learning Mastery</a> which is very detailed on BoW</p><p><strong>Splitting the dataset into the Training set and Test set</strong></p><p>The train-test split procedure is used to estimate the performance of machine learning algorithms when they are used to make predictions on data not used to train the model. It is a fast and easy procedure to perform, the results of which allow you to compare the performance of machine learning algorithms for your predictive modeling problem. Although simple to use and interpret, there are times when the procedure should not be used, such as when you have a small dataset and situations where the additional configuration is required, such as when it is used for classification and the dataset is not balanced.</p><p>For more study on this method, you can go on the following <a href="https://machinelearningmastery.com/train-test-split-for-evaluating-machine-learning-algorithms/">Blog of Machine learning Mastery</a></p><p><strong>Training the Naive Bayes model on the Training set</strong></p><p>Naive Bayes classifiers are a collection of classification algorithms based on Bayes’ Theorem. It is not a single algorithm but a family of algorithms where all of them share a common principle, i.e. every pair of features being classified is independent of each other.<br>For more reading, you can go on with the blog of <a href="https://www.geeksforgeeks.org/naive-bayes-classifiers/#:~:text=Naive%20Bayes%20classifiers%20are%20a,is%20independent%20of%20each%20other.">Naive Bayes from geek for Geeks</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*olED6LqH-89F30M-oNoGHQ.png" /></figure><p>The Probability Distribution of Naive Bayes Classifier using Bayes Theorem of Probability</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*GZNWixK2Yg8L6DqePHqkAQ.png" /></figure><p><strong>Predicting the Test set results<br></strong>Once you choose and fit a final machine learning model in scikit-learn, you can use it to make predictions on new data instances.<br>There is some confusion amongst beginners about how exactly to do this. I often see questions such as:<br>How do I make predictions with my model in scikit-learn?<br>You can get your detailed answer in the <a href="https://machinelearningmastery.com/make-predictions-scikit-learn/">Blog of machine learning mastery</a></p><p><strong>Making the Confusion Matrix</strong></p><p>A confusion matrix is a technique for summarizing the performance of a classification algorithm. Classification accuracy alone can be misleading if you have an unequal number of observations in each class or if you have more than two classes in your dataset. Calculating a confusion matrix can give you a better idea of what your classification model is getting right and what types of errors it is making.</p><p>For More on the Confusion Matrix, you can go on with the <a href="https://machinelearningmastery.com/confusion-matrix-machine-learning/">Machine Learning Mastery Blog on the Confusion matrix</a></p><pre>import os<br>import re<br>import nltk<br>import numpy as np<br>import pandas as pd<br>import matplotlib.pyplot as plt<br>from nltk.corpus import stopwords<br>from nltk.stem.porter import PorterStemmer<br>from sklearn.naive_bayes import GaussianNB<br>from sklearn.feature_extraction.text import CountVectorizer<br>for dirname, _, filenames <strong>in</strong> os.walk(&#39;/kaggle/input&#39;):<br>    for filename <strong>in</strong> filenames:<br>        print(os.path.join(dirname, filename))</pre><pre>dataset = pd.read_csv(‘/kaggle/input/restaurant-reviews/Restaurant_Reviews.tsv’, delimiter = ‘\t’, quoting = 3)</pre><pre>dataset.head()<br>dataset.tail()<br>dataset.describe()<br>dataset.corr()</pre><pre>nltk.download(&#39;stopwords&#39;)<br>corpus = []<br>for i in range(0, 1000):<br>    review = re.sub(&#39;[^a-zA-Z]&#39;, &#39; &#39;, dataset[&#39;Review&#39;][i])<br>    review = review.lower()<br>    review = review.split()<br>    ps = PorterStemmer()<br>    all_stopwords = stopwords.words(&#39;english&#39;)<br>    all_stopwords.remove(&#39;not&#39;)<br>    review = [ps.stem(word) for word in review if not word in set(all_stopwords)]<br>    review = &#39; &#39;.join(review)<br>    corpus.append(review)<br>print(corpus)</pre><pre>cv = CountVectorizer(max_features = 1500)<br>X = cv.fit_transform(corpus).toarray()<br>y = dataset.iloc[:, -1].values</pre><pre>from sklearn.model_selection import train_test_split<br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.20, random_state = 0)</pre><pre>classifier = GaussianNB()<br>classifier.fit(X_train, y_train)</pre><pre>y_pred = classifier.predict(X_test)<br>print(np.concatenate((y_pred.reshape(len(y_pred),1), y_test.reshape(len(y_test),1)),1))</pre><pre>from sklearn.metrics import confusion_matrix, accuracy_score<br>cm = confusion_matrix(y_test, y_pred)<br>print(cm)</pre><pre>accuracy_score(y_test, y_pred)</pre><p>The Code is uploaded here on <a href="https://www.kaggle.com/arpit3043/restaurant-review-nlp">Kaggle</a></p><p>My Kaggle Profile — <a href="https://www.kaggle.com/arpit3043">https://www.kaggle.com/arpit3043</a></p><p>My Github Profile — <a href="https://www.kaggle.com/arpit3043">https://www.github.com/arpit</a>1920</p><p>If you like the Blog, please give it a Clap and if you like the Kaggle work then please upvote it.</p><p>It will give me more enthusiasm to work more.</p><p><strong>Bio:</strong> <a href="http://bit.ly/arpit-linkedin">Arpit Bhushan Sharma</a> (<a href="http://b.tech/">B.Tech</a> (Hons), 2016–2020) Electrical &amp; Electronics Engineering, KIET Group of Institutions Ghaziabad, Uttar Pradesh, India. |Project Manager — <a href="https://project4jungle.com/">Project4jungle</a> | President — <a href="https://edusakar.co.in/">Edusakar</a> |Microsoft Learn Student Ambassador — Beta| Lifetime member at InSc | Student Member R10 IEEE | Student Member PES/PELS | Voice: +91 8445726929 | E-mail: bhushansharmaarpit@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc3168abb371" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reasons to Use Random Forest Over a Neural Network: Comparing Machine Learning versus Deep Learning]]></title>
            <link>https://arpit3043.medium.com/reasons-to-use-random-forest-over-a-neural-network-comparing-machine-learning-versus-deep-learning-c6b8380d6c7f?source=rss-2b311c3c9265------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6b8380d6c7f</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[random-forest]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Arpit Bhushan Sharma]]></dc:creator>
            <pubDate>Mon, 19 Oct 2020 08:59:03 GMT</pubDate>
            <atom:updated>2020-10-19T08:59:03.394Z</atom:updated>
            <content:encoded><![CDATA[<p>Both the random forest algorithm and Neural Networks are different techniques that learn differently but can be used in similar domains. Why would you use one over the other?</p><p><a href="https://www.blogger.com/blog/post/edit/7314556598893980690/100076829705156718#">Neural networks</a> have been shown to outperform a number of machine learning algorithms in many industry domains. They keep learning until it comes out with the best set of features to obtain a satisfying predictive performance. However, a neural network will scale your variables into a series of numbers that once the neural network finishes the learning stage, the features become indistinguishable to us.<br>If all we cared about was the prediction, a neural net would be the de-facto algorithm used all the time. But in an industry setting, we need a model that can give meaning to a feature/variable to stakeholders. And these stakeholders will likely be anyone other than someone with a knowledge of deep learning or machine learning.</p><h3>What’s the Main Difference Between the random forest algorithm and Neural Networks?</h3><p>Both the random forest algorithm and Neural Networks are different techniques that learn differently but can be used in similar domains. The random forest algorithm is a technique of<a href="https://www.blogger.com/blog/post/edit/7314556598893980690/100076829705156718#"> Machine Learning</a> while Neural Networks are exclusive to <a href="https://www.blogger.com/blog/post/edit/7314556598893980690/100076829705156718#">Deep Learning.</a></p><h3>What are Neural Networks?</h3><p>A <strong>Neural Network</strong> is a computational model loosely based on the functioning cerebral cortex of a human to replicate the same style of thinking and perception. Neural Networks are organized in layers made up of interconnected nodes that contain an activation function that computes the output of the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*u90-3Y8B6j-BmVoN" /></figure><p><a href="https://www.blogger.com/blog/post/edit/7314556598893980690/100076829705156718#">Image Source</a></p><p>Neural nets are another means of machine learning in which a computer learns to perform a task by analyzing training examples. As the neural net is loosely based on the human brain, it will consist of thousands or millions of nodes that are interconnected. A node can be connected to several nodes in the layer beneath it, from which it receives data and several nodes above it that receive data. Each incoming data point receives a weight and is multiplied and added. A bias is added if the weighted sum equates to zero and then passed to the activation function.</p><h3>The Architecture of Neural Networks</h3><p>A Neural Network has 3 basic architectures:</p><p>1. Single Layer Feedforward Networks</p><ul><li>It is the simplest network that is an extended version of the perceptron. It has additional hidden nodes between the input layer and the output layer.</li></ul><p>2. Multi-Layer Feedforward Networks</p><ul><li>This type of network has one or more hidden layers except for the input and output. Its role is to intervene in data transfer between the input and output layers.</li></ul><p><a href="https://www.blogger.com/blog/post/edit/7314556598893980690/100076829705156718#">3. Recurrent Networks</a></p><ul><li>Recurrent neural networks are similar to the above but are widely adopted to predict sequential data such as text and time series. The most famous Recurrent Neural Network is the ‘<a href="https://www.blogger.com/blog/post/edit/7314556598893980690/100076829705156718#">Long — Short Term Memory’ Model (LSTM)</a>.</li></ul><h3>What is the random forest algorithm?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*ZCZFd6fy5-5-J2hZ" /></figure><p><a href="https://www.blogger.com/blog/post/edit/7314556598893980690/100076829705156718#">Image Source</a></p><p><strong>The random forest algorithm</strong> is an ensemble of Decision Trees whereby the final/leaf node will be either the majority class for classification problems or the average for regression problems.</p><p>A random forest algorithm will grow many Classification trees and for each output from that tree, we say the tree ‘<em>votes’</em> for that class. A tree is grown using the following steps:</p><ol><li>A random sample of rows from the training data will be taken for each tree.</li><li>From the sample taken in Step (1), a subset of features will be taken to be used for splitting on each tree.</li><li>Each tree is grown to the largest extent specified by the parameters until it reaches a vote for the class.</li></ol><h3>Why Should You Use the random forest algorithm?</h3><p>The fundamental reason to use the random forest algorithm instead of a decision tree is to combine the predictions of many decision trees into a single model. The logic is that a single even made up of many mediocre models will still be better than one good model. There is truth to this given the mainstream performance of the random forest algorithm. The random forest algorithm is less prone to overfitting because of this.</p><p>Over-fitting can occur with a flexible model like decision trees where the model with memorizing the training data and learn any noise in the data as well. This will make it unable to predict the test data.<br><strong><em>A random forest algorithm can reduce the high variance from a flexible model like a decision tree by combining many trees into one ensemble model.</em></strong></p><h3>When Should You Use the random forest algorithm Versus a Neural Network?</h3><p>The random forest algorithm is less computationally expensive and does not require a GPU to finish training. A random forest algorithm can give you a different interpretation of a decision tree but with better performance. Neural Networks will require much more data than an everyday person might have on hand to actually be effective. The neural network will simply decimate the interpretability of your features to the point where it becomes meaningless for the sake of performance. While that may sound reasonable to some, it is dependent on each project.</p><p>If the goal is to create a prediction model without care for the variables at play, by all means, use a neural network, but you’ll need the resources to do so. If an understanding of the variables is required, then whether we like it or not, typically what happens in this situation is that performance will have to take a slight hit to make sure that we can still understand how each variable is contributing to the prediction model.</p><p>BIO: <a href="https://www.blogger.com/blog/post/edit/7314556598893980690/100076829705156718#">Arpit Bhushan Sharma</a> is an Electrical and Electronics Engineer and pursuing his Bachelor of technology from the KIET Group of Institutions, Ghaziabad. He has a little bit of experience in python and machine learning and wants to make his career in Machine Learning. He loves to write technical articles on various aspects of data science on the Medium platform and Blogger Platform.</p><p>For Contacting:</p><p>E-Mail: bhushansharmaarpit@gmail.com</p><p>Medium: <a href="https://www.blogger.com/blog/post/edit/7314556598893980690/100076829705156718#">www.medium.com/@bhushansharmaarpit</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6b8380d6c7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is 100 Days of Code?]]></title>
            <link>https://arpit3043.medium.com/what-is-100-days-of-code-57abecd71245?source=rss-2b311c3c9265------2</link>
            <guid isPermaLink="false">https://medium.com/p/57abecd71245</guid>
            <category><![CDATA[c-programming]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Arpit Bhushan Sharma]]></dc:creator>
            <pubDate>Tue, 29 Sep 2020 06:40:10 GMT</pubDate>
            <atom:updated>2020-09-29T06:40:10.637Z</atom:updated>
            <content:encoded><![CDATA[<p>There were lots of issues and Vagueness with this topic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*tLGfqsB0fbVb8MLwvW44SA.jpeg" /></figure><blockquote><em>How will I go for100 days coding all day?</em></blockquote><blockquote><em>How will I code for 1000hrs?</em></blockquote><blockquote><em>Do I have to code the whole 100 days?</em></blockquote><blockquote><em>Will It improve my skills?</em></blockquote><blockquote><em>What are the basic Programming languages I can take for 100 days?</em></blockquote><p>And List Continues….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rk5-YO1RbO_Fs3vZ-km8mg.jpeg" /></figure><p>Here, I am to clear your doubts on the 100daysofCode strategy.</p><p>100daysofCode challenges you that you will code for at least an hour every day for the next 100 days and it&#39;s very skillfully if taken by heart and seriously. It will boost your skills, it will give you enthusiasm to code each day and build your logical section a bit stronger.</p><p>First, make your mind full set and then decided to make this a public commitment many times and have done 100 days of code a lot with Python, C and C++ as these are my favorite and I want to learn them as well. You can also stick to a single Programming language and can move forward with it if you want to do mastery in it.</p><p>And you should join me as well and watch my repositories on Github of 100 days of Code.</p><p>Some of My repositories of 100DaysofChallenge are:</p><ol><li>100 Days of C++: <a href="https://github.com/arpit1920/100-days-of-Cpp">https://github.com/arpit1920/100-days-of-Cpp</a></li><li>100 Days of python: <a href="https://github.com/arpit1920/100-Days-of-Python-repeat">https://github.com/arpit1920/100-Days-of-Python-repeat</a></li><li>100 Days of C:<a href="https://github.com/arpit1920/Learning-C-Programming">https://github.com/arpit1920/Learning-C-Programming</a></li><li>100 Days of Code: <a href="https://github.com/arpit1920/100daysofcode">https://github.com/arpit1920/100daysofcode</a></li><li>100 Days of Machine learning with Python: <a href="https://github.com/arpit1920/Machine-Learning-all-Algorithms-Python">https://github.com/arpit1920/Machine-Learning-all-Algorithms-Python</a></li><li>100 Days of Machine learning with R: <a href="https://github.com/arpit1920/Machine-Learning-Algorithms-by-R">https://github.com/arpit1920/Machine-Learning-Algorithms-by-R</a></li><li>100 Days of Python Operations: <a href="https://github.com/arpit1920/python-operations">https://github.com/arpit1920/python-operations</a></li></ol><p><strong>NOTE:</strong> For the most updated information on the challenge visit:<br><a href="http://100daysofcode.com/">The 100DaysOfCode Official Website</a></p><h4>Here are some reasons why</h4><p>On the off chance that you truly need to improve as a designer. However, you locate that after work, you generally find different activities as opposed to code.</p><p>Nothing can beat self-coordinated exertion toward learning or achieving something, and it is something that you should esteem profoundly. Yet, glancing back at the previous scarcely any months, you have seen a lot of well-meaning goals to plunk down and code each night, yet in addition an excessive number of defenses. This prompts permitting your protection from taking the best of yours.</p><p>That is the reason to ensure that you focus on a test that will keep you respond to any individual who tails you or sees your updates.</p><p>Adhering to something like this can be troublesome, which you’ve presumably felt already — be it attempting to follow courses on the web, or managing an educational plan that you’ve picked.</p><p>Disclosing a responsibility has demonstrated to improve individuals’ capacity to adhere to changes and new propensities. So we should do this together!</p><p>I’ve seen that my time after work consistently follows an example of me watching something on Netflix or somewhere else, instead of coding, and as an adolescent, we like it watching breaking terrible, jamtara, cash heist….Lol. Like we all, I have a few things that I have to do: housekeeping, authoritative undertakings, washing the dishes, and so forth. The entirety of that will at present be there. What I intend to do less of is the thing that I would call “uninvolved unwinding time.” This is the point at which I plunk down to watch something, and my time each night is eaten, scene by scene.</p><p>It’s anything but difficult to begin watching something, however hard to stop. With things that are advantageous, I find that the inverse is valid: it’s difficult to begin, yet exceptionally simple to proceed. So with this test, I will ensure that I start (plunk down to code) each day regardless.</p><p>Some additional rules:</p><ol><li>You have to tweet about your progress every day using the hashtag #100DaysOfCode</li><li>You have to code at work, but if you want to be able to work on your projects as well. That’s why you won’t count the time that you spend coding at work towards this challenge.</li><li>You have to push code to GitHub every day so that anyone can see my progress. If you want, you can follow me <a href="https://github.com/arpit1920">here</a>.</li><li>The time spent doing tutorials, online courses, and other similar resources will NOT count towards this challenge. You want to write real code and work on real projects, facing real challenges. Here is the article where You can sum up your thoughts on projects and my experience building them: <a href="https://medium.freecodecamp.com/how-to-get-a-developer-job-in-less-than-a-year-c27bbfe71645#">How to Get a Developer Job in Less Than a Year</a>.</li></ol><p>Update — I’ve added an FAQ which You all ask about 100DaysofCode:</p><h4>FAQ:</h4><ol><li><strong>Q:</strong> How do I get in touch with the people who are also doing this challenge?<br><strong>A:</strong> Search for <strong>#100DaysOfCode</strong> on Twitter, or join the <a href="https://gitter.im/Kallaway/100DaysOfCode">100DaysOfCode room</a> on Gitter — you don’t need an invite, it’s open for anyone to join.</li><li><strong>Q:</strong> I am new to coding (or just deciding to learn to code) and can’t build projects yet, what should I do?<br><strong>A:</strong> The best way to start would be to follow the FreeCodeCamp’s Front End Curriculum from the very beginning. The further you get during the 100 days, the better.</li><li><strong>Q:</strong> I’ve missed a day, does it mean I’ve failed the challenge?<br><strong>A :</strong> Absolutely not. You are allowed to miss <strong>one day in two weeks</strong>. (then make it up by adding one more day to the end of the 100) <strong>Never miss two days in a row</strong> (so you can’t skip the 14th day of one week period and the 1st day of another). This is a great piece of advice on habit formation that I got from Leo Babauta at <a href="http://zenhabits.net/">zen habits</a>.</li><li><strong>Q:</strong> I come home late, and by the time I am finished with my hour, it’s past midnight, does it count?<br><strong>A:</strong> Of course it counts! The rule of thumb is: have you coded for at least an hour before going to sleep that day? If yes, you are on track.<br>The reason for this is that we all have different schedules and different life periods (kids, school, work, and what have you) so don’t hold yourself to some arbitrary time standard. You will not experience what Cinderella experienced once the clock strikes midnight.<br>I am actually in the same situation most of the time — I come home late on certain days (work, French courses, life getting in the way, etc.) and I’ve decided not to worry about things like that, or whether I get a point on GitHub on that particular day. Yes, it’s nice to have them in a streak one by one, but don’t do yourself a disservice by measuring your efforts to a clock.</li><li><strong>Q:</strong> Should I keep a journal?<br><strong>A:</strong> That’s optional, but it’s a great idea. It can be a GitHub repo, where you store all the links and/or projects completed, or a text file where you jot down the highlights of what you’ve done that day.<br>It’s helpful in two major ways: you will be able to look at the progress each day and see how far you’ve already come and it will be easier to find the motivation to continue, and the second one is that after you’ve done your 100 days, you will be able to analyze your experience better and see what worked and what didn’t.</li><li><strong>Q:</strong> Should I put my projects online?<br><strong>A:</strong> Definitely. It’s great for accountability and motivation to know that the stuff you’ve worked on is accessible online to anyone who may wish to look at it. It will make you care about the end product more, and will make the results of the challenge more impressive when you look back at them on Day 100.</li><li><strong>Q:</strong> Should I worry about streaks?<br><strong>A:</strong> Streaks are nice and helpful, but as I mentioned above — don’t worry about them too much and don’t criticize yourself over missing a day. Instead, make sure you do everything to not let that happen again and know that worrying and scolding yourself will not give you any results. (Ok, It will give you results, but only negative. I would call them consequences, not results) The best way to get out of that negative emotional state is to sit down and code.</li><li><strong>Q:</strong> What is the most difficult part of this challenge?<br><strong>A:</strong> The part where you have to sit down and <strong>start</strong> coding. Don’t postpone that or think about it at all, because you will rationalize yourself out of it. Approach it mechanically: sit down, open your laptop, launch your coding editor, and start typing. After 5 minutes, you will not feel any problems/procrastination/desire to stop.</li><li>Q: If everyone started on a certain day, should I join them on the day they are? For example, from Day 12?<br>A: This challenge is individual, so when you join you start on day 1. Whenever you’ll be posting an update on Twitter or elsewhere, make sure to mention which day you are on and use the hashtag so that people can find and support you!</li></ol><h4>Can I join the challenge?</h4><p>If you want to join me in this challenge, You are most welcome to the community of Developers and Coders. Just use the hashtag <strong>#100DaysOfCode </strong>or join <strong>the 100DaysOfCode Gitter</strong> Room.</p><p>If you decide to do this, please reach out to me as well and we can help and encourage each other! If you like this idea, <strong>please clap </strong>to recommend it here on Medium.</p><p><strong>References:</strong></p><ol><li>100DaysofCode: <a href="https://www.100daysofcode.com/">https://www.100daysofcode.com/</a></li><li>Gitter: <a href="https://gitter.im/">https://gitter.im/</a></li><li>FreecodeCamp:<a href="https://www.freecodecamp.org/news/join-the-100daysofcode-556ddb4579e4/">https://www.freecodecamp.org/news/join-the-100daysofcode-556ddb4579e4/</a></li></ol><p><strong>Bio:</strong> <a href="http://bit.ly/arpit-linkedin">Arpit Bhushan Sharma</a> (<a href="http://b.tech/">B.Tech</a>, 2016–2020) Electrical &amp; Electronics Engineering, KIET Group of Institutions Ghaziabad, Uttar Pradesh, India. | Patent Analyst — Lakshmikumaran &amp; Sridharan Attorney | AI Developer — 10xAI Learning |Project Manager — Aryabhatt Technologies(FIED IIM Kashipur)| Student Member R10 IEEE | Student Member PELS/PES | Voice: +91 8445726929 | E-mail: bhushansharmaarpit@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57abecd71245" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All basic Cheatsheets of Artificial Intelligence, Machine learning, Deep Learning, Natural…]]></title>
            <link>https://arpit3043.medium.com/all-basic-cheatsheets-of-artificial-intelligence-machine-learning-deep-learning-natural-287da533c49a?source=rss-2b311c3c9265------2</link>
            <guid isPermaLink="false">https://medium.com/p/287da533c49a</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[big-data-analytics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[cheatsheet]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Arpit Bhushan Sharma]]></dc:creator>
            <pubDate>Sun, 09 Aug 2020 22:52:28 GMT</pubDate>
            <atom:updated>2020-08-09T22:52:28.650Z</atom:updated>
            <content:encoded><![CDATA[<h3>All basic Cheatsheets of Artificial Intelligence, Machine learning, Deep Learning, Natural Language Processing, etc.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*fC1pd38zIDWghC8VxfkJfw.jpeg" /><figcaption>Cheatsheet</figcaption></figure><p>I enjoy reading and spending time browsing Medium and writing in it. I use it as my blog, as my go-to source for exciting news, opinions, idea center, topic reading, a lot.</p><p>But writing and sharing information and getting around in Artificial Intelligence is not necessarily very easy. Using Artificial Intelligence, Machine learning, Deep Learning, Natural Language Processing and other buzzing words effectively can be a little complex as it keeps changing itself. Fortunately, Blogs gave us a lot of information on all the aspects and Cheatsheets plays a very vital role in the field of learning and memorizing things. They have excellent tips and tricks and “how-to” articles but they are all over the place. I spent one month putting together all cheat sheets for Artificial Intelligence, Machine learning, Deep Learning, Natural Language Processing all together to work effectively and get to know every useful information. Feel free to use it, critique it, recommend, add to it, etc.</p><p>The cheat sheets are available on my Github repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mftmKUBYbW7-uJqNoLap5Q.png" /></figure><p>Link: <a href="https://github.com/arpit1920/AI-Cheatsheets-for-basics">https://github.com/arpit1920/AI-Cheatsheets-for-basics</a></p><p>Star Mark it, fork it, download it to get the maximum usage.</p><p><strong>Bio:</strong> <a href="http://bit.ly/arpit-linkedin">Arpit Bhushan Sharma</a> (<a href="http://b.tech/">B.Tech</a>, 2016–2020) Electrical &amp; Electronics Engineering, KIET Group of Institutions Ghaziabad, Uttar Pradesh, India. | Project Manager — Project4jungle | Chief Organising Officer — Waco | Project Manager — Edusmith | Student Member R10 IEEE | Student Member PES | Voice: +91 8445726929 | E-mail: bhushansharmaarpit@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=287da533c49a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#100daysofMachineLearning Code from Basic to Advance level of Machine Learning]]></title>
            <link>https://arpit3043.medium.com/100daysofmachinelearning-code-from-basic-to-advance-level-of-machine-learning-2caf1c7ab377?source=rss-2b311c3c9265------2</link>
            <guid isPermaLink="false">https://medium.com/p/2caf1c7ab377</guid>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[basics]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Arpit Bhushan Sharma]]></dc:creator>
            <pubDate>Sun, 09 Aug 2020 22:27:35 GMT</pubDate>
            <atom:updated>2020-08-09T22:27:35.129Z</atom:updated>
            <content:encoded><![CDATA[<p>Would you let an Artificial Intelligence make decisions on behalf? — If Yes, then to what extent, maybe your life depends on it. From the incredibly-friendly voice of Apple’s personal assistant, Siri, to movies like Ex-Machina, Al has always excited me more than anything else. The very idea that Netflix can actually predict a recommendation list of movies based on your reaction to a previously seen movie sounds fascinating to me and with this approach I have been working on Machine Learning Algorithms and its all classifiers to make much more robust and easy to understand by everyone, So I started uploading all the basic Machine Learning Algorithms From 10 March 2020 to 10 August 2020 on my Github Repository in Python Programming and R Programming.</p><p>Then one day out of nowhere I come across a video on YouTube by Siraj Raval, in which he talked about something called #100DaysOfMLCode Challenge. It means coding and studying machine learning for at least an hour, every day for the next 100 days. I highly recommend checking out the <a href="https://www.youtube.com/watch?v=cuQMBj1cWPo">video</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*CnBFqCWTWFWJkcKBa2DWSA.png" /></figure><p>It was just the right type of motivation that I needed to start learning in-depth about something I’ve always cared about. So I took this challenge and started learning about machine learning.</p><p>Beginning with the most basic algorithms and implementing them in the Python language.</p><p>Just so that I have a good log for everything that I’ve learned, I created a repository on <a href="https://github.com/arpit1920">GitHub</a>. I will highly recommend you do the same. As I continually learned new things about ML, I’ve also updated the <a href="https://github.com/arpit1920/Machine-Learning-all-Algorithms-Python">repository</a> with the code for implementing ML algorithms along with some info-graphics for better understanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*fKzlHGhvudS_OZ0rrOpGNg.jpeg" /></figure><p>Some of the Infographics</p><p>The response that I’ve received for the repository is very overwhelming, to say the least, I didn’t expect this. People have been supporting me from every corner of Social Media, and it most certainly humbles me, and I would like to take this opportunity to say thanks to everyone who has given their precious time to me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fB9aBuFGkJh0qm340Lb5WA.png" /><figcaption>Repository:</figcaption></figure><p>Checkout My Repository</p><p>Numbers are not relevant here, because I didn’t do this for fame or any popularity. I did it because I wanted to, I care about it, and I believe that I can make a difference.</p><p>K — Nearest Neighbor</p><p>With all that said, I believe that I’m only learning right now, and in this fast-changing and an ever-evolving world, I think that you never actually finish learning. It’s just a big learning curve. The destination is not here yet, I am not even close, to be completely honest. But I do know that my path is right, and my mind is focused on achieving what I aspire to do. So I would like to challenge everyone reading this right now to come and join me on this journey, take the #100DaysOfMlCode challenge and start working every day.</p><p>And if you don’t have an interest in this field of AI, that’s not a problem or an excuse, find something which you care about, something which doesn’t feel like work, something to which you can dedicate your entire life. Les Brown once said,</p><blockquote><em>“To achieve anything worthwhile in your life, you got to be hungry.”</em></blockquote><p>Be hungry for success, follow your dreams, and watch them become your reality.</p><p>Start this journey with me, and perhaps maybe one day we’ll together get to a point where we can live our dreams, and you know to where beyond.</p><p>Mark Star, download the codes, fork the repositories, and work on them to get the basic Practical knowledge of Machine Learning.</p><p>Link for the Repository is: Machine learning using Python Programming: <a href="https://bit.ly/3is2Bzc">https://bit.ly/3is2Bzc</a> Machine learning using R Programming: <a href="https://bit.ly/3is2zr4">https://bit.ly/3is2zr4</a></p><p><strong>Bio:</strong> <a href="http://bit.ly/arpit-linkedin">Arpit Bhushan Sharma</a> (<a href="http://b.tech/">B.Tech</a>, 2016–2020) Electrical &amp; Electronics Engineering, KIET Group of Institutions Ghaziabad, Uttar Pradesh, India. | Project Manager — Project4jungle | Chief Organising Officer — Waco | Project Manager — Edusmith | Student Member R10 IEEE | Student Member PES | Voice: +91 8445726929 | E-mail: bhushansharmaarpit@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2caf1c7ab377" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>