<?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 Preeti Hemant on Medium]]></title>
        <description><![CDATA[Stories by Preeti Hemant on Medium]]></description>
        <link>https://medium.com/@preetihemant?source=rss-9549a5a87bd9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*NekPqscrKMBfu8yd2bygng.png</url>
            <title>Stories by Preeti Hemant on Medium</title>
            <link>https://medium.com/@preetihemant?source=rss-9549a5a87bd9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 02:03:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@preetihemant/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[Qualities of a sought out Data Analyst or Data Scientist]]></title>
            <link>https://preetihemant.medium.com/qualities-of-a-sought-out-data-analyst-or-data-scientist-ad9c7c3fd526?source=rss-9549a5a87bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad9c7c3fd526</guid>
            <category><![CDATA[product]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-driven]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Preeti Hemant]]></dc:creator>
            <pubDate>Sat, 21 May 2022 18:33:03 GMT</pubDate>
            <atom:updated>2022-05-21T18:33:03.323Z</atom:updated>
            <content:encoded><![CDATA[<h3>Qualities of a prized Data Analyst or Data Scientist</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*2Bvq6wJTy3qJrYdKLV6v6Q.jpeg" /></figure><p>How does a Data Analyst or a Data Scientist in a business facing role <strong><em>create impact</em></strong>? Would your answer be — expertise in statistics, SQL, machine learning and other esoteric data skills? In my experience, these skills are only a small part of what determines the success of someone in a data partner role. Read on to find out what it takes to be a much sought-after data professional.</p><p>In most organizations, data teams play an outward facing role. Members spend a significant portion of their time working with business and product — understanding their requirements, their short and long term goals and making recommendations to refine their roadmaps and strategies.</p><p>In a complex role like this, technical skills alone don’t quite cut it…</p><p>In broad strokes, I’d categorize these “other” skills into</p><ol><li>Building trust</li><li>Customer focus</li><li>Skillful communication</li></ol><p>What do each of them look like in practice?</p><h4>Building Trust</h4><p>“<em>In God we trust, All others must bring data</em>”. What happens when this somebody who brings data is a data specialist themselves? Then they must bring “<em>trust</em>”.</p><p>Building trust rarely happens overnight but there are some ways to accelerate it. Stakeholders trust data partners who keep multiple perspectives in mind when making a recommendation. They seek people who are curious and proactively surface insights for better decision making.</p><p>A self-managed analyst or a scientist, who can work closely with people in different functions such as product, user research, marketing will be able to create a balanced viewpoint. This in turn will fuel critical recommendations. It is a great way for an analyst to understand a problem beyond its description and build a product, user and business perspective.</p><h4>Having a Customer Focus</h4><p>How does this skill manifest? Data Analysts and Scientists admired for their focus on customer needs have a demonstrated ability to see and frame the bigger business questions.</p><p>They step into the shoes of the stakeholder when conducting an analysis which allows them to think ahead. This approach of viewing a request from the stakeholder’s perspective opens up opportunities to go beyond their mandate (of “providing insights and recommendations”) — setting up a virtuous cycle of value creation for the stakeholders.</p><h4>Skillful Communication</h4><p>You have heard it before — Data Scientists are great communicators. What does this mean in a real world business setup?</p><p>Highlighting salient features of an approach, its limitations, explaining nuances in the results, cautioning on how the results should not be interpreted and finally, distilling insights into key takeaways and communicating conclusions — these, are a few things to keep in mind when honing this skill.</p><p>The other critical part of good communication is asking probing questions that promote dialogue and discussion.</p><h4>In conclusion…</h4><p>Data partners bring the much needed data perspective to the table.</p><p>Use these techniques described to ensure your qualified opinions are trusted and your recommendations translate into business decisions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad9c7c3fd526" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Mesh Architecture: Roles and Strategies]]></title>
            <link>https://preetihemant.medium.com/data-mesh-roles-and-strategies-6a789fe12b27?source=rss-9549a5a87bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a789fe12b27</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[modern-data-architecture]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-mesh]]></category>
            <dc:creator><![CDATA[Preeti Hemant]]></dc:creator>
            <pubDate>Sun, 27 Mar 2022 20:34:28 GMT</pubDate>
            <atom:updated>2022-03-28T13:12:06.962Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bhozJxU_SIxVGvtJT5tcDg.jpeg" /></figure><p><em>This post is a follow up to my previous post on </em><a href="https://preetihemant.medium.com/modern-data-architecture-models-69e90b725a05"><em>Data architecture models</em></a><em>. Here, I will explore strategies and the roles required for a successful implementation of the Data Mesh paradigm.</em></p><p>Data Mesh is not just technology and tools but equally or more importantly — people and culture. Being a socio-technical construct, its success is partly dictated by the roles in it. Apart from the traditional roles (Data Analysts, Data Scientists) in a setup, Data Mesh introduces some new roles. It also repurposes some of the existing ones.</p><p>Without further ado, let’s take a look at what these roles are.</p><h4>Data Product Owner (DPO)</h4><p>Data Mesh treats data as a product and rightly so — like any product, data is in the service of its customers. It follows that data should be held to the same exacting standards as any other product would be. Just as a product owner is responsible for this in the world of consumables, a DPO does the same in the world of data.</p><p>This DPO would be embedded into every domain to bring the rigor of product management and user experience to their data. Someone in this role understands the use cases their domain can serve, turns these into requirements and applies them to the domain data sets. A DPO understands the unbounded nature of data use cases — data can be combined with other data in numerous ways some of which are unforeseen.</p><p>Data Product Owner is responsible for providing measurable characteristics that demonstrate the value and impact of the datasets. To quote from <a href="https://learning.oreilly.com/library/view/data-mesh/9781492092384/">Data Mesh </a>— These characteristics talk to how Discoverable, Understandable, Addressable, Secure, Interoperable, Trustworthy, Natively accessible, Valuable on their own, domain datasets are.</p><h4>Platform engineers</h4><p>A platform that hosts data and the underlying infrastructure is a data platform. Platform Engineers design and build this infrastructure.</p><p>In a data mesh, one of the objectives of the platform is to enable domains to build and share data, <strong>autonomously</strong>. The platform allows domains to manage their data end to end, usually through self-serve platform APIs. Unlike the decentralized aspects of Data Mesh, like data ownership, the platform is centrally managed. It is domain agnostic — abstracts away provisioning and managing the underlying infrastructure. The platform also automates tasks whereever possible (e.g automating data integrity tests).</p><p>Design and implementation of this platform is at the intersection of software engineering and data engineering, a role that is best sutied for the <a href="https://preetihemant.medium.com/archetypes-in-data-engineering-14cabf6927a">Data engineer (Platform) archetype</a> .</p><h4>Data Product Developer</h4><p>A data product developer creates, delivers, maintains and evolves domain-specific data that is modelled as a product.</p><p>This individual works closely with a DPO to understand user expectations and ensure inter-operabality with other data products on the mesh. There is close collaboration between data product developers and application developers.</p><p>Data product developers own the code, logic and schema of their domain data. They provision the resources through platform APIs.</p><p>In the landscape of software roles, this is an Application developer with knowledge of data and eventing systems.</p><h4>Data Governance committee</h4><p>After infrastructure, Data governance is the other centralized function in a Data Mesh model. Although centralized,the data governance group is a cross-functional team consisting of platform engineers, product owners and security, legal and compliance experts. Contrast this with traditional governance teams that consist of governance experts but lack representation from different domains.</p><p>Data governance team creates policies and standards for how data should be managed and served. It ensures that the data products are secure and trustworthy.</p><p>As part of this committee, data product owners define the policy that will govern data products from different domains. Platform engineers automate implementation of the policies e.g access control to sensitive data, encryption or abstraction of PII (Personal Identifiable Information) data. Governance (security, legal and compliance) experts keep track of privacy regulations, security and compliance of data.</p><h3>Possible Strategies</h3><h4>Organizations in the early stages of data maturity</h4><p>In these orgs, Data is in the initial stages of being utilized for decision making. Early data set ups have the distinct advantage of nearly zero tech debt. These orgs can benefit immensely from a data platform that is designed, in keeping with the long term vision.</p><p>If you are in this stage, platform engineers should be your first hire. In collaboration with the domain teams, platform engineers can start building the various blocks of the data platform.</p><p>A Data product owner for multiple domains would be the next ideal hire — to set up common product management practices across domains. While a data mesh model recommends a DPO for each domain, in a “budding” data setup, the first DPO can play the role of a product management architect and work across domains.</p><h4>Organizations where data is more than a “nice-to-have”</h4><p>To these orgs, Data is an important consideration, it informs many business/product decisions and the roadmaps. Most times, these organizations have implemented the <a href="https://preetihemant.medium.com/modern-data-architecture-models-69e90b725a05">data fabric model</a>. There is a delineation in services — teams naturally fall into separate domains. The org likely has product managers that work with cross-functional teams and data engineers (who are building data infrastructure). Setting up a data mesh model is relatively easier in these organizations both from a technical and role creation perspective.</p><p>The role of a Data product owner can be created by repurposing the Product manager roles. Platform engineer likewise can be a data engineer role that has been redefined to suit the Data mesh context.</p><h4>Organizations with long established data practices</h4><p>Here, Data is integral to product and business strategy. These organizations have long left behind the exploratory phase of experimenting with tools and processes. They have figured out what works and are in the phase of making incremental improvements (through data).</p><p>Implementing data mesh in these orgs may be a difficult endeavour and in some ways may even be unnecessary. Nevertheless, a role like data product owner can still add value. A DPO could help with incremental improvements in the utility of data for the end users. They could help unify practices and processes across domains. The data governance team could be diversified by the inclusion of domain and product representation.</p><h3>In conclusion</h3><p>As you can see, there is no one size fits all when it comes to Data Mesh strategy. The roles, the design and the implementation have to be tailored to the individual scenarios, while keeping the principles of Data Mesh in mind.</p><h3>Further reading</h3><ol><li><a href="https://learning.oreilly.com/library/view/data-mesh/9781492092384/">https://learning.oreilly.com/library/view/data-mesh/9781492092384/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a789fe12b27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Archetypes in Data engineering]]></title>
            <link>https://preetihemant.medium.com/archetypes-in-data-engineering-14cabf6927a?source=rss-9549a5a87bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/14cabf6927a</guid>
            <category><![CDATA[data-architecture]]></category>
            <category><![CDATA[platform]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Preeti Hemant]]></dc:creator>
            <pubDate>Wed, 16 Mar 2022 01:08:06 GMT</pubDate>
            <atom:updated>2022-03-16T01:08:06.726Z</atom:updated>
            <content:encoded><![CDATA[<h3>Archetypes in Data Engineering</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b8uAM5MAkde8gIfaMj_s2Q.png" /></figure><p><em>This is a short read, part of the series “Short Byte: Data Engineering” to introduce topics.</em></p><p><em>What flavour of Data Engineer are you? Leave your replies in the comment section</em></p><p>Today’s data systems are complex enough to warrant more than just traditional data engineering. There are 3 popular archetypes in data engineering with different objectives.</p><h4>Data Engineer (Pipelines)</h4><p>A Data pipeline engineer is a traditional Data engineering role, the primary function being ingesting data in an Extract — Transform — Load sequence.</p><p>Data pipeline engineers automate data flows by building ETL pipelines. A company’s data comes from a variety of sources — custom pipelines may be built. Usually a tool like airflow is used for orchestration. They monitor pipelines, debug issues that emerge in data quality or SLAs and maintain healthy data flows.</p><p>Generally speaking, the end points of the jobs are a data lake and a warehouse. Hence, these engineers are also proficient in transformations and schema designs with optimal storage as the objective.</p><h4>Data Engineer (Platform)</h4><p>A data platform is becoming a necessity as the scale of data expands. Platform engineers build tools, frameworks and generalized systems. These systems meet the pipeline development needs of Data Scientists or Data pipeline engineers. In some cases, frameworks are built for a specific use case like experimentation. Data security is one of the architectural considerations in these platforms.</p><p>Data platforms aim to standardize how data is ingested from the outside and then handled internally. These platforms create a foundation that brings consistency in the downstream workflows.</p><p>Data platform engineers have a larger overlap with traditional software engineering when compared to Data pipeline engineers. They understand good design patterns in architecture and tradeoffs—E.g. a platform that offers flexibility in scheduling job runs but is opinionated on the how the load is distributed.</p><h4>Analytics Engineer</h4><p>What happens when simply ingesting data into the warehouse doesn’t suffice? Data needs to be modelled to incorporate complex business logic and to ensure consistency in metrics, reports and dashboards. This is Analytics Engineering.</p><p>A new role in the industry, it meets needs that are specific to Business Intelligence and implements an ELT (Extract, Load, Transform) data flow. DBT is one of the favourite tools in this space.</p><p>Although the boundaries between Data pipeline engineering and analytics engineering can be hazy, this role primarily focusses on how data flows after the warehousing step.</p><h4>Further reading</h4><ol><li><a href="https://www.getdbt.com/what-is-analytics-engineering/">https://www.getdbt.com/what-is-analytics-engineering/</a></li><li><a href="https://www.mckinsey.com/business-functions/mckinsey-digital/our-insights/how-to-build-a-data-architecture-to-drive-innovation-today-and-tomorrow">https://www.mckinsey.com/business-functions/mckinsey-digital/our-insights/how-to-build-a-data-architecture-to-drive-innovation-today-and-tomorrow</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14cabf6927a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hidden Technical Debt in ML systems — A summary]]></title>
            <link>https://preetihemant.medium.com/hidden-technical-debt-in-ml-systems-a-summary-22c9124ebd5b?source=rss-9549a5a87bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/22c9124ebd5b</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Preeti Hemant]]></dc:creator>
            <pubDate>Thu, 10 Mar 2022 14:14:29 GMT</pubDate>
            <atom:updated>2022-03-10T14:41:17.801Z</atom:updated>
            <content:encoded><![CDATA[<h3>Technical Debt in ML systems — A summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*Vro9B7bUjN3biW3Djo8OkQ.jpeg" /></figure><p><em>The field of ML and AI is moving quickly and </em><a href="https://proceedings.neurips.cc/paper/2015/file/86df7dcfd896fcaf2674f757a2463eba-Paper.pdf"><em>this paper</em></a><em> was published a few years ago, but the topics discussed are still relevant and important. So, it is time to get this old draft of my article out.</em></p><p>Technical debt in software engineering is the incurred long term costs arising from moving quickly on implementation and deployment. This debt significantly slows down maintenance and improvement activities.</p><p>ML systems are part software engineering and inherit many of the same problems, like technical debt. While ML solutions are relatively easy to develop and deploy but monitoring, maintaining them is not.</p><p>ML systems have the added complexity of ML specific issues and constraints, in addition to those from software engineering. While software related issues are easier to spot and rectify, ML specific issues are at a system level and are difficult to detect — giving rise to ‘hidden technical debt’ in ML systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3breKWAbZ2P1nPfhg58jiQ.png" /><figcaption>A real-world ML system</figcaption></figure><h3>Sources of Technical debt in ML systems</h3><h4>Difficulty in enforcing abstraction boundaries</h4><p>In Software engineering, making code maintainable is easier in comparison to ML. Software systems lend themselves well to abstraction boundaries.</p><p>ML systems in contrast do not — they use signals or features that are inherently entangled — changing the distribution of one feature may change the weights or the importance of other features. This is referred to as the CACE principle — Changing Anything Changes Everything.</p><p>Models are sometimes cascaded, where a model for a new problem is learned on top of an existing one. Although this approach may create a quick solution compared to creating a new model altogether — it results in system dependency. Analysis of improvements becomes expensive and improving any one model may lead to decrease in performance at the system-level.</p><p>There may be consumers that silently utilize the outputs of a model, referred to as <em>visibility debt</em>. Changes made to these models may likely impact consumers in ways that are unintended or poorly understood.</p><h4>Data dependencies</h4><p>Data features are often signals produced by other systems. Some of these signals may change behaviour over time, either due to improvements put in or because these signals themselves are the output of a ML system that updates itself over time.</p><p>ML models may also have data features that do not strongly contribute to the prediction intelligence and in some cases the features may be unnecessary. Having these features makes the system vulnerable to change. If there are legacy features, bundled features, incremental features or correlated features in the model, a re-examination is likely due.</p><h4>Direct and Hidden feedback loops</h4><p>A model may be feeding back into selection of its own training data. Any degradation in performance is also part of the feedback loop resulting in a vicious circle.</p><p>While a direct feedback loop described above is easier to investigate, hidden feedback loops — between systems that indirectly influence each other is tricky. Changes in one system may lead to undesirable effects in the other, often going unnoticed due to no knowledge of the dependencies.</p><h4>High-debt design patterns</h4><p>The prediction component of an ML system is only a fraction of the entire system — the rest is tooling or software code. Code that connects these two worlds together is referred to as <a href="https://blog.metaobject.com/2021/06/glue-dark-matter-of-software.html">Glue code</a>. It is only supporting code, has no functionality, it however can be hidden and massive — making testing and developing alternatives difficult.</p><p>As new data sources are added to a data ecosystem, the number of ingestion pipelines also increase. Without an architecture that looks at data collection holistically, adding new sources can quickly become messy. Add a model to the mix, now you have a complex and interdependent system of scrapes, joins and sampling steps. Managing these pipelines, detecting errors, recovering from failures are difficult, costly and make further innovation costlier.</p><p>Experimental code paths that are no longer needed, contribute to the growth of debt. These codepaths make backward compatibility difficult to implement. Testing interactions between these codepaths is hard and can cause undesired effects in production.</p><h4>Configuration of ML systems</h4><p>ML systems have numerous parameters for data, features, algorithms — these can be configured until we get the desired performance. Configurations are sensitive and the messiness of data can make modifying these configurations difficult and prone to errors. Incorrect configurations can prove costly in terms of loss of time, computing resources and worse — production issues.</p><h4>Changing external world</h4><p>An ML system often interacts with the external world — an unstable world. Data or the mapping between inputs and outputs an ML system relies on, could change. This implies a need for constant monitoring and testing of the system which creates ongoing maintenance costs.</p><h3>Measuring tech debt</h3><p>Although useful as a concept, there isn’t an appropriate metric to measure technical debt over time. However, there are some <a href="https://proceedings.neurips.cc/paper/2015/file/86df7dcfd896fcaf2674f757a2463eba-Paper.pdf">questions</a> we could ask that help in assessing the extent and nature of the debt.</p><h3>In conclusion</h3><p>Technical debt is an issue in both engineering and research. Solutions that offer tiny improvements at the cost of significant increase in system complexity or addition of 1–2 data sources without due diligence can lead to accumulation of debt.</p><p>ML tech debt is becoming increasingly important to address and the authors hope the paper encourages development in areas of maintainable ML. However, these improvements alone will not be sufficient. The authors note the need for a culture that supports recognizing, prioritizing and rewarding efforts that contribute to long term health of the ML systems.</p><h3>And finally…My thoughts on the ideas presented in the paper</h3><p>Not all sources of tech debt identified here actually contribute to it. <em>E.g.</em> Glue code is a great way to add abstraction and link layers together. Insufficient documentation or patchy designs is what allows Glue code to contribute to tech debt. Tech debt accumulates as a result of poor practices around these components or tools.</p><p>Costs in ML arising from changing external world (retraining, changing thresholds, testing etc) cannot be categorized as tech debt. These costs would present themselves irrespective of good practices — they are ‘out of control’ factors.</p><p>The paper however is a good overview of the factors that add to the overall ML cycle time and quality of the solutions.</p><h4>Further reading</h4><ol><li><a href="https://matthewmcateer.me/blog/machine-learning-technical-debt/">https://matthewmcateer.me/blog/machine-learning-technical-debt/</a></li><li><a href="https://blog.metaobject.com/2021/06/glue-dark-matter-of-software.html">https://blog.metaobject.com/2021/06/glue-dark-matter-of-software.html</a></li><li><a href="https://convincedcoder.com/2019/04/27/Software-architecture-boundaries/">https://convincedcoder.com/2019/04/27/Software-architecture-boundaries/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22c9124ebd5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Data Profiling?]]></title>
            <link>https://preetihemant.medium.com/what-is-data-profiling-77965639e879?source=rss-9549a5a87bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/77965639e879</guid>
            <category><![CDATA[short-read]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-mining]]></category>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Preeti Hemant]]></dc:creator>
            <pubDate>Sat, 05 Mar 2022 20:49:36 GMT</pubDate>
            <atom:updated>2022-03-06T13:37:22.538Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CL6UwVbX3L0Ki-6VmoI6gg.jpeg" /></figure><p><em>This is a short read, part of the series “Short Byte: Data Engineering” to introduce topics</em></p><p>Imagine this scenario…</p><p>You have started a new job as a Data Engineer. It’s an exciting time, new data, new tools, new people! While you are familiarizing yourself, your manager who is also very excited to have you look at their backlog, sends a request across.</p><p>“One of our stakeholders has been waiting on this for a long time — could you look into <em>this</em> job that’s resulting in a very large table in the data warehouse. The stakeholder would love an aggregated table with the data rolled up to a week.”</p><p>What is one of the first things you do?</p><p>Data Profiling!</p><p>It’s a systematic analysis of the data in a table to understand the structure and relationships — leading to conclusions on its usability.</p><p>The tools to extract this information are measures in descriptive statistics — min, max, mode, frequency, sum, count (You get the picture).<br>The next set of parameters to understand are data types, nulls, uniqueness which answer questions on missing data, duplicates and so on.</p><p>You could run this analysis on individual columns or do a cross-columns analysis.</p><p>At the end of this exercise, you should be able to make a few decisions</p><ol><li>Is this data able to support the analysis/reporting use case?</li><li>Do the data quality issues originate from the source or from the ETL jobs?</li><li>Are there inconsistencies in the structure of the table?</li></ol><p>So, this was a short introduction to the Data Profiling technique. For further reading, here are some links.</p><ol><li><a href="http://www.kimballgroup.com/wp-content/uploads/2012/05/DT59SurprisingValue.pdf">http://www.kimballgroup.com/wp-content/uploads/2012/05/DT59SurprisingValue.pdf</a></li><li><a href="https://www.researchgate.net/publication/262221918_Data_Profiling_Revisited">https://www.researchgate.net/publication/262221918_Data_Profiling_Revisited</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77965639e879" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modern Data Architecture Models]]></title>
            <link>https://preetihemant.medium.com/modern-data-architecture-models-69e90b725a05?source=rss-9549a5a87bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/69e90b725a05</guid>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-mesh]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Preeti Hemant]]></dc:creator>
            <pubDate>Wed, 23 Feb 2022 11:04:57 GMT</pubDate>
            <atom:updated>2022-02-23T11:04:57.131Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FZ27WZsuj2Wzr3YYAapYcw.png" /><figcaption>Data Architectures: Data Fabric and Data Mesh</figcaption></figure><p>Data has come a long way, starting from the 1640s when the term “data” had its first use, to the 21st century, where AI has become integral to everyday life.</p><p>As you can imagine, several software and hardware developments have co-evolved with data, bringing us to the here and now. One of the early challenges in data was ingesting it — how the data was to be used and the needs it served, weren’t nearly as interesting. The use cases were extremely narrow, mostly defaulting to basic business reporting. Today however, the focus has shifted from ingesting data to making it accessible in a way that would support a plethora of applications — parameters of accuracy, timeliness, reliability and trust at a massive scale, are paramount.</p><p>The challenges today in data — a consequence of its scale and speed — are in the areas of data discoverability, governance and reliability. The market is flooded with tools for every data problem conceivable. But, is there a guiding philosophy on how to bring these multitude of tools together, or how to stitch the different roles in an org with these tools?</p><p>What we need are data architectures that can provide directional guidance, allow for weighing trade-offs, are domain-agnostic and at the same time don’t put us at the risk of building something that quickly becomes obsolete.</p><p>Data architecture is a relatively new term. In fact, one of the first references to data architecture is the mention of Data mesh as a model in this <a href="https://www.infoq.com/articles/architecture-trends-2020/">article</a> in April, 2020.<br>So, is data mesh the only model or one of many? A search will show <strong><em>Data Fabric </em></strong>and <strong><em>Data Mesh</em></strong> as two popular candidates for data architecture models.</p><p>If you are looking for a short form introduction to the two models; Think of data fabric as a convergence of the modern data tools, stitched together to collect disparate data and move it within a system in a multi-hop manner. The objectives being, data discoverability, accessibility and management — for varied consumers and use cases. Data Mesh then, is the next step in the evolution of data architectures; brining in aspects of product management and decentralization to data.</p><p>Contrasting one with the other, Data fabric allows for ingestion of data from any source, for any use case — without gating it for quality during ingestion — trust in data, data integrity are addressed through layers that logically come after ingestion. Whereas, Data mesh places strong emphasis on data quality and data being treated as a product, even before it can become part of the data ecosystem.</p><p>Is one better than the other? Which one renders itself better to implementation? Here’s the long form of the two models.</p><h3>Data Fabric</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6D3mVOFIZVjU44Q33dZr2g.png" /><figcaption>Data Fabric Architecture</figcaption></figure><p>How should data move in a system, What characteristics should data retain and shed as it moves? In the Data fabric architecture, data follows a set of steps that determine its flow. The first step takes data through an integration phase. In the integration phase, data is ingested and then cleaned, transformed and loaded into storage. Then, there is the data quality phase where quality assessment is performed on the stored data. This data is then made available for different use cases through a combination of a data lake and a data warehouse, Typical use cases are BI, analytics and machine learning. Data governance policies are defined for the ingested data and a data catalog is used for discoverability.</p><p>The above functions are mostly centralized — a team of data specialists are designing and implementing the different stages in the fabric and also setting up policies and access controls.</p><p>Simply put, Data Fabric is how most data ecosystems move, store and access data today.</p><p>The beauty of data fabric as an architecture model is the flexibility it offers — not all components are a must, there are multiple vendors with off-the-shelf solutions that can collect and process data from <em>any</em> source and <em>any</em> use case.</p><h3>Data Mesh</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fNwAM7hqvddCwNZswxBsXA.png" /><figcaption>Data Mesh Architecture</figcaption></figure><p>Riding on the shift of software systems towards distributed domain design, data mesh is built on the principles of distributed architecture. There are three major components in a data mesh — <strong><em>Decentralized Domain ownership of data</em></strong> and the resulting <strong><em>Data products</em></strong>, <strong><em>Self-serve data infrastructure</em></strong> and <strong><em>Federated Governance</em></strong>.</p><p>Data Mesh has been designed to derive value from data at scale, in complex environments — complex not in data volume or velocity but in the number of use cases and the diversity of data sources. Since the complexity in not only technical, this architecture is modelled as a socio-technical construct.</p><p>Domain owned data is probably the most critical shift in going from Data Fabric to a Mesh. The idea is quite simple — Who better to own and provide data for use, than the teams generating the very data? In this paradigm, business domains decide what data is useful and should be exposed for different use cases within the org. If that is true, are these the teams also building methods and tools to serve this data? No — This requires skills that the domains are not expected to have and is instead delegated to the data infrastructure that builds a self-serve data platform.</p><p>Domains serve their data as a product — a product that meets well-defined standards that ensure interoperability with data from other domains. This data product lives as a node on the mesh. This is how the concept of ETLs is done with in the Data Mesh paradigm.</p><p>Decentralized domain data ownership is the highlight in this architecture. Ownership of design and deployment of the infrastructure that serves data, however is centralized — with the data platform team. Naturally, there arises a need for a body that balances these aspects, delineates decisions that lie localized with each domain from the decisions that are considered global. This group is the federated governance group that is carved out of both the data platform team and individual domains.</p><h3>Similarities between Data Fabric and Data Mesh</h3><p>Both the architecture models attempt to solve the problem of getting value from data at scale — while making data secure, accessible and easy to use and interpret.</p><h3>Where they differ…</h3><p>In a Data Fabric, a dataset gains value by being onboarded, catalogued and made available through a standardized set of governance rules. In a Data Mesh, a dataset gains value because of its usability as determined by its consumers (data scientists/data analysts).</p><p>In a Data fabric, there is standardization in how data is cleaned, labeled and checked for quality. In a Data Mesh, the decision on how data is to be made consumption ready i.e the pre-processing steps lies with the domains that own the data.</p><p>In a Data Fabric, the onus of understanding the data, interoperability of data sets generated by different services becomes a joint responsibility of the data engineering team and consumers of data — the analysts and the scientists. In a Data Mesh, it is the responsibility of the teams serving their data, to understand how the data could be used to generate value and design it in a way that meets the needs of the consumers.</p><h3>Finally, which one should you pick?</h3><p>Data Fabric addresses and recommends solutions to the fundamental questions on ingestion and use of data. Data Mesh as a model, can become a solution when the fabric hits a wall on issues around data ownership and data quality. Also, an important pre-requisite for the Data Mesh architecture to be successful is domain oriented software architecture and teams in an organization.</p><p>All things considered, it is a good idea for a data org to get started with the data fabric paradigm and adopt principles from data mesh as their data, their needs and the complexity of their data systems evolve.</p><h4>References:</h4><ol><li><a href="https://martinfowler.com/articles/data-mesh-principles.html">Data Mesh Principles and Logical Architecture</a></li><li><a href="https://engineering.hellofresh.com/hellofresh-journey-to-the-data-mesh-7fe590f26bda">HelloFresh Journey to the Data Mesh</a></li><li><a href="https://learning.oreilly.com/library/view/data-fabric-as/9781098105952/introduction01.html">Data Fabric as Modern Data Architecture</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69e90b725a05" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[12 Rules for Recruitment]]></title>
            <link>https://preetihemant.medium.com/12-rules-for-recruitment-c7853277cbe3?source=rss-9549a5a87bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7853277cbe3</guid>
            <category><![CDATA[recruitment]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[team]]></category>
            <dc:creator><![CDATA[Preeti Hemant]]></dc:creator>
            <pubDate>Sat, 08 Jan 2022 19:52:08 GMT</pubDate>
            <atom:updated>2022-01-08T20:29:03.530Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_EdHoOt21ulFl8txQwFrMQ.jpeg" /></figure><p>Hiring can be a hit or a miss. While there is no set formula to hiring good candidates, there are some practices that can be used set up a good hiring process!</p><p>Here are 12 “rules” that have helped me grow my teams.</p><ol><li><strong>Attract the right candidate</strong><br>One of the first steps to hiring is creating a pool of good candidates by gaining attention of suitable candidates. An accurate job description, an outline of the day-to-day work and expected outcomes at the three, six and twelve month mark, attract candidates with relevant experience and interests. During the recruiter screening phase, sharing details on the interview steps and the onboarding plan (created for new hires) further provide clarity and help keep candidates in the interview loop.</li><li><strong>Develop a bias towards a short interview loop</strong><br>A quick and efficient interview process is highly desirable, both by candidates and hiring teams. Lengthy and involved interviews tend to push candidates away. It also means a continued engagement from your team. While it is not easy to contain all aspects of evaluation in just a couple of rounds, it is possible to trim redundancy and tighten the process.</li><li><strong>Design the early rounds of interviews to test for well-roundedness</strong><br>With a bias to shorter interviews, it is critical that early rounds test for a variety of traits and skills. An interview that evaluates cultural fit through value-based questions gives a peek into a candidates’ thought processes and mindset.<br>Screening for the desired attitude and pre-dispositions early on, can be valuable.</li><li><strong>Define an ideal candidate profile</strong><br>Each one of the interview rounds help build a perceived profile of a candidate. Having a reference that defines what an ideal candidate looks like, helps keep the evaluation accurate, fair and unbiased.</li><li><strong>Recruit a diverse interview panel</strong><br>A hiring manager and the team may best understand the requirements of the role, but only a diverse panel can judge the many aspects that make someone successful at work.<br>Include technical and non-technical folks in the interviews.</li><li><strong>Provide a sneak peek into the team, org culture and upcoming projects</strong><br>Recruitment is always a two-way street — It is important that both the team and candidates see the role as a good fit. Candidates understand what it takes to flourish in your team, if the culture is a match and they see themselves succeeding in the team. I have found that sooner an applicant meets the hiring manager, the better it is to address and discuss team culture and goals.</li><li><strong>Involve the team and set up candidate-team interactions</strong><br>Getting the team to meet the candidate and vice versa ensures the candidate can validate the culture as described by the hiring manager, it is also an opportunity to build consensus on the candidate within the team. If your team is large with many members, then it is important that at least the people expected to interact the most with the potential hire meet before hand.</li><li><strong>Explain the role of the team and its importance in the org</strong><br>Everybody is looking to make an impact through their work. Let candidates have clarity on how their work can create an impact from within the team. For this, the role of your team in the org and how it contributes to business goals is an important detail to share and discuss.</li><li><strong>Explain Org Goals and Strategy</strong><br>Organizational strategy and business goals create excitement and help candidates picture their growth. It gives them a chance to evaluate if the org strategy aligns with their long term interests and to see a future in the organization.</li><li><strong>Provide details on tech stack, tech maturity and complexity of the team’s tasks</strong><br>Candidates rarely are an ideal fit. Most applicants have experience in a different set of processes and practices. Discussing these details allow both the hiring manager/team and the candidate to compare and contrast methods and approaches. It helps with identifying gaps. It also helps with assessing parts of their experience that can be leveraged and skills that are transferrable.</li><li><strong>Don’t rely solely on ATS</strong><br> There are too many examples of recruitment gone wrong due to the errors and biases introduced by automation. My favourite is the fiasco [AI assisted ATS](<a href="https://www.reuters.com/article/us-amazon-com-jobs-automation-insight/amazon-scraps-secret-ai-recruiting-tool-that-showed-bias-against-women-idUSKCN1MK08G">https://www.reuters.com/article/us-amazon-com-jobs-automation-insight/amazon-scraps-secret-ai-recruiting-tool-that-showed-bias-against-women-idUSKCN1MK08G</a>) created for Amazon.<br>Human-in-the-loop screening is time consuming, but in many cases worth the effort. In my experience, there are many variations in documents that candidates submit and screening is best not left to the ATS alone.</li><li><strong>Iterate on the 11 steps mentioned above</strong><br>The most important of all rules, perhaps, is the last one — Iterate on your hiring process and strategy. No two roles are the same and no two times are the same.<br>Adapt and adopt!</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7853277cbe3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hiring — Candidate Personas]]></title>
            <link>https://preetihemant.medium.com/hiring-candidate-personas-18f32982eab4?source=rss-9549a5a87bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/18f32982eab4</guid>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[recruiting]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Preeti Hemant]]></dc:creator>
            <pubDate>Thu, 02 Dec 2021 08:51:54 GMT</pubDate>
            <atom:updated>2021-12-02T09:40:17.646Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hiring — Candidate Personas</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g6v_wC9Zv7JX5GSdzetVbQ.png" /></figure><p>What candidate persona would add the most value to a team?</p><p>Borrowing from the game of football, a strategy of hiring <strong><em>squad members</em></strong><em> </em>and a <strong><em>playmaker</em></strong> is ideal for setting up and growing a team.<br>The two roles become critical in a team that is looking to balance sustenance activities along with innovation.</p><p>So, how does one identify these qualities in candidates and build them in team members? <br>First, let’s look at these two personas individually.</p><p><strong>Squad member</strong><br>Squad members perform in an individual capacity to deliver outputs on clearly defined requirements.</p><p>Their responsibilities mostly include</p><ul><li>Effectively delivering on individual tasks</li><li>Implementation of small projects</li></ul><p>Look for hiring indicators and values like Efficient delivery, Well rounded execution of tasks, Communication, Collaboration, Code fluency and Empathy</p><p>A squad member has</p><ul><li>The abilities to perform day to day individual tasks well (effectiveness is experience dependent)</li><li>Clear and effective communication</li><li>Dedication to continuously learn and improve</li><li>Problem solving abilities (Nice to have)</li><li>Good time management (Nice to have)</li><li>Self Management (comes with experience)</li></ul><p><strong>Playmaker (Expert member)</strong><br>These members are the creative force behind a team, they architect solutions and build them by engaging other squad members.</p><p>They can deliver on a diverse set of responsibilities like</p><ul><li>Building solutions that are modular, scalable and forward looking</li><li>Effectively delivering projects through a large team with significant complexity</li><li>Training/coaching/mentoring team members to deliver on smaller tasks that come together as a larger solution</li></ul><p>Look for hiring indicators and values like Forward looking, Strategic thinking, Critical thinking, Strong sense of ownership, Decision making, Passion for knowledge sharing, Creative problem solving, Team health, System Design, Empathy(very important)</p><p>A playmaker has</p><ul><li>The ability to work with nebulous asks and translate them into well defined smaller tasks</li><li>Proven track record in architecting solutions that solve problems and address shortcomings in the near, mid and long term</li><li>Understands the importance of coaching/mentoring squad members and facilitates knowledge distribution</li></ul><p>In the long term, they raise the bar for the entire team.</p><p><strong>Finally</strong>, the distribution of squad and expert members is dictated by the nature and scope of the work in a team, more specifically the ratio of sustenance to new and innovative work.</p><p>In most situations, I have found this is to be an effective hiring strategy, with case-specific tweaks.</p><p>What is yours? Please comment and share!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18f32982eab4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detecting Suspicious Accounts in Online Social Networks]]></title>
            <link>https://medium.com/data-science/detecting-suspicious-accounts-in-online-social-networks-48eabf4c75b6?source=rss-9549a5a87bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/48eabf4c75b6</guid>
            <category><![CDATA[fake-user]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[feature-engineering]]></category>
            <dc:creator><![CDATA[Preeti Hemant]]></dc:creator>
            <pubDate>Sun, 05 Apr 2020 21:02:49 GMT</pubDate>
            <atom:updated>2020-04-06T16:20:20.654Z</atom:updated>
            <content:encoded><![CDATA[<h4>Feature Based Classification approach</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m7lsL1uv3a3lZqmPnu8LLQ.jpeg" /><figcaption>Photo credit : <a href="https://www.bluecoat.com/">www.bluecoat.com/</a></figcaption></figure><p>Recent times have seen a surge in the reach and popularity of social media. Many social media platforms boast of subscribers in the millions. Like they say, with the good… comes the bad. Along with catching the fancy of genuine subscribers, online social networks have also caught the attention of bad actors. Bots and malicious accounts make up for a significant chunk of the user base. Fortunately, just like real users, fake users also leave trails in data enabling detection of these unwanted and potentially dangerous accounts.</p><p>In this post, I describe different fake user scenarios and how feature based classification techniques are employed in the detection of such users as explained in the research papers.</p><h3>Detecting individual fake accounts¹</h3><p>Humans in general behave differently from than fake or bot accounts. If this difference in behaviour can be captured in numerical or categorical attributes, then machine learning techniques can be applied to detect real from fake. This is the essence of feature based classification approaches to detect malicious accounts.</p><p>The ML process to detect real or fake status at the account level has 3 components.</p><ol><li><strong>Feature Design</strong></li></ol><p>Individual users and groups of users in a network can be described using two categories of features:</p><ul><li>Attributes present at or around registration time — Profile Features</li><li>Attributes that develop over time — Connections with other users in the network, activity or behaviour patterns</li></ul><p>Depending on the time sensitivity of detecting fake users, features engineered can come from one or both of the categories above. If it is crucial to limit the interaction of fake users with real users, approaches using only profile features are useful.</p><p>Research and surveys facilitate better feature design through increased user understanding.</p><p>2. <strong>Feature Selection</strong></p><p>In an OSN (Online Social Network), there may be a large number of attributes associated with an account — using all the features may become computationally expensive. There may be redundancy in some of the features or some may not be good predictors of user status.</p><p>Feature selection addresses some of these concerns. Wrapper and Filter methods are commonly used to include the best predictors. A weight is assigned to each attribute and the ones selected are those with weights above a certain threshold.</p><p>3. <strong>Model training and evaluation</strong></p><p>Some algorithms that perform well in classification tasks — Random Forest, Decision Tree, Support Vector Machine, Naive Bayes and Neural Network. Weighted attributes determined from the feature selection step can be applied to these algorithms. Metrics commonly used are Precision, Recall and F-score.</p><h4>Performance</h4><p>For the data set¹ used, Random Forest algorithm performs well considering F-score and Precision. As features included increase in weight, other algorithms also start performing better. When features with weight above 50% are used, SVM gives the best prediction considering Precision while Naive Bayes performs the best in F-score metric.</p><h3>Detecting clusters of fake accounts created by the same agent²</h3><p>In a large scale OSN, a bad actor can create dozens to thousands of malicious accounts. Making a prediction about each account, as most fake user detection techniques do, may not be scalable or efficient. In such a situation, Cluster level detection is desirable.</p><p>Legitimate clusters of users show diversity in profile patterns whereas groups of fake accounts created by a single actor show similar distribution and frequency of attributes. Hence, engineering features to describe the whole cluster allows for detection of clusters of fake accounts.</p><p>The main difference between methods predicting each user’s status and a group’s status is the level of features — individual or cluster.</p><p>The Classification based Machine Learning Pipeline that operates on clusters is described next. There are 3 major components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CM72ESZnKvDFJwVgBjRHew.png" /><figcaption>Cluster detection ML pipeline</figcaption></figure><ol><li><strong>Cluster Builder</strong></li></ol><p>This component, takes the raw list of accounts and builds clusters of accounts along with their raw features. There are 3 user specified parameters fed to this module a) minimum and maximum cluster size b) time span of accounts registered (e.g. last 24 hours), and c) clustering criteria (e.g. registration IP address).</p><p>The output of this component is a table of accounts, where each row represents one account and contains features like user’s name, organization, education and cluster identifier unique to the account’s cluster.</p><p>The cluster builder also uses the fake or real status of individual accounts to label clusters as fake or real. A threshold ‘x’ decides cluster labels — fewer than x percent fake accounts in the cluster, then it is a real cluster.</p><p>2.<strong> Profile Featurizer</strong></p><p>This module converts raw data for each cluster into a single numerical vector representing the cluster. It is implemented as a set of functions that extract information from the raw features. The features could be</p><p>a) Basic distribution features — Statistical measures for each column. Mean or quartiles for numerical features, number of unique values for categorial features</p><p>b) Pattern features — Mapping of user-generated text to a categorical space (e.g. patterns in email addresses)</p><p>c) Frequency features — Frequency of each feature value over all the individual accounts and their distribution over these frequencies. Clusters of legitimate accounts have some high-frequency and some low-frequency data, clusters of malicious accounts however, show less variance in their data frequencies.</p><p>3.<strong> Account Scorer</strong></p><p>This third component is to train the models and evaluate their performance on previously unseen data. The module is either run in the <em>training mode</em> or <em>evaluation mode. </em>The output is either a model description and evaluation metrics (training mode) or a cluster score (evaluation mode) which is the likelihood of the cluster composed of fake accounts.</p><h4>Performance and Evaluation Metrics</h4><p>Regression methods considered 1) Logistic Regression with L1 regularization 2) Support Vector Machine with a radial basis function kernel 3) Random Forest</p><p>When prediction performance as measured by <a href="https://machinelearningmastery.com/roc-curves-and-precision-recall-curves-for-classification-in-python/">AUC and recall at 95% precision</a> is considered, Random Forest performs the best. SVM with RBF kernel also has does well in terms of AUC value, but its recall@p95 is not as good as random forest. Logistic Regression has the worst performance, because it is a linear classifier and cannot model the non-linearity in patterns well.</p><h3>Considerations in feature based classification approaches</h3><p>User behaviour patterns are rarely fixed, they change and emerge differently over time, often as a response to factors inside and outside of the application. Attackers do the same! They modify their content and activity patterns to evade detection³. Feature based techniques are vulnerable to this and have to be diversified regularly to keep up with changing patterns.</p><p>High dimensional (very large number of features) data could lead to increased computational costs when using classifiers. This can be somewhat mitigated by using feature reduction techniques like Dimension reduction or Feature subset selection.</p><h3>Conclusion</h3><p>Feature based Classification method is a popular approach to detect bots and other malicious users. It scales well to large OSNs and gives good performance. Graph based techniques also are commonly employed to detect fake users, however feature based methods with profile attributes allow for early detection. There are many classification algorithms to iterate on and tune performance. A combination like SVM — NN³ could improve prediction even further. Overall, feature based classification provides a diverse toolbox that could be tweaked and applied to multiple scenarios.</p><p>[1]: Elazab, Ahmed &amp; Mahmood, Mahmood &amp; Hefny, Hesham. (2016). <em>Fake Account Detection in Twitter Based on Minimum Weighted Feature set</em>. International Journal of Computer, Electrical, Automation, Control and Information Engineering Vol:10, No:1, 2016.</p><p>[2]: Xiao, Cao &amp; Freeman, David &amp; Hwa, Theodore. (2015). <em>Detecting Clusters of Fake Accounts in Online Social Networks</em>. 91–101. 10.1145/2808769.2808779.</p><p>[3]: Khaled, Sarah &amp; El-Tazi, Neamat &amp; Mokhtar, Hoda. (2018). <em>Detecting Fake Accounts on Social Media</em>. 3672–3681. 10.1109/BigData.2018.8621913.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48eabf4c75b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/detecting-suspicious-accounts-in-online-social-networks-48eabf4c75b6">Detecting Suspicious Accounts in Online Social Networks</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reproducible Machine Learning]]></title>
            <link>https://medium.com/data-science/reproducible-machine-learning-cf1841606805?source=rss-9549a5a87bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf1841606805</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[reproducibility]]></category>
            <category><![CDATA[ml-pipeline]]></category>
            <category><![CDATA[reproducible-research]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Preeti Hemant]]></dc:creator>
            <pubDate>Mon, 17 Feb 2020 19:03:41 GMT</pubDate>
            <atom:updated>2020-04-07T02:51:11.599Z</atom:updated>
            <content:encoded><![CDATA[<h4>A step towards making ML research open and accessible</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IL2eR2U9D6cttbyioQw-8Q.jpeg" /><figcaption>Photo credit: <a href="https://pixabay.com/users/geralt-9301/">geralt</a> via <a href="https://pixabay.com/">Pixabay</a></figcaption></figure><p>The <a href="https://nips.cc/">NeurIPS</a> (Neural Information Processing Systems) 2019 conference marked the third year of their annual reproducibility challenge and the first time with a reproducibility chair in their program committee.</p><p><em>So, what is reproducibility in </em><a href="https://www.mathworks.com/discovery/machine-learning.html"><em>machine learning</em></a><em>?</em></p><p><strong>Reproducibility</strong> is the ability to be recreated or copied. In machine learning, reproducibility is being able to recreate a machine learning workflow to reach the <strong>same conclusions</strong> as the original work.</p><p><em>Why is this important?</em></p><p>An algorithm from new research without the reproducibility aspects can be difficult to investigate and implement. With our increasing dependency on ML and AI systems for decision making, integrating a model not fully understood can have unintended consequences.</p><p>Costs and budget constraints are another area impacted by reproducibility. Without the details on hardware, computational power, training data and more nuanced aspects like hyper-parameters tuning, adopting new algorithms can run into huge costs and considerable research effort, only to lead into inconclusive results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6emZk-V_BXbpSTLSBhEIow.png" /><figcaption>Reproducibility, a factor in building trustworthy ML (Photo by author)</figcaption></figure><p><em>How to identify if a ML model/research meets reproducibility standards?</em></p><p>This post explores two approaches proposed in research papers to establish reproducibility:</p><h4><a href="https://arxiv.org/pdf/1810.04570.pdf"><strong>Building a Reproducible Machine Learning Pipeline</strong></a> proposes a checklist to evaluate reproducible machine learning pipelines.</h4><p>The authors suggest missing information as the root cause of all reproducibility issues. Missing information could be intentional (trade secret) or unintentional (undisclosed assumption). They focus on methods to rectify the case of unintentional problems that hinder reproducibility.</p><p>Aspects impacting reproducibility and the solutions suggested are summarized here:</p><p><a href="https://hackernoon.com/what-is-training-data-really-adf0b97a116c"><strong>Training data</strong></a><strong>: </strong>A model produces different results for different training sets. One way of addressing this is to adopt a versioning system that records changes in the training data. However, this may not be practical for large data sets. Using data with documented timestamps is a workaround. The other option is to save hashes of data at regular intervals with documentation of the calculation methods.</p><p><a href="https://www.datarobot.com/wiki/feature/"><strong>Features</strong></a><strong> :</strong> Features can produce varying results based on how they are selected and generated. The steps taken in generating features should be tracked and version controlled. Other best practices include i) keeping individual feature generation code independent from one another ii) in case of a bug fix for a feature, creating a new feature.</p><p><a href="https://developers.google.com/machine-learning/crash-course/descending-into-ml/training-and-loss"><strong>Model training</strong></a><strong>: </strong>Documenting details of how the model was trained will ensure repeatable results. Feature transformations, order of features, hyperparameters and the method to select them, structure of the ensemble are among important model training details to be maintained.</p><p><strong>Software environment: </strong>Software versions and packages used also play a role in replicating results seen in the original ML model. An exact match in software used may be required. Hence, even if there have been software updates, it is best to use the version on which the model was originally trained.</p><h4><a href="https://arxiv.org/pdf/1909.06674.pdf"><strong>A Step Toward Quantifying Independently Reproducible Machine Learning Research</strong></a> tries to quantify factors of reproducibility in research papers.</h4><p>Here, the authors attempt to independently reproduce (without use of the original author’s code) two hundred and fifty five papers. They record attributes of the research papers and analyze the correlation between reproducibility and the attributes using <a href="https://en.wikipedia.org/wiki/Statistical_hypothesis_testing">statistical hypothesis testing</a> .</p><p>They use a total of 26 attributes per paper.</p><p>Unambiguous (require no explanation): <em>Number of Authors, the existence of an appendix (or supplementary material), the number of pages (including references, excluding any appendix), the number of references, the year the paper was published, the year first attempted to implement, the venue type (Book, Journal, Conference, Workshop, Tech-Report), as well as the specific publication venue (e.g., NeurIPS, ICML).</em></p><p>Mildly subjective : <em>Number of Tables,Number of Graphs/Plots, Number of Equations, Number of Proofs, Exact Compute Specified, Hyper-parameters Specified, Compute Needed, Data Available, PseudoCode.</em></p><p>Subjective : <em>Number of Conceptualization Figures, Uses Exemplar Toy Problem, Number of Other Figures, Rigor vs Empirical, Paper Readability, Algorithm Difficulty, Primary Topic, Looks Intimidating.</em></p><h4>Results and Significant relationship</h4><p>To determine significance, authors use non-parametric <a href="http://sphweb.bumc.bu.edu/otlt/mph-modules/bs/bs704_nonparametric/BS704_Nonparametric4.html">Mann–Whitney U test</a> for numeric features and <a href="https://www.bmj.com/about-bmj/resources-readers/publications/statistics-square-one/8-chi-squared-tests">Chi-squared test</a> with <a href="https://www.statisticshowto.datasciencecentral.com/what-is-the-continuity-correction-factor/">continuity correction</a> for categorical features.</p><p>Out of the twenty six attributes, ten are significantly correlated to reproducibility.</p><p>These are<em> Number of Tables, Equations, Compute Needed, Pseudo-Code, Hyper-parameters Specified, Readability, Rigor vs Empirical, Algorithm Difficulty, Primary Topic, Authors Reply.</em></p><p>The more information there is about the significant attributes, easier it is to reproduce a paper. However, <em>Number of equations </em>is negatively correlated to reproducibility. This does seem counter-intuitive and the authors offer two theories as to why: <em>1) having a larger number of equations makes the paper more difficult to read, hence more difficult to reproduce or 2) papers with more equations correspond to more complex and difficult algorithms, naturally being more difficult to reproduce.</em></p><h4>Study limitations</h4><p>Authors in this study select papers based on personal interests. The topics are not randomly picked, hence a <a href="https://en.wikipedia.org/wiki/Selection_bias">selection bias</a> is introduced. Also, the results are to be taken with the consideration that the authors are not experts on the topics they select.</p><p>Thirdly, there are many subjective attributes that are significant, and need developing objective measures related to the subjective factors. Eg — measuring paper readability or algorithm difficulty.</p><h3>Conclusion</h3><p>The first study takes a bottom-up approach while the second a top-down. Both together give an insight into the factors necessary for replicating machine learning pipelines and reproducing original results. As seen from the results of the two approaches, model hyper-parameters and computing resources/software environment are two important factors influencing reproducibility.</p><p>In general, it is important to record every step taken in building a model through documentation and version control. After all, many machine learning systems are black boxes and considering reproducibility makes the research open, accessible and reproducible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf1841606805" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/reproducible-machine-learning-cf1841606805">Reproducible Machine Learning</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>