<?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 Zoya Jamadar on Medium]]></title>
        <description><![CDATA[Stories by Zoya Jamadar on Medium]]></description>
        <link>https://medium.com/@zoya.jamadar20?source=rss-9515b82217------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*H3EXbnP1vdGxNvVSZFzHAA.jpeg</url>
            <title>Stories by Zoya Jamadar on Medium</title>
            <link>https://medium.com/@zoya.jamadar20?source=rss-9515b82217------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 23:57:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zoya.jamadar20/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[Essentials On Data Preprocessing]]></title>
            <link>https://medium.com/@zoya.jamadar20/essentials-on-data-preprocessing-eb2b7e6efa5d?source=rss-9515b82217------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb2b7e6efa5d</guid>
            <dc:creator><![CDATA[Zoya Jamadar]]></dc:creator>
            <pubDate>Sun, 24 Sep 2023 16:49:07 GMT</pubDate>
            <atom:updated>2023-09-24T16:49:07.586Z</atom:updated>
            <content:encoded><![CDATA[<p>Using sklearn on standard data preprocessing techniques</p><p>Comming soon ..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb2b7e6efa5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Privacy Preserving Techniques for Data Publishing]]></title>
            <link>https://medium.com/@zoya.jamadar20/understanding-privacy-preserving-techniques-for-data-publishing-91fc76ec65c7?source=rss-9515b82217------2</link>
            <guid isPermaLink="false">https://medium.com/p/91fc76ec65c7</guid>
            <dc:creator><![CDATA[Zoya Jamadar]]></dc:creator>
            <pubDate>Mon, 11 Sep 2023 05:39:08 GMT</pubDate>
            <atom:updated>2023-09-11T05:39:08.584Z</atom:updated>
            <content:encoded><![CDATA[<p>The sharing of micro-data is raising significant concerns regarding individual privacy, prompting the development of laws and regulations that focus on safeguarding this data through Statistical Disclosure Control (SDC). The primary challenge in SDC revolves around the potential exposure of private information when data is released.</p><p>Concern about Identity Disclosure: Data privacy primarily revolves around preventing the revelation of individuals’ true identities within datasets.</p><p><strong>Intruders or Adversaries:</strong> Intruders, also referred to as adversaries, possess the expertise and motivation to either re-identify individuals or infer sensitive information from de-identified data.</p><p><strong>Motivated and Resourceful Intruders:</strong> Some intruders exhibit a high level of motivation and resourcefulness in uncovering sensitive information from available datasets.</p><p><strong>Consideration of Background Knowledge:</strong> Data controllers must take into account the intruders’ background knowledge when assessing the risk of privacy breaches.</p><p><strong>Risk Underestimation</strong>: Failing to accurately gauge the capabilities of intruders can result in an underestimation of the risks associated with data disclosure, potentially compromising data privacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/0*Ch1aCQpotVPBMS50.png" /><figcaption>Tradeoff between Data utility and Data privacy</figcaption></figure><h3>Understanding mathematical insights</h3><h4>Consider a microdata set,</h4><p><strong>𝑇 = {𝑡1, …, 𝑡𝑛}</strong>, where 𝑡𝑖 corresponds to to a tuple of attribute values for an individuals’ record.</p><p><strong>𝑉 = {𝑣1, …, 𝑣𝑚} </strong>be the set of 𝑚 attributes, in which 𝑡𝑖,𝑣𝑗 denotes the value of attribute 𝑣𝑗 for tuple 𝑖.</p><p>𝑄𝐼 consists a set of categorical / numerical values that can be known to an intruder where attributes from 𝑄𝐼 ∈ 𝑉 become similar to at <strong>𝑡𝑎,[𝑄𝐼 ] = 𝑡𝑏,[𝑄𝐼 ]</strong>. Hence Identification of Data subjects is prone to intruder attacks.</p><p>Now in de-identification process “<strong>transformation functions</strong>” are applied to the original data. This will protect intruders from back-linking of information</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Me4068SnRsEjd_0d.png" /><figcaption>De-identification process</figcaption></figure><h3>Privacy Risks</h3><p>To mitigate privacy risks, data controllers must implement robust privacy-preserving techniques to obtain de-identified datasets. These techniques typically address three primary types of privacy threats:</p><ul><li><strong>Singular Identification Risk</strong>: This refers to the potential for an intruder to isolate records within the dataset that uniquely identify a specific data subject.</li><li><strong>Linkability Risk: </strong>This pertains to the ability to establish connections or correlations between two or more records associated with an individual or a group of individuals, potentially revealing sensitive information.</li><li><strong>Inference Risk</strong>: This risk involves the possibility of deducing the value of an attribute by analyzing the values of other attributes in the dataset, which could compromise the privacy of the data subjects.</li></ul><p>By addressing these three types of privacy threats effectively, data controllers can enhance data privacy and protect individuals’ sensitive information in de-identified datasets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KeX8wkakVVnlY-k9.png" /><figcaption>Taxonomy for privacy-preserving techniques in microdata</figcaption></figure><h3>Non Pertubative Techniques</h3><p>Non-perturbative techniques aim to enhance data privacy without modifying the data itself. Instead, they focus on reducing the level of detail or partially suppressing information in the original data while preserving its accuracy. One key feature of non-perturbative techniques is that they maintain the truthfulness of the data.</p><h4>1. Global Recoding (Generalization or Full-Domain Generalization):</h4><p>Global recoding involves the consolidation of various categories of information within a categorical attribute 𝑉𝑖. This consolidation results in a new attribute 𝑉 ′ 𝑖, which contains more generalized information. Importantly, the cardinality of the domain |𝐷(𝑉 ′ 𝑖 )| is reduced compared to the original attribute 𝑉𝑖, where 𝐷 represents the domain of attributes in 𝑉. This technique allows for a broader representation of the data, enhancing privacy by reducing the granularity of information.</p><h4>2. Local Recoding:</h4><p>In contrast to global recoding, local recoding selectively recodes values into broader intervals or categories as needed. This recoding is performed in specific neighborhoods of the data, minimizing distortion. Local recoding strikes a balance between preserving detail and enhancing privacy by only replacing 𝑉𝑖 values in localized regions of the dataset where it is necessary.</p><h4>3. Top-and-Bottom Coding:</h4><p>Top-and-bottom coding is a specialized form of recoding applied to both continuous and categorical ordinal attributes. It involves the transformation of attribute values into top or bottom categories, often associated with extreme values or ranks. This technique helps to maintain the overall structure of the data while reducing the level of detail in specific attribute values, further safeguarding data privacy.</p><p>These non-perturbative techniques provide data controllers with effective tools to manage the level of detail in sensitive datasets, thus mitigating privacy risks while ensuring the data’s integrity and accuracy.</p><h3>Pertubative Techniques</h3><p>Perturbative techniques involve the modification of data before its release, with the aim of ensuring that statistical results obtained from the perturbed microdata closely resemble those derived from the original dataset. These techniques are employed to enhance privacy while maintaining the utility and accuracy of the data.</p><h4><strong>1. Swapping:</strong></h4><p>Swapping is a data transformation technique that focuses on exchanging attribute values between records. There are two main forms of swapping:</p><p>- Record Swapping: In record swapping, the primary idea is to exchange entire records, which means swapping entire rows of data between individuals. This technique disrupts the connection between the records and specific individuals.</p><p>- Rank Swapping: Rank swapping involves the exchange of attribute values based on their ranks within the dataset. This technique helps protect the privacy of individuals while maintaining data utility.</p><p>Advantages of swapping include the removal of the relationship between records and individuals, the ability to apply it to one or more sensitive attributes without affecting non-sensitive attributes, the retention of all non-sensitive attributes, protection for rare and unique values, and applicability to various types of attributes.</p><h4><strong>2. Re-sampling:</strong></h4><p>Re-sampling is a technique often used for tabular data protection. It entails taking 𝑡 independent samples 𝑆1, …, 𝑆𝑡 of size 𝑛 from the values of an original attribute 𝑉𝑖. Each sample is sorted using the same ranking criterion. The masked attribute is constructed by averaging the values of each corresponding sample. Re-sampling preserves data utility while adding a layer of privacy protection.</p><h4><strong>3. Noise</strong>:</h4><p>Protecting personal data with noise involves the addition of either additive or multiplicative noise. There are various types of noise addition:</p><p>- <strong>Uncorrelated Noise Addition:</strong> This method involves adding noise to each observation in the original microdata vector independently. Specifically, each observation 𝑥𝑗 for the 𝑗𝑡ℎ attribute is replaced with a new value 𝑧𝑗, where 𝑧𝑗 = 𝑥𝑗 + 𝜖𝑗, and 𝜖𝑗 represents normally distributed errors.</p><p>- <strong>Correlated Noise Addition:</strong> Correlated noise addition is based on the generation of an error matrix. This approach introduces correlated errors into the data, which can help protect privacy while preserving certain statistical properties.</p><p>Perturbative techniques play a crucial role in achieving a balance between data privacy and data utility. By applying these methods, data controllers can release valuable information while minimizing the risk of individual re-identification and privacy breaches.</p><h4>Rounding</h4><p>Rounding is a data transformation technique with the primary goal of replacing the original values of attributes with rounded values. This process involves selecting a set of rounding points, denoted as 𝑝1, …, 𝑝𝑟, which are typically determined based on multiples of a base value 𝑏: 𝑝𝑖 = 𝑏 × 𝑖 for 𝑖 = 1, …, 𝑟.</p><p>In practical terms, when rounding is applied to an original value 𝑥𝑖 within the attribute 𝑋, that value 𝑥𝑖 is substituted with the nearest rounding point. This operation ensures that the attribute values in the dataset become more coarse or discrete, effectively reducing the level of detail.</p><h3>De-associative Techniques</h3><p>De-associative techniques are employed to create data buckets that break the correlation between Quasi-Identifiers (QI) and sensitive attributes. The primary goal is to form QI-groups, each containing a minimum of 𝑘 records.</p><h4>1. Bucketization:</h4><p>Bucketization involves partitioning the data and recoding attribute values into less specific categories. Each record in a bucket corresponds to multiple sensitive values, making it challenging for intruders to distinguish between tuples within the same bucket. However, this technique does not prevent membership disclosure, as QI values are published in their original format.</p><h4>2. Angelization:</h4><p>Angelization involves the publication of pairs of bucket and batch partitions. In this approach, a dataset 𝑇 is represented as a pair comprising a batch table (BT) with Batch-ID, Sensitive values, Count, and a generalized table (GT). The GT includes all QI attributes along with a Batch-ID column, ensuring that all tuples within the same bucket 𝐶𝑖 have equivalent generalized QI values.</p><h4>3. Slicing:</h4><p>Slicing addresses the challenge of disrupted correlation between Quasi-Identifiers (QI) and sensitive attributes caused by previous techniques. Slicing aims to maintain the correlations between attributes while grouping QI with sensitive attributes.</p><p>Slicing involves both vertical and horizontal partitioning of the microdata set. In vertical partitioning, attributes are organized into columns based on their correlations, grouping highly correlated attributes together. This approach helps preserve the relationships between attributes and can enhance privacy while retaining data utility.</p><p>De-associative techniques play a vital role in ensuring that sensitive attributes are not easily linked to QI, thus safeguarding individual privacy when sharing data for analysis or research purposes.</p><h3>Summarizing all the Points</h3><p>Numerous privacy-preserving techniques have been developed to restrict the disclosure of confidential information. In summary, each technique is designed to assist data controllers in making informed decisions regarding data sharing and analysis.</p><ul><li>Non-perturbative Techniques: These methods have a general objective of reducing the level of detail in data without introducing distortion. The primary aim is to protect privacy while retaining the inherent truthfulness and utility of the data. Non-perturbative techniques ensure that individual identities or sensitive information are not easily discernible.</li><li>Perturbative Methods: Perturbative techniques, on the other hand, intentionally introduce uncertainty or distortion into the data. The primary purpose is to create a level of noise or randomness in the dataset, making it challenging for intruders to infer sensitive information. Perturbative methods aim to balance data utility with privacy protection.</li><li>De-associative Techniques: De-associative methods are geared towards breaking the correlation between Quasi-Identifiers (QI) and sensitive attributes. These techniques ensure that sensitive information is not easily linked to QI, enhancing data privacy. De-associative techniques are essential for minimizing the risk of re-identification and privacy breaches.</li></ul><h3>Conclusion</h3><p>In essence, these three categories of techniques represent different approaches to achieving the overarching goal of data privacy while preserving data utility. Data controllers can choose the most appropriate technique based on the specific requirements of their data sharing and analysis scenarios.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91fc76ec65c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Privacy Preserving Techniques for Data Publishing]]></title>
            <link>https://medium.com/@zoya.jamadar20/understanding-privacy-preserving-techniques-for-data-publishing-3062ea66d9e0?source=rss-9515b82217------2</link>
            <guid isPermaLink="false">https://medium.com/p/3062ea66d9e0</guid>
            <dc:creator><![CDATA[Zoya Jamadar]]></dc:creator>
            <pubDate>Wed, 06 Sep 2023 04:09:13 GMT</pubDate>
            <atom:updated>2023-09-11T06:04:35.610Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>The sharing of micro-data is raising significant concerns regarding individual privacy, prompting the development of laws and regulations that focus on safeguarding this data through Statistical Disclosure Control (SDC). The primary challenge in SDC revolves around the potential exposure of private information when data is released.</p><p>Concern about Identity Disclosure: Data privacy primarily revolves around preventing the revelation of individuals’ true identities within datasets.</p><p><strong>Intruders or Adversaries:</strong> Intruders, also referred to as adversaries, possess the expertise and motivation to either re-identify individuals or infer sensitive information from de-identified data.</p><p><strong>Motivated and Resourceful Intruders:</strong> Some intruders exhibit a high level of motivation and resourcefulness in uncovering sensitive information from available datasets.</p><p><strong>Consideration of Background Knowledge:</strong> Data controllers must take into account the intruders’ background knowledge when assessing the risk of privacy breaches.</p><p><strong>Risk Underestimation</strong>: Failing to accurately gauge the capabilities of intruders can result in an underestimation of the risks associated with data disclosure, potentially compromising data privacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*9laPhg0INlE-KN8udiZ3_w.png" /><figcaption>Trade off between Privacy level and utility level of data</figcaption></figure><p>Consider a microdata set,</p><p>𝑇 = {𝑡1, …, 𝑡𝑛}, where 𝑡𝑖 corresponds to to a tuple of attribute values for an individuals’ record.</p><p>𝑉 = {𝑣1, …, 𝑣𝑚} be the set of 𝑚 attributes, in which 𝑡𝑖,𝑣𝑗 denotes the value of attribute 𝑣𝑗 for tuple 𝑖.</p><p>𝑄𝐼 consists a set of categorical / numerical values that can be known to an intruder where attributes from 𝑄𝐼 ∈ 𝑉 become similar to at 𝑡𝑎,[𝑄𝐼 ] = 𝑡𝑏,[𝑄𝐼 ]. Hence Identification of Data subjects is prone to intruder attacks.</p><p>Now in de-identification process “transformation functions” are applied to the original data. This will protect intruders from back-linking of information</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FvWvPqY_z5Nz-CZJutOc1w.png" /><figcaption>De-identification process</figcaption></figure><h3>Privacy Risks</h3><p>To mitigate privacy risks, data controllers must implement robust privacy-preserving techniques to obtain de-identified datasets. These techniques typically address three primary types of privacy threats:</p><ul><li><strong>Singular Identification Risk</strong>: This refers to the potential for an intruder to isolate records within the dataset that uniquely identify a specific data subject.</li><li><strong>Linkability Risk: </strong>This pertains to the ability to establish connections or correlations between two or more records associated with an individual or a group of individuals, potentially revealing sensitive information.</li><li><strong>Inference Risk</strong>: This risk involves the possibility of deducing the value of an attribute by analyzing the values of other attributes in the dataset, which could compromise the privacy of the data subjects.</li></ul><p>By addressing these three types of privacy threats effectively, data controllers can enhance data privacy and protect individuals’ sensitive information in de-identified datasets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RYHQwCRwO0msm2zvxUpMag.png" /><figcaption>Taxonomy for privacy-preserving techniques in microdata</figcaption></figure><h3>Non Pertubative Techniques</h3><p>Non-perturbative techniques aim to enhance data privacy without modifying the data itself. Instead, they focus on reducing the level of detail or partially suppressing information in the original data while preserving its accuracy. One key feature of non-perturbative techniques is that they maintain the truthfulness of the data.</p><h3>1. Global Recoding (Generalization or Full-Domain Generalization):</h3><p>Global recoding involves the consolidation of various categories of information within a categorical attribute 𝑉𝑖. This consolidation results in a new attribute 𝑉 ′ 𝑖, which contains more generalized information. Importantly, the cardinality of the domain |𝐷(𝑉 ′ 𝑖 )| is reduced compared to the original attribute 𝑉𝑖, where 𝐷 represents the domain of attributes in 𝑉. This technique allows for a broader representation of the data, enhancing privacy by reducing the granularity of information.</p><h3>2. Local Recoding:</h3><p>In contrast to global recoding, local recoding selectively recodes values into broader intervals or categories as needed. This recoding is performed in specific neighborhoods of the data, minimizing distortion. Local recoding strikes a balance between preserving detail and enhancing privacy by only replacing 𝑉𝑖 values in localized regions of the dataset where it is necessary.</p><h3>3. Top-and-Bottom Coding:</h3><p>Top-and-bottom coding is a specialized form of recoding applied to both continuous and categorical ordinal attributes. It involves the transformation of attribute values into top or bottom categories, often associated with extreme values or ranks. This technique helps to maintain the overall structure of the data while reducing the level of detail in specific attribute values, further safeguarding data privacy.</p><p>These non-perturbative techniques provide data controllers with effective tools to manage the level of detail in sensitive datasets, thus mitigating privacy risks while ensuring the data’s integrity and accuracy.</p><h3>Pertubative Techniques</h3><p>Perturbative techniques involve the modification of data before its release, with the aim of ensuring that statistical results obtained from the perturbed microdata closely resemble those derived from the original dataset. These techniques are employed to enhance privacy while maintaining the utility and accuracy of the data.</p><h3>1. Swapping:</h3><p>Swapping is a data transformation technique that focuses on exchanging attribute values between records. There are two main forms of swapping:</p><p>- Record Swapping: In record swapping, the primary idea is to exchange entire records, which means swapping entire rows of data between individuals. This technique disrupts the connection between the records and specific individuals.</p><p>- Rank Swapping: Rank swapping involves the exchange of attribute values based on their ranks within the dataset. This technique helps protect the privacy of individuals while maintaining data utility.</p><p>Advantages of swapping include the removal of the relationship between records and individuals, the ability to apply it to one or more sensitive attributes without affecting non-sensitive attributes, the retention of all non-sensitive attributes, protection for rare and unique values, and applicability to various types of attributes.</p><h3>2. Re-sampling:</h3><p>Re-sampling is a technique often used for tabular data protection. It entails taking 𝑡 independent samples 𝑆1, …, 𝑆𝑡 of size 𝑛 from the values of an original attribute 𝑉𝑖. Each sample is sorted using the same ranking criterion. The masked attribute is constructed by averaging the values of each corresponding sample. Re-sampling preserves data utility while adding a layer of privacy protection.</p><h3>3. Noise:</h3><p>Protecting personal data with noise involves the addition of either additive or multiplicative noise. There are various types of noise addition:</p><p>- <strong>Uncorrelated Noise Addition:</strong> This method involves adding noise to each observation in the original microdata vector independently. Specifically, each observation 𝑥𝑗 for the 𝑗𝑡ℎ attribute is replaced with a new value 𝑧𝑗, where 𝑧𝑗 = 𝑥𝑗 + 𝜖𝑗, and 𝜖𝑗 represents normally distributed errors.</p><p>- <strong>Correlated Noise Addition:</strong> Correlated noise addition is based on the generation of an error matrix. This approach introduces correlated errors into the data, which can help protect privacy while preserving certain statistical properties.</p><p>Perturbative techniques play a crucial role in achieving a balance between data privacy and data utility. By applying these methods, data controllers can release valuable information while minimizing the risk of individual re-identification and privacy breaches.</p><h3>Rounding</h3><p>Rounding is a data transformation technique with the primary goal of replacing the original values of attributes with rounded values. This process involves selecting a set of rounding points, denoted as 𝑝1, …, 𝑝𝑟, which are typically determined based on multiples of a base value 𝑏: 𝑝𝑖 = 𝑏 × 𝑖 for 𝑖 = 1, …, 𝑟.</p><p>In practical terms, when rounding is applied to an original value 𝑥𝑖 within the attribute 𝑋, that value 𝑥𝑖 is substituted with the nearest rounding point. This operation ensures that the attribute values in the dataset become more coarse or discrete, effectively reducing the level of detail.</p><h3>De-associative Techniques</h3><p>De-associative techniques are employed to create data buckets that break the correlation between Quasi-Identifiers (QI) and sensitive attributes. The primary goal is to form QI-groups, each containing a minimum of 𝑘 records.</p><h3>1. Bucketization:</h3><p>Bucketization involves partitioning the data and recoding attribute values into less specific categories. Each record in a bucket corresponds to multiple sensitive values, making it challenging for intruders to distinguish between tuples within the same bucket. However, this technique does not prevent membership disclosure, as QI values are published in their original format.</p><h3>2. Angelization:</h3><p>Angelization involves the publication of pairs of bucket and batch partitions. In this approach, a dataset 𝑇 is represented as a pair comprising a batch table (BT) with Batch-ID, Sensitive values, Count, and a generalized table (GT). The GT includes all QI attributes along with a Batch-ID column, ensuring that all tuples within the same bucket 𝐶𝑖 have equivalent generalized QI values.</p><h3>3. Slicing:</h3><p>Slicing addresses the challenge of disrupted correlation between Quasi-Identifiers (QI) and sensitive attributes caused by previous techniques. Slicing aims to maintain the correlations between attributes while grouping QI with sensitive attributes.</p><p>Slicing involves both vertical and horizontal partitioning of the microdata set. In vertical partitioning, attributes are organized into columns based on their correlations, grouping highly correlated attributes together. This approach helps preserve the relationships between attributes and can enhance privacy while retaining data utility.</p><p>De-associative techniques play a vital role in ensuring that sensitive attributes are not easily linked to QI, thus safeguarding individual privacy when sharing data for analysis or research purposes.</p><h3>Comparative Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vj8A3PfFAh2E5r9qAmeJUA.png" /><figcaption>Summing the principles of all techniques</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qK0CURM_clM6g4_k2uHupQ.png" /><figcaption>Comparing Advantages Vs Disadvantages</figcaption></figure><h3>Summarizing all the Points</h3><p>Numerous privacy-preserving techniques have been developed to restrict the disclosure of confidential information. In summary, each technique is designed to assist data controllers in making informed decisions regarding data sharing and analysis.</p><ul><li>Non-perturbative Techniques: These methods have a general objective of reducing the level of detail in data without introducing distortion. The primary aim is to protect privacy while retaining the inherent truthfulness and utility of the data. Non-perturbative techniques ensure that individual identities or sensitive information are not easily discernible.</li><li>Perturbative Methods: Perturbative techniques, on the other hand, intentionally introduce uncertainty or distortion into the data. The primary purpose is to create a level of noise or randomness in the dataset, making it challenging for intruders to infer sensitive information. Perturbative methods aim to balance data utility with privacy protection.</li><li>De-associative Techniques: De-associative methods are geared towards breaking the correlation between Quasi-Identifiers (QI) and sensitive attributes. These techniques ensure that sensitive information is not easily linked to QI, enhancing data privacy. De-associative techniques are essential for minimizing the risk of re-identification and privacy breaches.</li></ul><h3>Conclusion</h3><p>In essence, these three categories of techniques represent different approaches to achieving the overarching goal of data privacy while preserving data utility. Data controllers can choose the most appropriate technique based on the specific requirements of their data sharing and analysis scenarios.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3062ea66d9e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Human pose estimation via deep neural networks]]></title>
            <link>https://medium.com/@zoya.jamadar20/human-pose-estimation-via-deep-neural-networks-995709c39340?source=rss-9515b82217------2</link>
            <guid isPermaLink="false">https://medium.com/p/995709c39340</guid>
            <category><![CDATA[pose-estimation]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[human-pose-estimation]]></category>
            <dc:creator><![CDATA[Zoya Jamadar]]></dc:creator>
            <pubDate>Sun, 05 Feb 2023 11:21:59 GMT</pubDate>
            <atom:updated>2023-02-05T11:22:47.620Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Contributors : </em></strong><em>Zoya Jamadar, Vivek Verma , Aishwarya Pujari, Sahil Zawar, Abhishek Yeole</em></p><p>Human Pose Estimation is a computer vision task of detecting and estimating the positions of human joints in an image or a video. It plays a crucial role in various applications such as action recognition, human-computer interaction, and gaming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*fuGiWMtGc7f4s3wU9VV3gQ.png" /></figure><p>Traditionally, human pose estimation was performed using computer vision techniques such as edge detection and feature extraction. However, these methods have limitations in handling complex backgrounds and occlusions, leading to inaccurate results.</p><p>Recently, deep neural networks (DNNs) have been widely adopted for human pose estimation, providing accurate and robust results. DNNs can learn from large amounts of annotated data, allowing them to generalize well to new images.</p><p>One popular approach to human pose estimation using DNNs is the <strong>Convolutional Pose Machines (CPMs)</strong> framework. CPMs consist of several stages of convolutional layers that gradually refine the estimate of the human pose. The final output of the network is a heatmap representing the likelihood of each body joint’s location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*_uT_-bsmNXWY_yNu35Strw.png" /><figcaption>An example of Multi-task neural network with physical constraint for real-time multi-person 3D pose estimation from monocular camera</figcaption></figure><p>Another approach is the use of<strong> multi-person Pose Estimation (MPPE) </strong>networks. MPPE networks can simultaneously estimate the poses of multiple people in an image, making them suitable for real-world applications where multiple people are present.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*vrBkBGI8Fk25vGfhxLXXqQ.png" /><figcaption><a href="https://www.researchgate.net/publication/343088066_The_Progress_of_Human_Pose_Estimation_A_Survey_and_Taxonomy_of_Models_Applied_in_2D_Human_Pose_Estimation"><strong>The Progress of Human Pose Estimation: A Survey and Taxonomy of Models Applied in 2D Human Pose Estimation</strong></a></figcaption></figure><p>There are several deep learning libraries that can be used for human pose estimation, some of the popular ones include:</p><ol><li><strong>TensorFlow:</strong> TensorFlow is a popular open-source platform for machine learning and deep learning. It provides a large number of pre-trained models for human pose estimation, as well as tools for training custom models.</li><li><strong>PyTorch:</strong> PyTorch is another open-source deep learning library that is widely used for computer vision tasks. It has a user-friendly API and provides pre-trained models for human pose estimation.</li><li><strong>OpenCV</strong>: OpenCV is an open-source computer vision library that provides various tools for image and video processing. It includes a module for human pose estimation using deep learning.</li><li><strong>Caffe</strong>: Caffe is a deep learning framework developed by the Berkeley Vision and Learning Center. It provides pre-trained models for human pose estimation and has a fast implementation for real-time applications.</li><li><strong>Darknet</strong>: Darknet is an open-source neural network framework written in C and CUDA. It provides a fast and efficient implementation of human pose estimation models.</li></ol><p>These libraries provide various tools and models for human pose estimation, and choosing one depends on the specific requirements and goals of a project.</p><p>For a real time implementation check out our colab notebook here where we implement human pose using move-net :</p><p><a href="https://colab.research.google.com/drive/14pxHPEbq5gojF7y7Gv4LhwM1QoiAMVaa?usp=sharing">https://colab.research.google.com/drive/14pxHPEbq5gojF7y7Gv4LhwM1QoiAMVaa?usp=sharing</a></p><p><em>So in conclusion, deep neural networks have revolutionized the field of human pose estimation, providing accurate and robust results even in challenging scenarios. With the continuous advancements in DNNs, we can expect even more improved performance in the future.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=995709c39340" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Databricks]]></title>
            <link>https://medium.com/@zoya.jamadar20/azure-databricks-f17c14c0d2fc?source=rss-9515b82217------2</link>
            <guid isPermaLink="false">https://medium.com/p/f17c14c0d2fc</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[apache-spark]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[azure-data-engineer]]></category>
            <dc:creator><![CDATA[Zoya Jamadar]]></dc:creator>
            <pubDate>Mon, 05 Dec 2022 16:26:36 GMT</pubDate>
            <atom:updated>2022-12-05T16:26:36.478Z</atom:updated>
            <content:encoded><![CDATA[<p>“Data is the new science, Big Data holds your answers”</p><h3>👋 Hi , I’m Zoya,</h3><p>I like exploring cutting edge technologies that deliver state-of-the-art solutions to the world. Consider reading this month’s article on one of the hottest topics: <strong>Azure Databricks</strong>. Please let me know if this inspires you or whether you find any point this article may improve.</p><h4>What’s Azure Databricks</h4><p>In a nutshell Azure Databricks is a highly optimized version of Apache spark, a service that provides Big Data Analytics integrated in Azure and supported by Microsoft that performs wonders for Data Science and Data engineering needs. It’s one of the most sought after tools for scaling machine learning and data science models for real world analytic scenarios. Majority of our projects are well trained neat models that are running somewhere on cloud Notebooks. Now it’s worth considering how these might be scaled for a real time production use. Today here let’s look at the fundamentals of Apache spark, data bricks, and some technical design concepts that will surely add value to your cloud experience.</p><p>Let’s get started, happy reading!! …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8pWENWUvzHGwQNOh" /></figure><h3>Getting the terms right</h3><p><strong>Understanding Apache Spark, Databricks and Azure Databricks</strong></p><p>Data these days are either stored in cloud or cloud-like private environments, this data volume is growing exponentially due to improved methods of data collection in various forms including information from our mobile phones or medical reports residing in there. It is a tough job to process data at a massive scale, that’s when the notion of distributed computing came to picture, years back as a concept by Matei Zaharia, a Romanian-Canadian computer scientist and creator of <strong>Apache spark</strong>, a service then designed to process voluminous data.</p><p>However the modern needs of data goes beyond typical relational databases to analyzing data for streaming systems, data lakes and data warehouses. Realizing this requirement Databricks was built over the existing, open source Apache spark core. This was later integrated with Azure and resulted in many additional improvements like <strong>auto-scaling,</strong> <strong>support for multi language notebooks</strong> (including Python, Scala, R and Java) with b<strong>uilt in machine learning frameworks</strong> and <strong>integrated security</strong>. The birth of Azure databricks in the market has now made it one of the most in demand and sought after technology in terms of business analytics that promises serious results for enterprise decisions.</p><p>To the core Azure Databrick offers <strong>databricks runtime</strong> and <strong>integrated environment</strong> with additional advanced features like the role based access control (or RBAC) which includes access allocation of jobs with the collaborating team, JDBC and ODBS endpoint authentication, RStudio integration and audit logs.</p><p>So finally with Azure Databricks you get to enjoy</p><ul><li>Fully managed <strong>spark clusters</strong> hosted on azure</li><li>Databrick<strong> workspace for collaboration </strong>with notebooks with multi language support (R, Scala, Java and Python)</li><li><strong>Enterprise security</strong> including Azure directory integration (authentication and authorization service)</li><li><strong>Integration with Azure service</strong>s like SQL data warehouse, CosmosDb or power BI that keep your application in sync with other services.</li></ul><p>Now that we have a crisp idea of what workloads <strong>Azure Databricks</strong> can handle let’s understand with a practical example the hidden world of cloud technology that most enterprises use as a framework to handle their application’s scalability</p><h3>Architecture study of Application design</h3><p>The entire process of scaling any ML application begins with loading raw data as a data stream from kafka or as a data batch from the Data lake store to Azure databricks that will perform the major ETL function (extract, transform and load). As databricks works over spark this further job can easily be run parallelly for any sort of data preprocessing exactly the same way mentioned in the characteristics of pipeline section. Using azure gets us the edge of processing real time voluminous and massive data. This is the most fundamental architecture and provides a clear knowledge of how a data engineer’s background tasks operate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5tx2pRuaMgHP_k8nGMk2nQ.png" /></figure><p>However, if we have data coming from multiple sources, either structured or unstructured, the architecture may be adjusted so that the data is distributed over a spark cluster, enabling us to perform the exact ETL process at scale with regard to effective use of time, cost, and compute engine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kEZuaDQD5NfzI4FQHo77Kw.png" /></figure><p>Now let’s think about creating a complete application that ingests data from the real world, transforms it into a csv format, and transmits it to the Azure backend as stream or batch size data. With <strong>Azure Data</strong> <strong>Factory</strong>, an ETL service that extracts, transforms, and loads the data in a more understandable way, the path of analytical business now begins.</p><p>Data that moves forward, is copied to the blob storage, and is subsequently incorporated as a table in Azure Databricks.Once this data is accessible via databricks studio, we have the freedom to carry out any kind of operations using <strong>Spark SQL</strong>.</p><p>Now that the model has been operationalized and containerized as AI services, data may be expanded to <strong>Azure machine learning service</strong>s. It is at this stage of development that effective recommendation and prediction systems are put into use, providing applications with strong performance. Containerized services can be made available as API services, which most businesses do as part of their business strategy for sale as third-party commercial API’s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VckCOPveDuHFQKjQf1xM8A.png" /></figure><p>Summarizing it down, a Data engineering pipeline for Machine Learning in Azure condenses down to the following steps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vrS56yuItFCUc-lnuc-83g.png" /></figure><blockquote>Some Concluding points</blockquote><p>As of 2022, Azure-Databricks workspace provides flexibility not only with <strong>Machine learning </strong>but also with<strong> Data Science Engineering</strong>, and <strong>SQL</strong> workloads. To the end now let’s summarize a general understanding of its end-to-end architecture design, right from preprocessing steps to analyzing and visualizing the data, by skimming through the characteristics of the entire pipeline</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_3viYQe_JU6Reob_PsSGcQ.png" /></figure><ol><li>]Involves <strong>preprocessing of data </strong>— (cleaning nulls, compressing and partitioning data)</li><li><strong>Evaluating the data</strong> for it’s quality — by visuals, outlier inspection</li><li><strong>Standard compute</strong> — SQL queries for business analytics (statistical operations on Data)</li><li><strong>Complex compute</strong> — Performing ML jobs (inferencing, training models, tuning hyperparameters and accuracy of models). When the data is massive the compute time may grow exponentially, however this can be adjusted with a robust compute flavor in the workspace.</li><li><strong>Serve result </strong>— store it in database and visually present it</li></ol><blockquote>Now to conclude</blockquote><p>We have covered a lot of in depth and complex topics that might not get right across at first however i encourage you to keep diving into the intensity of cloud. Here are some of the best resources that are worth going through if you consider exploring ahead</p><p>Learning Resources</p><p><a href="https://learn.microsoft.com/en-us/azure/databricks/">https://learn.microsoft.com/en-us/azure/databricks/</a></p><p><a href="https://github.com/MicrosoftDocs">https://github.com/MicrosoftDocs</a></p><p><a href="https://learn.microsoft.com/en-us/azure/databricks/notebooks/?WT.mc_id=Portal-Microsoft_Azure_Databricks">https://learn.microsoft.com/en-us/azure/databricks/notebooks/?WT.mc_id=Portal-Microsoft_Azure_Databricks</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f17c14c0d2fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ROS — Robot operating system]]></title>
            <link>https://medium.com/@zoya.jamadar20/ros-robot-operating-system-dcab57f4ccfa?source=rss-9515b82217------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcab57f4ccfa</guid>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[robotics]]></category>
            <dc:creator><![CDATA[Zoya Jamadar]]></dc:creator>
            <pubDate>Sun, 28 Aug 2022 13:30:37 GMT</pubDate>
            <atom:updated>2022-08-28T13:30:37.924Z</atom:updated>
            <content:encoded><![CDATA[<h3>ROS — Robot operating system</h3><p><a href="https://medium.com/u/9515b82217">Zoya Jamadar</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*VMxlVKCedPpHqPUPMMIApQ.jpeg" /></figure><p><strong><em>What is ROS?</em></strong></p><ul><li>Open source easy-to-use framework for writing Robot software</li><li>Collection of tools &amp; libraries to solve complex problems</li><li>Provides simulations and visualization tools</li></ul><p><strong><em>Why ROS ?</em></strong></p><ul><li><strong>Open source framework</strong> — User can add new features of existing code, implement new ideas. this way ROS gives more flexibility to users.</li><li><strong>Without hardware implementation</strong> — User can test their algorithm in simulation without hardware</li><li><strong>Supports major programming languages</strong> like python and C++</li><li><strong>Good community support </strong><a href="https://answers.ros.org/">Questions — ROS Answers: Open Source Q&amp;A Forum</a></li><li><strong>Variety of robots and sensors are supported </strong>— that can be integrated with ROS eg- Manipulators, Aerial Humanoid</li></ul><p><strong><em>Ros Infrastructure</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*RlcMDuZRARSMR9Y0JayCwQ.jpeg" /></figure><ul><li>Publisher/Subscriber model for message passing</li><li>Recording and play back the messages (rosbag)</li><li>Request/Response services for procedure calls</li><li>Python/C++ node creation for communication</li><li>Distributed parameter system</li></ul><p><strong><em>Levels of Abstraction in ROS</em></strong></p><ul><li><strong><em>ROS maste</em>r (server)</strong> provides the naming and registration services to another nodes. It tracks publisher and subscriber of node and connects them. Then two nodes can communicate without master.</li><li><strong><em>Nodes</em></strong> are executable under which topics and services communicates. Each node in the system have a unique name. Under one node multiple topics and services are possible.</li><li><strong><em>Topics</em></strong> are like software buses to transmit data. A published topic can have multiple subscriber but the constrain is that the message type and topic name should be matched.</li><li><strong><em>Messages</em></strong> ROS has different message types on which data can be transmitted</li><li>eg. <em>std_msgs/Int16, sensor_msgs/Image</em> User can create own custom message type</li><li><strong><em>Simple Analogy</em></strong> — ROS master → teacher (Who is responsible for connecting two nodes) Nodes → students (Who are expert in their particular domain) Topics → medium through which they communicate Messages → content that is being exchanged like documents.</li></ul><p><strong><em>Basic ROS commands</em></strong></p><ol><li><strong><em>roscore</em></strong> — runs the ROS master</li><li><strong><em>rosnode</em></strong> -</li></ol><ul><li><strong>rosnode</strong> list — Lists all the the live nodes in the network</li><li><strong>rosnode info &lt;Node&gt;</strong>- details about nodes which are topics associated to this node. who all are the subscribers and publishers</li><li><strong>rosnode kill &lt;Node&gt;</strong>- Send the kill signal to node</li><li><strong>rosnode ping &lt;Node&gt;</strong>- Check connectivity of the nod</li></ul><p><strong>3. roscd</strong> — change directory</p><p><strong>4. rostopic</strong> — details abt topic</p><p><strong>5. rosrun</strong> — run executables</p><p><strong>6. roslaunch</strong> — Run the launch file</p><p><strong>ROS package</strong></p><ul><li>Catkin workspace — catkin is cmake based build system for ROS. All the packages of ROS should be inside this workspace.</li></ul><p><strong><em>ROS tools</em></strong></p><ul><li><strong>For logging and visualization ROS provides different tools</strong></li></ul><ol><li><strong>3D-Visualization : RVIZ</strong></li></ol><ul><li>Graphical interface tool</li><li>Visualize sensor data, robot models, Environment map</li><li>Application : perception, navigation manipulation</li></ul><p><strong>2. live plotting : rqt_plot</strong></p><ul><li>used for live plotting of data from sensors</li></ul><p><strong>3. System visualization : rqt_graph</strong></p><ul><li>Visual graph of the process running</li></ul><p><strong>4. ROS Bag</strong></p><ul><li>Command line tool for recording and playing back messages into “bag” files</li><li>saves specified topics and messages</li></ul><p><strong>For simulation and hardware</strong></p><ol><li>ROS integration with simulators — Gazebo, CoppeliaSim, CARLA, Unity</li><li>ROS with hardware — PLC’s, robot controllers, Servos, IO networks , rasberry pi, Nvidia boards, micro ROS for microcontrollers.</li></ol><h3>GAZEBO</h3><p>open source 3D simulator</p><ul><li>can create a robot model from scratch</li><li>Develop custom plugins for sensor, environment</li><li>integration with ROS</li><li>support for lot of sensors in simulation</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcab57f4ccfa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Machine learning model Part 3]]></title>
            <link>https://medium.com/@zoya.jamadar20/understanding-machine-learning-model-part-3-5778ff00a6b4?source=rss-9515b82217------2</link>
            <guid isPermaLink="false">https://medium.com/p/5778ff00a6b4</guid>
            <category><![CDATA[decision-tree]]></category>
            <category><![CDATA[implementation]]></category>
            <category><![CDATA[machine-learing]]></category>
            <category><![CDATA[sklearn]]></category>
            <category><![CDATA[model-validation]]></category>
            <dc:creator><![CDATA[Zoya Jamadar]]></dc:creator>
            <pubDate>Fri, 15 Jul 2022 13:24:12 GMT</pubDate>
            <atom:updated>2022-07-15T13:28:10.602Z</atom:updated>
            <content:encoded><![CDATA[<p>~ Zoya Jamadar</p><p>Every model needs to be fine tuned for it’s accuracy. There are several ways to validate a model, but the most elementary method is to calculate <strong>MAE or mean absolute error.</strong> This article 3 will teach you <strong>model validation</strong> in section 1 and it’s<strong> implementation </strong>in section 2. Happy learning 🐱‍🏍.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*oYwDb2_MXj0LlhS-_Jw0_Q.png" /><figcaption>Learn how to validate your own model here</figcaption></figure><p>Level : Beginner</p><h3><strong>Section 1: Model Validation</strong></h3><p>Note : A model is always validated over<strong> testing data</strong> and <strong>not training data</strong></p><p>(*training data is the data on which the model is fitted while testing data is unknown data for the model, on which it is tested for accuracy )</p><p><strong>MAE or Mean absolute error</strong> is one of the metrics to validate a model. If the model predicts a house price to be $120000 and the actual value is $125000 simply</p><p><strong>MAE = | Predicted value (price) — Actual value (price)</strong> <strong>| </strong>= $5000</p><p>Note : every error is a positive value as we consider the absolute value of the error</p><p>If the testing data contains 150 values an average value of all MAE is taken to calculate the Mean error in the model.</p><h3>Section 2 : Implementation</h3><p><strong>Step 1 : Split the data</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*w6SlAFo98jciz4AlETVULA.png" /><figcaption>perform train_test_split using sklearn</figcaption></figure><p><strong>Step 2: Specify the model</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*Slm3xkxEltVuUf3P4W4rPw.png" /></figure><p><strong>Step 3: Compare the predictions</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*DSbBg06QFW7s6xLkdfBWDA.png" /></figure><p><strong>Step 4 : Calculate MAE</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*lDN2YAJsA2IWa5V73PySVg.png" /></figure><p>Now that’s the end of part 3. You’re almost half way through! Hook around for the next part its going to teach you some more amazing stuff !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5778ff00a6b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Machine learning models Part 2]]></title>
            <link>https://medium.com/@zoya.jamadar20/understanding-machine-learning-models-part-2-69f834898b3?source=rss-9515b82217------2</link>
            <guid isPermaLink="false">https://medium.com/p/69f834898b3</guid>
            <category><![CDATA[scikit-learn]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[decision-tree]]></category>
            <category><![CDATA[model]]></category>
            <dc:creator><![CDATA[Zoya Jamadar]]></dc:creator>
            <pubDate>Tue, 12 Jul 2022 07:01:08 GMT</pubDate>
            <atom:updated>2022-07-13T11:43:42.333Z</atom:updated>
            <content:encoded><![CDATA[<p>~ <a href="https://www.linkedin.com/in/zoya-jamadar-56888b202/">Zoya Jamadar</a></p><p>Data modelling includes filtering of real time humongous data into finite set of attributes that can be understood in a more meaningful way. In this article we will look at a <strong>widely used approach for selecting subset from the data set</strong> — Dot notation method and column list selection and <strong>how to build your own model</strong> using sklearn or Scikit-learn library.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*My34IdWFAqi6wUInTskIDg.png" /></figure><p>Level : <em>Beginner</em></p><h3><strong>Section 1: Data Modelling</strong></h3><p><strong>Dot Notation method </strong>— Used for selecting prediction target</p><p><strong>Column list selection </strong>— Used to select features</p><p><strong>Prediction Target</strong></p><p>Using Dot Notion you can extract a particular column that you want to predict. As per our previous example Price could be our Target that we want to predict hence this is called as prediction target. The extracted column is then stored as a Series which becomes the Data-Frame with a single column.</p><p>By convention Prediction target is called<strong> y</strong> . Therefore the target variable or prediction target will be the output as a result of <strong>training a model</strong></p><p><em>y = house_data.price</em></p><h4><strong>Choosing the features</strong></h4><p>The columns filtered from the dataset that will be used to train the model is known as <strong>features. </strong>For our decision tree model features considered could be Presence of Parking Lot, No of Bedrooms, locality and so on.</p><p><strong><em>Add on</em></strong> — Models like linear regression selects only one feature against Prediction target while Multiple regression, Decision tree , Random forest selects multiple features.</p><p>By convention this feature list is known as<strong> x</strong></p><h3><strong>Section 2 : Building Models</strong></h3><p>Widely <strong><em>sciket-learn</em></strong> (sklearn) library is used for building models</p><p>Model building involves the following steps</p><ol><li><strong>Define </strong>— The type of Model. This step involving a comparison based on which model suits best to the requirement. With a small dataset you could choose <em>decision tree </em>or <em>K-means </em>clustering with a large dataset you could choose Random forest or any other model.</li><li><strong>Fit</strong> — Fitting the model is the core idea. Bu fitting the model you need to understand the patterns in the dataset</li><li><strong>Predict </strong>— Predict the target variable</li><li><strong>Evaluate </strong>— Test the accuracy, evaluate the results based on different parameters like Sensitivity, specificity, Precision, Recall etc.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*GgcKrv4fUoADvl7AmQeDpg.png" /><figcaption>Specifying a number for random_state ensures you get the same results in each run. Its a good practice!</figcaption></figure><p>After fitting the model you can go ahead test the results and print them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*2BqFXyhJlj37LyDrecCgPw.png" /></figure><p>With this we come to the end of Part 2. But that’s not the end hook around the next part is going to blow up mind !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69f834898b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Machine learning models Part 1]]></title>
            <link>https://medium.com/@zoya.jamadar20/understanding-machine-learning-models-part-1-db984435a360?source=rss-9515b82217------2</link>
            <guid isPermaLink="false">https://medium.com/p/db984435a360</guid>
            <category><![CDATA[decision-tree]]></category>
            <category><![CDATA[machinele]]></category>
            <category><![CDATA[data-exploration]]></category>
            <dc:creator><![CDATA[Zoya Jamadar]]></dc:creator>
            <pubDate>Sat, 09 Jul 2022 10:18:37 GMT</pubDate>
            <atom:updated>2022-07-13T11:45:15.022Z</atom:updated>
            <content:encoded><![CDATA[<p>~ <a href="https://www.linkedin.com/in/zoya-jamadar-56888b202/">Zoya Jamadar</a></p><p>Machine learning models are generally used for classification and prediction algorithms. In this part 1 article we will cover <strong>basic terminologies</strong> and <strong>data interpretation</strong> related machine learning models so you can ace the concepts with confidence.</p><p>Level : <em>Beginner</em></p><p><strong>Section 1 : Understanding basic Terminologies</strong></p><p>Suppose we are using decision tree to <strong>predict</strong> a house price. For this we first require to fit the data points according to the patterns in our dataset. This preliminary step is known as <strong>fitting</strong> or <strong>training</strong> model. This data used to fit the model is known as <strong>training dataset</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*-Bli7jtHouFPj0sIC5N8RA.png" /><figcaption>By tracing the path in the tree model predicts a value. This last point is known as a <strong>leaf</strong></figcaption></figure><p><strong>Section 2 : Data exploration</strong></p><p>To work with any machine learning model we need to familiarize ourselves with data. <a href="https://pandas.pydata.org/docs/user_guide/10min.html"><strong>Pandas</strong></a><strong> </strong>is the primary tool used by data scientist for exploring and manipulating data. the most important part of pandas is the dataframe that hold values like a table in Excel and SQL databases. Other tools include Matplotlib, Scikit learn, Plotly etc…</p><blockquote><a href="https://www.kaggle.com/jamadarzoya/understanding-machine-learning-part-1"><em>Notebook link</em></a></blockquote><p><strong>Interpreting data description with .describe() in pandas</strong></p><p>This function describes the data values with 8 attributes of the dataset</p><p><strong><em>Count</em></strong> — Shows how many rows have non-missing values.</p><p><strong><em>Mean</em></strong><em> </em>— Average of all the values of a column</p><p><strong><em>std</em></strong>— Standard deviation that measures the spread of values in the dataset</p><p><strong><em>min, 25%, 50%, 75% and max</em></strong> — The data set is sorted and the first (smallest) value is the min. If you go a quarter way through the list, you’ll find a number that is bigger than 25% of the values and smaller than 75% of the values. That is the <strong>25%</strong> value (pronounced “25th percentile”). The 50th and 75th percentiles are defined analogously, and the <strong>max</strong> is the largest number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e8NEk22BgQ-hPc1px2ofZQ.png" /><figcaption>Data Exploration using pandas</figcaption></figure><p>That’s the end of part 1. Hook around the next part is more interesting than you imagine it to be!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db984435a360" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>