<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: juved</title>
    <description>The latest articles on Forem by juved (@juved).</description>
    <link>https://forem.com/juved</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1202570%2Facceb11a-48e9-432a-861b-b58910bcd411.png</url>
      <title>Forem: juved</title>
      <link>https://forem.com/juved</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/juved"/>
    <language>en</language>
    <item>
      <title>Class imbalance issues</title>
      <dc:creator>juved</dc:creator>
      <pubDate>Mon, 15 Jan 2024 03:07:24 +0000</pubDate>
      <link>https://forem.com/juved/class-imbalance-issues-2hp5</link>
      <guid>https://forem.com/juved/class-imbalance-issues-2hp5</guid>
      <description>&lt;p&gt;This work is base on the article :" The harm of class imbalance corrections for risk prediction models: illustration and simulation using logistic regression".&lt;/p&gt;

&lt;p&gt;Ruben van den Goorbergh1, Maarten van Smeden 1, Dirk Timmerman2,3, and&lt;br&gt;
Ben Van Calster 2,4,5&lt;/p&gt;

&lt;h2&gt;
  
  
  Intro
&lt;/h2&gt;

&lt;p&gt;Imagine, that you are teaching a smart computer to identify dogs and cats using pictures. And this process of the computer learning to perform this task is call model prediction. The way it works, depend on the type of program we are using (logistic regression) and the kind of problem we are looking to solve. In our case, we just want to teach the computer how to identify dogs or cats. &lt;br&gt;
In this process of teaching the computers on how to perform this task, we figure out that we have more pictures of dogs than cats. This is what we call class imbalance. To fix this, we can decide to remove pictures of dogs or adding more pictures of cats, this process is called random undersampling or oversampling. There is also a technique, call SMOTE, that can be used to create more pictures of cats to solve this imbalance issue. &lt;/p&gt;

&lt;h2&gt;
  
  
  What was the original context of this paper when it was written?
&lt;/h2&gt;

&lt;p&gt;What is the impact of addressing the class imbalance issue mentioning above, such as not having balanced amount of pictures of dogs and cats to train our smart computer ? &lt;/p&gt;

&lt;p&gt;This article:   is investigating the impact of applying the common methods generally used to rectify this class imbalance issue. Suggesting that these methods approaches might compromise prediction accuracy. &lt;br&gt;
The researchers are assessing the models' performance in terms of how well it distinguishes between the pictures (discrimination), the accuracy of its probability (calibration) and how effectively it categorizes things (Classification). &lt;/p&gt;

&lt;p&gt;The paper is using a real world case, predicting ovarian cancer, to illustrate these findings.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Summary of the paper findings/outcomes
&lt;/h2&gt;

&lt;p&gt;The training dataset included information from 2695 women, 518 of with ovarian cancer, and the test set had data from 674 women, including 140 with ovarian cancer. &lt;br&gt;
Big surprise, fixing the imbalance did not improve the capacity in doing a better job. &lt;br&gt;
They have found that no matter method they used, the accuracy stayed around 79% to 80%. And even worst, trying to fix the imbalance results in making the computer identify wrongly more people with a potential event of interest than actually they were. Like using SMOTE, led to our model to overestimation of ovarian cases. The result of such outcomes can lead patients to unnecessary treatments or actions. And that can harm the patients for nothing, and create and unnecessary expenses in the medical system. &lt;br&gt;
The study indicate that the common methods that we are using to fix imbalance might not be as helpful as we think. They can drive even to less accurate predictions. &lt;/p&gt;

&lt;h2&gt;
  
  
  How can this paper inform your work as a junior
&lt;/h2&gt;

&lt;p&gt;As juniors, we are exited most of the time about the outcomes, regardless of the methodology that we are using. This article highlights how a simple and common methodology, can impact our results. It emphasizes the necessity to interpret the results in line with the context or method use in the process of addressing class imbalance. Understanding the implication of using these models predictions to make decisions, especially in scenarios like healthcare. &lt;/p&gt;

