<?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>DEV Community: Ismiel Abir</title>
    <description>The latest articles on DEV Community by Ismiel Abir (@ismielabir).</description>
    <link>https://dev.to/ismielabir</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%2F1416472%2F892d3e44-8732-4dce-9b5f-d230c92b3663.PNG</url>
      <title>DEV Community: Ismiel Abir</title>
      <link>https://dev.to/ismielabir</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ismielabir"/>
    <language>en</language>
    <item>
      <title>Machine Learning Developmental Life Cycle</title>
      <dc:creator>Ismiel Abir</dc:creator>
      <pubDate>Fri, 07 Jun 2024 05:23:48 +0000</pubDate>
      <link>https://dev.to/ismielabir/machine-learning-developmental-life-cycle-4ga</link>
      <guid>https://dev.to/ismielabir/machine-learning-developmental-life-cycle-4ga</guid>
      <description>&lt;p&gt;For development any machine learning project you can follow below life cycle:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Identify/Frame the problem&lt;/li&gt;
&lt;li&gt;Gather or collect data&lt;/li&gt;
&lt;li&gt;Data preprocessing&lt;/li&gt;
&lt;li&gt;Exploratory data analysis&lt;/li&gt;
&lt;li&gt;Feature engineering and selection&lt;/li&gt;
&lt;li&gt;Model training, evaluation and selection&lt;/li&gt;
&lt;li&gt;Testing&lt;/li&gt;
&lt;li&gt;Deployment&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>machinelearning</category>
      <category>development</category>
      <category>ai</category>
      <category>python</category>
    </item>
    <item>
      <title>ValueError: A given column is not a column of the dataframe</title>
      <dc:creator>Ismiel Abir</dc:creator>
      <pubDate>Thu, 06 Jun 2024 12:45:18 +0000</pubDate>
      <link>https://dev.to/ismielabir/valueerror-a-given-column-is-not-a-column-of-the-dataframe-33jl</link>
      <guid>https://dev.to/ismielabir/valueerror-a-given-column-is-not-a-column-of-the-dataframe-33jl</guid>
      <description>&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%2Finri5310dc2igx4a1xgj.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%2Finri5310dc2igx4a1xgj.PNG" alt="Image description"&gt;&lt;/a&gt;Sometimes, when attempting to use the 'pipeline,' I encounter an error called 'ValueError: A given column is not a column of the dataframe.' However, the column still exists in the dataset.&lt;/p&gt;

&lt;p&gt;I found this error to be quite interesting. Initially, I thought about seeking help on Kaggle or Stack Overflow to solve this problem. Eventually, I discovered the solution on Stack Overflow, and now I understand why this error occurs. It's really interesting.&lt;/p&gt;

&lt;p&gt;Let me describe how to overcome this error…&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

from sklearn.compose import ColumnTransformer
from sklearn.pipeline import Pipeline

preprocessor = ColumnTransformer(
    transformers=[
        ('ohe', OneHotEncoder(drop='first', sparse=False, handle_unknown='ignore'), ohe),
        ('scaler', StandardScaler(), scaler),
        ('ordinal', OrdinalEncoder(), ordinal),
        ('label', LabelEncoder(), label)
    ], remainder='passthrough')


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;I attempted to use 'ColumnTransformer' to preprocess everything, and that worked fine. However, when I tried to fit the pipeline, a 'column not found' error occurred.&lt;/p&gt;

&lt;p&gt;The reason for this error is that I used the target value 'LabelEncoder' in the preprocessing section. However, the target/output part should be handled independently, as shown in the code below:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

label = LabelEncoder()

y_label_train = label.fit_transform(y_train)
y_label_test = label.transform(y_test)


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;After that, we can fit this without errors.&lt;/p&gt;

&lt;p&gt;If there is another method to solve this error, you can share it. I would like to learn another way to resolve this issue.&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>datascience</category>
      <category>python</category>
    </item>
    <item>
      <title>Steps in Data Preprocessing</title>
      <dc:creator>Ismiel Abir</dc:creator>
      <pubDate>Thu, 06 Jun 2024 12:40:01 +0000</pubDate>
      <link>https://dev.to/ismielabir/steps-in-data-preprocessing-4j25</link>
      <guid>https://dev.to/ismielabir/steps-in-data-preprocessing-4j25</guid>
      <description>&lt;p&gt;Data preprocess&lt;/p&gt;

&lt;p&gt;a. missing values&lt;br&gt;
b. smoothing noisy data&lt;br&gt;
c. outliers&lt;br&gt;
d. inconsistency&lt;/p&gt;