&lt;h2&gt;
  
  
  Why is this paper important/why does it matter to a non-technical business stakeholder?
&lt;/h2&gt;

&lt;p&gt;The paper, highlight the importance of understanding the implications of using predictive modelling for decision-making. Non-technical business stakeholders should not blindly rely on imbalance correction method predictions, considering the potential negative impacts they might result. Moreover, these predictions should be assessed, taking into account the associated risks and impacts. &lt;/p&gt;

</description>
      <category>classimbalance</category>
      <category>oversampling</category>
      <category>undersampling</category>
      <category>smote</category>
    </item>
    <item>
      <title>Linear Transformation</title>
      <dc:creator>juved</dc:creator>
      <pubDate>Tue, 19 Dec 2023 13:35:14 +0000</pubDate>
      <link>https://forem.com/juved/linear-transformation-3e2i</link>
      <guid>https://forem.com/juved/linear-transformation-3e2i</guid>
      <description>&lt;p&gt;Why using Linear Transformation when it appears to have no significant impact on the model performance Metric? &lt;br&gt;
The secrets lies in their potent advantage of making the results more relatable and understandable for stakeholders. They help make the interpretations of the results more compelling, representing a strategic move to give the result a human touch.&lt;/p&gt;

&lt;h1&gt;
  
  
  Scenario: Predicting Energy Consumption
&lt;/h1&gt;

&lt;p&gt;Imagine, that we have to predict energy consumption in buildings based on various features, including temperature, square footage, and the number of rooms and energy consumptions. Let’s build a linear regression model to understand how these features influence the energy consumption. And we will modify our models using the linear regression techniques (Scaling, Shifting, and Normalizing).&lt;/p&gt;

&lt;h1&gt;
  
  
  Data Understanding
&lt;/h1&gt;

&lt;p&gt;We will apply the different techniques of linear regression on the energy_consumption_data_set.&lt;/p&gt;

&lt;p&gt;We proceed by importing the necessary libraries, pandas, statsmodels and sklearn. Additionally, we are using panda to upload our dataset energy consumption.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_W7r5Lhr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/603wfopao5bwhv4id2l6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_W7r5Lhr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/603wfopao5bwhv4id2l6.png" alt="image 1" width="800" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--N1XmgbHl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uly1nlnot59qhjxndvu5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--N1XmgbHl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uly1nlnot59qhjxndvu5.png" alt="image 2" width="768" height="546"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Let's build our initial model selecting the features : temperatures, square_footage, room_count and our target energy_consumption&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Cbxcpyb_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dh5i9quwlugppuvx3fom.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Cbxcpyb_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dh5i9quwlugppuvx3fom.png" alt="image 3" width="800" height="310"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IHP1fZH2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0lu4eg0plqlk9aiv9btp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IHP1fZH2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0lu4eg0plqlk9aiv9btp.png" alt="image 4" width="470" height="196"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;&lt;em&gt;Interpretation:&lt;/em&gt; *&lt;/em&gt;&lt;br&gt;
For every increase in 1 Fahrenheit, the energy consumption increase in 20 energy consumption unit. For every increase of 1 square-ft, there’s an increase of 100 energy consumption units. For every additional room, there is an increase of 49 energy consumption units.&lt;br&gt;
The results look normal, however, the stakeholders are more familiar with Celsius. Let’s proceed with converting the temperature in Celsius. &lt;/p&gt;

&lt;h1&gt;
  
  
  Scaling :
&lt;/h1&gt;

&lt;p&gt;Scaling in linear regression is aiming to give our variables a tailored makeover.  This results in making our model more relatable, without disrupting the overarching metrics. Think of it as having the same model but in different units, facilitating the elaboration of a story that is easier to share with stakeholders.&lt;/p&gt;

&lt;p&gt;--We first make a copy of the subset, and then apply the appropriate formula to convert the temperature from Fahrenheit to Celsius.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3T9TeQIy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/429acl2o71x0fghm54ar.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3T9TeQIy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/429acl2o71x0fghm54ar.png" alt="image 4" width="800" height="88"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3zGWms8Q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lrhxze06d9949vqm8zj1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3zGWms8Q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lrhxze06d9949vqm8zj1.png" alt="Cmodels" width="800" height="168"&gt;&lt;/a&gt;&lt;br&gt;
-- Let's build the Celsius model using the converted feature&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HaME_1cp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n4z78z7g3yb6e98lzszt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HaME_1cp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n4z78z7g3yb6e98lzszt.png" alt="image 5" width="800" height="215"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OhnhjUjC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2yim5tulnahbzq816wmr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OhnhjUjC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2yim5tulnahbzq816wmr.png" alt="C models output" width="684" height="492"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;&lt;em&gt;Interpretation:&lt;/em&gt; *&lt;/em&gt; &lt;br&gt;
For every increase in 1 Celsius, the energy consumption increase in 37 energy consumption unit.&lt;br&gt;
For every increase of 1 square-ft, there’s an increase of 100 energy consumption units.&lt;br&gt;
For every additional room, there is an increase of 49 energy consumption units.&lt;/p&gt;

&lt;h1&gt;
  
  
  Shifting:
&lt;/h1&gt;

&lt;p&gt;In the context of linear regression models, shifting is a common practice to improve model interpretability, reduce multicollinearity and provide a meaningful interpretation of the intercept. It typically refers to centring or mean-entering the variables by subtracting the mean of a variable from each individual data point in that variable. The practice of shifting is recommended to be carried out before building the model. &lt;/p&gt;

&lt;p&gt;Below, we shift our features that 0 will represent the mean. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--foCzaFpI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p2w5o1pu87xrk6e5753w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--foCzaFpI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p2w5o1pu87xrk6e5753w.png" alt="S models" width="800" height="639"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;--Let’s build our centred model around X_centred&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XWE2Npom--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k67n3m2yfccw9opwjgvi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XWE2Npom--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k67n3m2yfccw9opwjgvi.png" alt="S output" width="800" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;&lt;em&gt;Interpretation:&lt;/em&gt; *&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;We would expect about 205157 energy consumption units for the average of temperature consumption, average of square_footage, average of room_count.&lt;/p&gt;

&lt;h1&gt;
  
  
  Standardizing:
&lt;/h1&gt;

&lt;p&gt;Standardizing provide the benefic of comparing the coefficients to each other.&lt;br&gt;&lt;br&gt;
-- Let's perform a .describe() on the dataset to evaluate the values before standardization.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uFQ9hGXC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l4lmaq4dayoefqcmbvys.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uFQ9hGXC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l4lmaq4dayoefqcmbvys.png" alt="before std" width="722" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;--Let’s standardize the features &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wjRLmWJz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/au9glnxw4012wjg2l4rs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wjRLmWJz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/au9glnxw4012wjg2l4rs.png" alt="Image description" width="800" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;--Let’s build our standardize model &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--u7kAmerL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xfi8hfol2rbsu5ty99h5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--u7kAmerL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xfi8hfol2rbsu5ty99h5.png" alt="Image description" width="800" height="332"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;&lt;em&gt;Interpretation:&lt;/em&gt; *&lt;/em&gt; &lt;br&gt;
For each increase of 1 standard deviation in temperature, we see an associated increase of about 21 energy_consumption unit.&lt;br&gt;
For each increase of 1 standard deviation in the square_footage, we see an associated increase of about 100 energy_consumption unit.&lt;br&gt;
For each increase of 1 standard deviation in the room_count, we see an associated increase of about 49 energy_consumption unit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion:
&lt;/h2&gt;

&lt;p&gt;These transformations modify the features without compromising the linear regression process, as illustrated in the example of predicting the energy consumption. There are  other linear techniques, such as Min-Max Scaling, Unit Vector Transformation and many other tools provided by Scikit-learn that can be used.&lt;/p&gt;