&lt;p&gt;Data integration&lt;/p&gt;

&lt;p&gt;a. data integrates&lt;br&gt;
b. data duplicates&lt;br&gt;
c. data merging&lt;br&gt;
d. data consolidation&lt;/p&gt;

&lt;p&gt;Data transformation&lt;/p&gt;

&lt;p&gt;a. Scale&lt;br&gt;
b. Normalization&lt;br&gt;
c. Aggregate&lt;br&gt;
d. Generalized&lt;/p&gt;

&lt;p&gt;and others steps.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>datascience</category>
      <category>ai</category>
    </item>
    <item>
      <title>Understanding the Flag Register in x86 Assembly Language</title>
      <dc:creator>Ismiel Abir</dc:creator>
      <pubDate>Wed, 17 Apr 2024 23:07:41 +0000</pubDate>
      <link>https://dev.to/ismielabir/understanding-the-flag-register-in-x86-assembly-language-3gmm</link>
      <guid>https://dev.to/ismielabir/understanding-the-flag-register-in-x86-assembly-language-3gmm</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdxjv2qb9crxm54sb3riz.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdxjv2qb9crxm54sb3riz.PNG" alt="Image description" width="581" height="319"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In assembly language, understanding the processor status and flags register is very crucial part. Flag register is the special purpose of register. There are total 9 flags register. In this article, we will describe all this status flag registers. So, lets start….&lt;/p&gt;

&lt;p&gt;.&lt;/p&gt;

&lt;p&gt;We can divided the 9 flags into two category, those are&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;&lt;em&gt;Status Flags&lt;/em&gt;&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;There are 6 flag registers in 8086 microprocessor which become set (1) or reset (0) depending upon condition after either 8-bit or 16-bit operation. These flags are conditional/status flags.&lt;/p&gt;

&lt;p&gt;The 6 status flags are:&lt;/p&gt;

&lt;p&gt;a. Sign Flag (SF)&lt;/p&gt;

&lt;p&gt;b. Zero Flag (ZF)&lt;/p&gt;

&lt;p&gt;c. Carry Flag (CF)&lt;/p&gt;

&lt;p&gt;d. Auxiliary Carry Flag (AF)&lt;/p&gt;

&lt;p&gt;e. Parity Flag (PF)&lt;/p&gt;

&lt;p&gt;f. Overflow Flag (OF)&lt;/p&gt;

&lt;p&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Control Flags
&lt;/h2&gt;

&lt;p&gt;The control flags enable or disable certain operations of the microprocessor.&lt;/p&gt;

&lt;p&gt;There are 3 control flags…&lt;/p&gt;

&lt;p&gt;a. Directional Flag (DF)&lt;/p&gt;

&lt;p&gt;b. Interrupt Flag (IF)&lt;/p&gt;

&lt;p&gt;c. Trap Flag (TF)&lt;/p&gt;

&lt;p&gt;.&lt;/p&gt;

&lt;p&gt;.&lt;/p&gt;

&lt;p&gt;Sign Flag (SF): If the MSB of a result is 1 than the sign flag will be 1. If the MSB of the result is 0 than the sign flag will be 0.&lt;/p&gt;

&lt;p&gt;Zero Flag (ZF): For zero result, it will be 1. For non-zero result it will be 0. &lt;/p&gt;

&lt;p&gt;Carry Flag (CF): If there is a carry out from the most significant bit (MSB) on addition, or there is a borrow into the MSB on subtraction, CF will be 1. Otherwise, CF will be 0.&lt;/p&gt;

&lt;p&gt;Auxiliary Carry Flag (AF): If there is a carry out from bit 3 on addition, or a borrow into bit 3 on subtraction, AF will be 1. Otherwise, AF will be 0.&lt;/p&gt;

&lt;p&gt;Parity Flag (PF): If the low byte of a result has an even number, PF will be 1. Otherwise, PF will be 0.&lt;/p&gt;

&lt;p&gt;Overflow Flag (OF): If signed overflow occurred, OF will be 1. Otherwise OF will be 0.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Effect of Instructions on Flags&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Different instructions in assembly language may affect the flags differently. For example, arithmetic instructions like ADD and SUB directly affect all flags. INC and DEC flag affects all except CF. On the other hand, MOV and XCHG affects no flags.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;References:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Y. Y. Yu and C. Marut, Assembly Language Programming and Organization of the IBM PC, illustrated ed. Mitchell McGraw-Hill, 1992&lt;/p&gt;

</description>
      <category>assembly</category>
      <category>discuss</category>
      <category>computerscience</category>
    </item>
  </channel>
</rss>