&lt;p&gt;More : &lt;br&gt;
&lt;a href="https://sebastianraschka.com/Articles/2014_about_feature_scaling.html"&gt;https://sebastianraschka.com/Articles/2014_about_feature_scaling.html&lt;/a&gt;&lt;br&gt;
&lt;a href="https://scikit-learn.org/stable/modules/preprocessing.html#preprocessing"&gt;https://scikit-learn.org/stable/modules/preprocessing.html#preprocessing&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>STARTING WITH GITHUB</title>
      <dc:creator>juved</dc:creator>
      <pubDate>Tue, 28 Nov 2023 03:01:38 +0000</pubDate>
      <link>https://forem.com/juved/starting-with-github-1ijo</link>
      <guid>https://forem.com/juved/starting-with-github-1ijo</guid>
      <description>&lt;p&gt;&lt;strong&gt;GitHub&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;GitHub is a cloud based service for version control and software development, and very popular in data science and various fields. It allows real-time collaboration, it encourages teams to work together, giving them confidence in managing changes and version control. &lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Git and GitHub *&lt;/em&gt;&lt;br&gt;
Git, was created in 2005 by Linus Torvalds, is an open source version control system. Allowing each team member to work using a branch. GitHub is using Git as version control system. &lt;/p&gt;

&lt;h2&gt;
  
  
  Work Flow understanding
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff0lgwfd0muto1f0erfkh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff0lgwfd0muto1f0erfkh.png" alt="GitHub wokflow understanding by JE,@juved "&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;REPOSITORY&lt;/strong&gt;&lt;br&gt;
A repository, or repo in GitHub, is a storage location containing all project files including codes, images, documents, and revision history. It serves as the central location where the team can contribute to the project under their branches. &lt;br&gt;
In GitHub, there are two types of repositories: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;Public Repositories&lt;/u&gt;: They are visible and accessible to anyone online, and the content can be cloned. They are offered for free by GitHub to facilitate collaboration on open-source projects.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;u&gt;Private Repositories&lt;/u&gt;: They are visible only for the repository owner and team. Regarding access control, the owner can invite a team member to collaborate on a private repository. GitHub charges for privates repositories as part of its subscription. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;BRANCHE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is a parallel repository where everyone or team member can work isolated without affecting the main/master branches. &lt;/p&gt;

&lt;p&gt;Here are some common git commands: &lt;br&gt;
-- git branch &amp;lt; branch_name&amp;gt; # to create a new branch&lt;br&gt;
--git checkout &amp;lt; branch_name&amp;gt; # to switch to a branch&lt;br&gt;
--git switch &amp;lt; branch_name&amp;gt;# to switch to a branch&lt;br&gt;
--git checkout -b  &amp;lt; branch_name&amp;gt; # to create and switch to a new branch&lt;br&gt;
--git branch # will list all branches&lt;br&gt;
--git merge # to merge a branch into the current branch&lt;br&gt;
--git branch -d &amp;lt; branch_name&amp;gt; #delete a local branch&lt;br&gt;
--git push origin --delete &amp;lt; branch_name&amp;gt; delete a remote branch&lt;br&gt;
--git push origin &amp;lt; branch_name&amp;gt; #push a local branch to a remote&lt;br&gt;
--git push -f origin &amp;lt; branch_name&amp;gt; # force pushing a branch to remote (with caution)&lt;br&gt;
--git branch - m &amp;lt; branch_name &amp;gt; # to rename a branch&lt;br&gt;
--git branch -v # to view the last commit on each branch&lt;br&gt;
--git diff &amp;lt; branch_name1&amp;gt;.. &amp;lt; branch_name2&amp;gt;# to compare changes between branches&lt;br&gt;
--git merge --abort # to abort a merge&lt;br&gt;
-- git branch - r # to list remote branches&lt;/p&gt;

&lt;h2&gt;
  
  
  More commands in GitHub:
&lt;/h2&gt;

&lt;p&gt;Git status : with this command, we provide the state of the working directory and the staging area. It is recommended to use if often to check your directory.&lt;br&gt;
--git status&lt;/p&gt;

&lt;p&gt;Create a new repository, but avoid creating a directory inside another one.&lt;br&gt;
-- git init &lt;/p&gt;

&lt;p&gt;Clone a directory : to download an existent repository to your local location.  You'll be able to work locally on the project documents&lt;br&gt;
--git clone &lt;/p&gt;

&lt;p&gt;Git add, after working, modifying files in the directory. Git add command help in staging the files.&lt;br&gt;
-- git add &lt;/p&gt;

&lt;p&gt;Commits, after staging the files with git add, git commit will save the changes. A message describing the changes is recommended. &lt;br&gt;
-- git commit -m “example message”&lt;/p&gt;

&lt;p&gt;Git push is moving your changes locally to the remote repository&lt;br&gt;
--git push origin &lt;/p&gt;

&lt;p&gt;Fetching and Merging&lt;br&gt;
It is the process of retrieving all the changes from the remote repository without merging them to the local repository or your working repository. &lt;/p&gt;

&lt;p&gt;-- git fetch origin master &lt;br&gt;
--git fetch upstream&lt;/p&gt;

&lt;h2&gt;
  
  
  Pull
&lt;/h2&gt;

&lt;p&gt;Git pull is used to basically to update your local repository with changes mad by team members on the remote repository. It combines two commands: git fetch and git merge.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pull request
&lt;/h2&gt;

&lt;p&gt;allow a team member to propose changes to a repository.It's a way to notify other teams members about changes that you have pushed to a branch in a repository. &lt;/p&gt;

&lt;h2&gt;
  
  
  *&lt;em&gt;Avoiding doing *&lt;/em&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Push sensitive information&lt;br&gt;
It is recommended to avoid pushing sensitive information like passwords, privates files to a public repository. Use .gitignore file to exclude them &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Force Pushing to a Shared Branch&lt;br&gt;
Be careful with forcing push, particularly to branches of others. This can cause confusions and overwrite their changes. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Inconsistent Branch Naming &lt;br&gt;
Maintain a consistent branch naming is a must. It will make it easier for collaborators to understand the purpose of the branch. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ignoring Pull request and issues &lt;br&gt;
Not regularly Updating Forks&lt;br&gt;
In the case you fork a repository, maintaining a regular synchronization with the upstream is important to make sure you integrate the changes made by the collaborators. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Git documentation &lt;a href="https://git-scm.com/docs" rel="noopener noreferrer"&gt;https://git-scm.com/docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Alternatives to GitHub: GitLab, GitKraken, Beanstalk, Gitea, RhodeCode, SourceForge&lt;/p&gt;

</description>
      <category>github</category>
      <category>git</category>
      <category>branche</category>
      <category>datascience</category>
    </item>
    <item>
      <title>What next for me ?</title>
      <dc:creator>juved</dc:creator>
      <pubDate>Mon, 06 Nov 2023 02:35:14 +0000</pubDate>
      <link>https://forem.com/juved/what-next-for-me--308i</link>
      <guid>https://forem.com/juved/what-next-for-me--308i</guid>
      <description>&lt;p&gt;&lt;strong&gt;What next...?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After years moving around, working in academia and IT industry. Like everyone at some point in their career, share this question in a perspective of growth and changes: “What next?”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Science?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Inevitably, Data science has always been on my radar, persistently haunting me… I have worked on data science projects in the past, wearing the hat of a project manager. I have been captivated by the discussions within the teams and fascinated by the questions we were attempting to answer. It seems like a fun and highly creative field, so why not give it a try ?  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Opportunities ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It’s universally acknowledged that we are living in the data era, with millions of terabytes of data generated daily. The data market is estimated to be worth hundreds of billions of dollars. Therefore, the opportunities are vast and are present in various domains. The creativity and innovations have surprised many in terms of what can be archived with data. The demand for Data scientist is at an all-time high.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The vision !&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Becoming a Data Scientist Project Manager, contributing technically and leading a successful data related project that will shape the future and benefit everyone. &lt;/p&gt;

</description>
      <category>datascience</category>
      <category>python</category>
      <category>analytics</category>
      <category>career</category>
    </item>
  </channel>
</rss>
