<?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 Ugur Selim Ozen on Medium]]></title>
        <description><![CDATA[Stories by Ugur Selim Ozen on Medium]]></description>
        <link>https://medium.com/@ugurselimozen?source=rss-5fdaa68e1cd0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UzmlhTz0z-Qkc0nK2nOI4w.png</url>
            <title>Stories by Ugur Selim Ozen on Medium</title>
            <link>https://medium.com/@ugurselimozen?source=rss-5fdaa68e1cd0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:20:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ugurselimozen/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[Optimizing Machine Learning Pipelines: A Strategic Approach]]></title>
            <link>https://awstip.com/optimizing-machine-learning-pipelines-a-strategic-approach-0c9dc67849b7?source=rss-5fdaa68e1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c9dc67849b7</guid>
            <category><![CDATA[dataops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Ugur Selim Ozen]]></dc:creator>
            <pubDate>Fri, 25 Jul 2025 14:32:35 GMT</pubDate>
            <atom:updated>2025-07-25T14:32:35.599Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SDYQ20DixkZi9OD1x76FVA.jpeg" /><figcaption>Photo by<a href="https://unsplash.com/@cgower?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash"> Christopher Gower</a> on<a href="https://unsplash.com/photos/a-macbook-with-lines-of-code-on-its-screen-on-a-busy-desk-m_HRfLhgABo?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash"> Unsplash</a></figcaption></figure><p>Machine learning (ML) isn’t just some niche ability; it’s an integral engine that powers decision making, automation, and innovation across industries. According to <a href="https://www.intuition.com/machine-learnings-business-impact-by-the-numbers/">IDC, Precedence Research</a>, the AI/ML market is expected to reach $500 billion by 2024 and $1,597.1 billion by 2030.</p><p>When companies have spent a little too much on ML, they often face the pressing question: “How do we productionize and scale this thing?”</p><p>And in order to solve this, companies need to look beyond the standard development workflow and adopt more mature, scalable operational best practices; that’s where MLOps enters. This post discusses the journey that led us from machine learning (ML) pipelines to MLOps pipelines, and we explain how a strategic approach opens up efficiency, agility, and value for machine learning initiatives in the enterprise.</p><h3>What is Machine Learning?</h3><p>Machine learning is a branch of artificial intelligence that allows a system to learn from data and improve its performance over time without explicit programming. You can think of these algorithms as learning patterns in the data to make predictions or flag data.</p><p>Machine learning is essential in the fields of fraud detection, recommender systems, predictive maintenance, natural language processing, etc. But getting the right model is only part of the problem; scaling it to work across a variety of production environments is a wholly different matter.</p><h3>What is MLOps?</h3><p>MLOps (short for Machine Learning Operations) is the practice of combining machine learning, DevOps, and data engineering to make the end-to-end ML process smoother. MLOps brings more formal structure, automation, and monitoring to machine-learning projects and guarantees that the models are dependable, scalable, and reproducible in production.</p><p>Unlike machine learning as a one-off project, MLOps fosters a productization mindset for machine learning, where models are tracked, managed, updated, and governed much like code. Incorporating <a href="https://lakefs.io/mlops/mlops-best-practices/">best practices for MLOps</a> is a way to enable organizations to iterate fast, monitor performance, and keep faith in the model’s predictions when data, users, and business needs change.</p><h3>Main Steps in Machine Learning Pipelines</h3><p>A traditional machine learning process is a linear series of steps that transform raw data into actionable results. The main steps are:</p><ul><li><strong>Step 1 — Data Compilation: </strong>We collect data from many sources, including databases, APIs, and sensors.</li><li><strong>Step 2 — Data Preparation:</strong> This includes cleaning, transforming, and structuring data for use.</li><li><strong>Step 3 — Feature Development: </strong>This involves the creation and selection of relevant features to improve model performance.</li><li><strong>Step 4 — Model Training: </strong>This includes using machine learning algorithms to train the model with the training data.</li><li><strong>Step 5 — Model Assessment: </strong>This involves determining model accuracy and performance with test data.</li><li><strong>Step 6 — Model Release: </strong>This puts the model out into the live production setting.</li></ul><p>While these steps may appear to be in a set order, in reality, they are often iterative, contain feedback loops, and we see issues when we take models from prototype to production at scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*R7nnmQE2u7zQaCwH8mXd8Q.png" /><figcaption><a href="https://www.geeksforgeeks.org/machine-learning/mlops-pipeline-implementing-efficient-machine-learning-operations/">Source</a></figcaption></figure><h3>Main Steps in MLOps Techniques</h3><p>Adopting MLOps changes the game in terms of how we build and manage ML models. The key stages include:</p><ol><li>Version control of code, data, and models is implemented via tools such as Git, DVC, or MLflow.</li><li>Automatic testing, which includes unit and integration tests of ML components.</li><li>CI/CD in machine learning for creating automatic pipelines for model training, validation, and deployment.</li><li>Continuous monitoring of model performance, data drift, and system health post-deployment.</li><li>Governance and regulatory compliance, which includes access management, audit trails, and model documentation.</li><li>Retraining and feedback, using real-world data to retrain models and keep them relevant.</li></ol><p>MLOps not only improves productivity but also enhances system resilience and trust in deployed models.</p><h3>Key Differences Between ML and MLOps Pipelines</h3><p>In traditional machine learning, we see that models are the main focus: we collect data, train algorithms, and evaluate results. These pipelines tend to take place in isolated or sandboxed settings, which have little automation and do not pay great attention to long-term deployment or scale. These workflows are typically driven by individual data scientists, and once a model is out the door, there is little support for its ongoing operation.</p><p>MLOps pipelines are designed to support the entire machine learning lifecycle — from initial experimentation to production deployment and long-term maintenance. Also, they foster a collaborative environment between the data scientists, engineers, and operations teams. What we see in MLOps is a great degree of automation, which includes version control, <a href="https://www.ibm.com/think/topics/continuous-integration">continuous integration</a>, automated testing, and real-time monitoring. MLOps ensures models are not only performant, but also reproducible, traceable, and scalable in distributed environments. It embeds governance and compliance into the core of the workflow, making it ideal for enterprise-level deployment.</p><p>In the end, what we see is that while machine learning pipelines are focused on the creation of models, MLOps pipelines are focused on the management of those models as they evolve within an ecosystem of systems, teams, and regulatory requirements.</p><h3>Beyond MLOps: Supporting Practices for Enterprise-Grade ML Pipelines</h3><p>While MLOps introduces automation, monitoring, and governance into ML pipelines, scaling these systems in real-world production also requires complementary tools and strategies. These additional layers help ensure repeatability, consistency, compliance, and cost efficiency. Here are five essential practices that extend the foundation laid by MLOps:</p><h4>1. Feature Stores for Consistency Across Environments</h4><p>Feature stores centralize and version features used during training and inference. This avoids training–serving skew and enables:</p><ul><li>Reusability of validated feature definitions</li><li>Real-time and batch feature pipelines</li><li>Consistency across environments (dev, staging, production)</li><li>Integration with tools like Feast, Tecton, or Vertex AI Feature Store</li></ul><h4>2. Infrastructure as Code (IaC) for Reproducibility</h4><p>Managing ML infrastructure through code allows teams to version, scale, and replicate environments easily. IaC tools enable:</p><ul><li>Declarative provisioning of pipelines and compute (Terraform, Pulumi)</li><li>Reproducible training and deployment stacks (Kubeflow Pipelines, MLflow Projects)</li><li>Standardization across teams and regions</li><li>Simplified rollback and auditing of environment changes</li></ul><h4>3. Data &amp; Model Observability</h4><p>Real-time observability helps detect and respond to data anomalies and model drift. This improves system reliability and trust. Useful practices include:</p><ul><li>Monitoring feature distributions over time</li><li>Tracking model performance metrics post-deployment</li><li>Alerting on input schema changes or data quality issues</li><li>Tools to explore: Evidently, WhyLabs, Arize AI</li></ul><h4>4. Security &amp; Compliance</h4><p>Enterprise-grade pipelines require built-in security and policy enforcement to meet internal and external requirements. This includes:</p><ul><li>Access controls on models, datasets, and pipelines</li><li>Audit trails for all production ML activity</li><li>Encryption at rest and in transit</li><li>Data lineage tracking for explainability and compliance</li><li>Governance policies embedded in workflow engines</li></ul><h4>5. Cost Optimization Strategies</h4><p>As model training and retraining grow more frequent, resource efficiency becomes critical. Teams can reduce costs by:</p><ul><li>Using spot instances or preemptible VMs for non-critical jobs</li><li>Scaling infrastructure dynamically with Kubernetes or serverless ML engines</li><li>Caching intermediate pipeline outputs</li><li>Scheduling batch inference jobs during off-peak hours</li></ul><h3>Issues with the Implementation of MLOps in Machine Learning Projects</h3><p>Despite many benefits that MLOps practices have to offer, they still present some issues that organizations deal with:</p><h4>1. Tool Overload and Integration Issues</h4><p>In the age of many data versioning, pipeline orchestration, monitoring, and deployment tools at our disposal, teams still have a hard time creating a unified MLOps environment. They often struggle to choose the right tools and face challenges integrating different platforms into a cohesive MLOps environment.</p><h4>2. Cultural and Transformative Changes</h4><p>MLOps brings in a culture of operation for data science teams, which may not have DevOps in their wheelhouse. This requires a shift in culture toward greater collaboration, documentation, and automation out of the present ad-hoc approach.</p><h4>3. Data Anomaly and Model Erosion</h4><p>In adaptive settings, input data is in a constant state of change. Without proper monitoring and retraining models do not perform which in turn leads to inaccurate results and bad business performance.</p><h4>4. Lack of Uniformity in Standards</h4><p>In contrast to traditional software development, in machine learning, we do not have out-of-the-box standards for testing, documentation, or <a href="https://www.sciencedirect.com/topics/computer-science/performance-metric">performance metrics</a>. This, in turn, causes issues with model handoff and scaling across teams.</p><h4>5. Cost and Expense Control</h4><p>Continuous training of models, testing, and monitoring require large-scale computational resources. For many teams that have limited access to cloud resources or infrastructure, this is an issue.</p><h3>Conclusion</h3><p>As we see an increase in AI investments by companies today, they make it a strategic priority to fine-tune machine learning pipelines. While model accuracy is a factor, what makes the difference between a proof of concept in AI and production-scale solutions is the ability to put in place and scale models’ deployment, monitoring, and improvement across different environments.</p><p>Adoption of best practices in MLOps enables organizations to prepare for the future of their ML initiatives, reduce operational risks, and increase the ROI of AI projects. This creates a foundation where technical processes in AI/ML support business goals. In the future, success in AI will not come from standalone models or ad hoc scripts. It will come from robust, repeatable, and well-managed pipelines.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c9dc67849b7" width="1" height="1" alt=""><hr><p><a href="https://awstip.com/optimizing-machine-learning-pipelines-a-strategic-approach-0c9dc67849b7">Optimizing Machine Learning Pipelines: A Strategic Approach</a> was originally published in <a href="https://awstip.com/">AWS Tip</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Enterprise Applications with Implementation of LLM Frameworks]]></title>
            <link>https://blog.devops.dev/automating-enterprise-applications-with-implementation-of-llm-frameworks-75337f066d3e?source=rss-5fdaa68e1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/75337f066d3e</guid>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[llm-agent]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Ugur Selim Ozen]]></dc:creator>
            <pubDate>Wed, 09 Jul 2025 13:06:45 GMT</pubDate>
            <atom:updated>2025-07-09T13:06:45.310Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vHM4_awQmeMPxgmX3RtyRg.jpeg" /><figcaption>Photo by<a href="https://unsplash.com/@mjessier?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash"> Myriam Jessier</a> on<a href="https://unsplash.com/photos/person-using-macbook-pro-on-black-table-eveI7MOcSmw?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash"> Unsplash</a></figcaption></figure><p>Enterprise automation is undergoing a transformation with the integration of Large Language Models (LLMs), which bring advanced intelligence, automation, and conversational capabilities to enterprise applications. According to a <a href="https://www.k2view.com/genai-adoption-survey/">2024 survey by K2view</a>, 86% of organizations are opting to augment their LLMs using frameworks like Retrieval Augmented Generation (RAG) to meet specific business needs.</p><p>LLMs are already on the verge of revolutionizing the entire technology landscape — from customer service chatbots to intelligent document processing — by enabling organizations to automate complex workflows and enhance user experience. However, in order to effectively leverage this power at scale, enterprises must have a trustworthy method of implementing, deploying, and managing these models. This is where LLM frameworks enter the picture.</p><p>LLM frameworks deliver the structured tools and infrastructure necessary to convert strong language models into enterprise-ready applications. In this article, we discuss how these frameworks work, what benefits they provide to organizations, how to choose one, and the common challenges that enterprises face.</p><h3>What is an LLM?</h3><p>A Large Language Model (LLM) is a type of artificial intelligence trained on a large volume of text data, enabling it to comprehend, produce, and communicate in human language. LLMs, such as GPT-4, LLaMA, or Claude, have been trained to do a wide range of things, such as text summarization, question answering, translation, classification, and even coding assistance. In contrast to traditional models focused on narrow tasks, LLMs leverage deep neural networks and transformer architectures to generalize across a wide spectrum of applications, making them the best choice for enterprises wanting to scale AI-driven automation across the enterprise.</p><h3>How Does the LLM Framework Work?</h3><p>Modern frameworks such as LangChain, LlamaIndex, and Haystack are frequently coupled with <a href="https://lakefs.io/blog/rag-as-a-service/">RAG as a service</a>, improving an LLM’s response accuracy by retrieving relevant out-of-context data before the output generation. This approach enhances enterprise automation by ensuring outputs are based on up-to-date information, rather than relying solely on the static knowledge of a pre-trained model.</p><p>An LLM framework is both a blueprint and a toolbox for developing LLM-based applications. These frameworks cover different layers of the implementation stack as follows:</p><ul><li><strong>Model Orchestration:</strong> Orchestrating prompt pipelines, RAG, and fine-tuning.</li><li><strong>Data Management:</strong> Secure and Unified Connections between Structured and Unstructured Enterprise Data Sources.</li><li><strong>Infrastructure Scaling:</strong> Enable model deployment in the cloud, on-premise, or in a hybrid setup.</li><li><strong>Application Integration:</strong> Providing APIs, SDKs, or UI components around the model for enterprise integration.</li></ul><h3>Benefits of Using LLM Frameworks in Enterprise Applications</h3><p>LLM frameworks provide a number of strategic and operational advantages for enterprises:</p><h4>1. Accelerated Development</h4><p>Frameworks decrease the time needed to build and deploy LLM-based tools by offering modular components, reusable workflows, and abstraction layers that make coding and orchestration easily composable.</p><h4>2. Enterprise-grade Security</h4><p>Data privacy, access control, and logging are critical in business environments. Most frameworks offer built-in features to protect sensitive data and ensure compliance with policies (such as GDPR or HIPAA).</p><h4>3. Scalability and Performance</h4><p>With a framework, applications can scale more efficiently as usage increases. They typically support <a href="https://www.sciencedirect.com/topics/computer-science/data-parallelism">data parallelism</a> (load balancing), model sharding, GPU/TPU acceleration, etc., out of the box.</p><h4>4. Customizability</h4><p>Furthermore, because LLM frameworks are available via open APIs and adaptable plugin architectures, they can be customized to various business sectors like finance, health, legal, and retail, and can therefore generate more relevant and specific output at a higher return on investment.</p><h4>5. Cross-Platform Deployment</h4><p>Most frameworks also support multi-platform deployment (cloud, edge, or mobile), making them ideal for enterprise architecture requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CqnrJQdRcamfGaSWv4xlqw.png" /><figcaption><a href="https://www.datacamp.com/blog/what-is-retrieval-augmented-generation-rag">Source</a></figcaption></figure><h3>Applications for LLM Frameworks: How to Choose the Right Ones</h3><p>The right LLM framework to choose depends on your organization’s goals, infrastructure, and data maturity. Here’s how to decide whether to go there:</p><ul><li><strong>Assess Business Use Cases: </strong>Decide what you want the LLM to achieve, such as chatbots, summarizers, automated email responders, or report generators. Choose frameworks that are well-established and have been tried and tested in those specific use cases.</li><li><strong>Consider Open Source vs. Proprietary: </strong>Open-source frameworks (LangChain, LlamaIndex) provide flexibility and community support, while a proprietary platform may guarantee better SLAs, enterprise integrations, and support.</li><li><strong>Integration Capabilities: </strong>Make sure the framework integrates easily with your other systems, like databases, APIs, cloud platforms, and identity providers.</li><li><strong>RAG and Vector Search Support: </strong>External knowledge bases are necessary for modern LLM applications. Make sure the framework either provides RAG as a service, has excellent <a href="https://www.ibm.com/think/topics/vector-database">vector database</a> support, and good document retrieval capabilities.</li><li><strong>Ability to Customize and Fine-tune: </strong>Choose frameworks that provide you with the flexibility and capabilities for prompt engineering, chain-of-thought reasoning, and fine-tuning models based on domain-specific data.</li></ul><h3>Enterprise-Level Applications: The Challenges When Using LLM Frameworks</h3><p>Though promising, LLM frameworks are not without their challenges for enterprise adoption:</p><ol><li><strong>Risks Related to Data Privacy and Security: </strong>When attaching LLMs to sensitive business data, access needs to be tightly restricted by encryption standards, APIs, and user roles, as well. Compliance issues related to private and regulated data are prevalent and require careful attention.</li><li><strong>High Computational Cost: </strong>LLMs are resource-intensive. Inference with large models often requires expensive GPUs or cloud compute resources. For long-running deployments, cost optimization becomes a dominant pain point.</li><li><strong>Model Drift and Accuracy: </strong>As business data and language patterns change, the performance of a model could degrade over time. Models require regular retraining and monitoring to ensure they remain relevant and accurate.</li><li><strong>User Trust and Explainability: </strong>In critical decisions, stakeholders may not trust LLM-generated outputs. To enable transparency, enterprises require frameworks that provide explainability capabilities, logging, and audit trails.</li><li><strong>Lack of Skilled Talent: </strong>LLM frameworks can also take some time to learn how to use effectively. The hiring or upskilling of teams to handle framework management, prompt tuning, and infrastructure maintenance is typically a bottleneck.</li></ol><h3>Conclusion</h3><p>What this means is that enterprises are approaching automation, decision-making, and customer experience in a way that is being redefined by the implementation of LLM frameworks. These frameworks are the indispensable links between raw AI capability and tangible application in the world, allowing enterprises to deploy scalable, secure, and intelligent applications in record time.</p><p>From chatbot integrations to better data analytics to fully automating internal processes, using RAG as a service tool under modern frameworks will help your enterprise stay competitive in the future. If LLMs are here to stay, everyone heading towards them will benefit from making those early investments in robust frameworks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75337f066d3e" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/automating-enterprise-applications-with-implementation-of-llm-frameworks-75337f066d3e">Automating Enterprise Applications with Implementation of LLM Frameworks</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Manage Machine Learning Projects at Large Scale]]></title>
            <link>https://ugurselimozen.medium.com/how-to-manage-machine-learning-projects-at-large-scale-15406ccf364c?source=rss-5fdaa68e1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/15406ccf364c</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[dataops]]></category>
            <dc:creator><![CDATA[Ugur Selim Ozen]]></dc:creator>
            <pubDate>Tue, 08 Jul 2025 20:27:49 GMT</pubDate>
            <atom:updated>2025-07-08T20:27:49.823Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vHM4_awQmeMPxgmX3RtyRg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@mjessier?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Myriam Jessier</a> on <a href="https://unsplash.com/photos/person-using-macbook-pro-on-black-table-eveI7MOcSmw?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>To ensure that machine learning solutions are both sustainable and scalable, it is crucial to build a robust data architecture from the outset. This foundational framework supports the efficient handling, processing, and storage of data. Moreover, incorporating best practices from traditional software development processes into machine learning projects is essential.</p><h3>Enhancing Reliability Through MLOps and Best Practices</h3><p>MLOps best practices include rigorous testing, continuous integration, and deployment, which collectively enhance the reliability and maintainability of the solutions. Integrating solutions like <a href="https://lakefs.io/blog/mlops-tools/">MLOps tools</a> into projects enhances the efficient and streamlined management of end-to-end applications, encompassing everything from data collection to model estimation.</p><h3>What is the Machine Learning Project Lifecycle?</h3><p>Machine learning projects involve numerous steps in their end-to-end development process, beginning with data integration and concluding with model results. Each step plays a crucial role in the overall success of the project. The steps in a machine learning project can be detailed as follows:</p><h4>1. Data Acquisition</h4><p>Developing a machine learning model often requires training with various types of datasets. Keeping these datasets up to date is crucial for the model’s success. Therefore, building a robust data pipeline capable of automatically collecting data from different sources, such as databases, APIs, or user events, is essential. This solid foundation ensures the project’s long-term viability and effectiveness.</p><h4>2. Data Preprocessing</h4><p>In the real world, data from various sources often contains imperfections, such as null values or incorrect formats. Therefore, it is essential to preprocess the datasets to ensure high-quality data, which is crucial for the model’s success. High-quality data is a key factor in achieving accurate and reliable machine learning models.</p><h4>3. Feature Engineering</h4><p>The step that unveils the characteristics of the model is feature engineering. During this stage, a feature set is developed based on metrics that best describe the problem within the business domain. For instance, in developing a mobile phone price prediction model, the feature set should include metrics that significantly impact the phone’s price, such as brand, model, processor, and camera resolution.</p><h4>4. Training The Model</h4><p>The machine learning model is trained with the right algorithm, such as CatBoost, XGBoost Regression, or Isolation Forest using the feature set developed with the most significant metrics. The model must be periodically retrained with the current dataset to adapt to changing data behaviors in both <a href="https://www.geeksforgeeks.org/supervised-unsupervised-learning/">supervised and unsupervised learning</a> problems. This continuous retraining ensures that the model’s prediction accuracy remains at an optimal level.</p><h4>5. Evaluation and Optimization of the Model</h4><p>After training the machine learning model, success metrics like accuracy, F1-Score, or Mean Squared Error should be evaluated by making predictions during the testing phase. This evaluation allows for the application of <a href="https://www.analyticsvidhya.com/blog/2022/02/a-comprehensive-guide-on-hyperparameter-tuning-and-its-techniques/">hyperparameter tuning</a> to maximize the model’s performance and accuracy.</p><h4>6. The Model Deployment and Predictions</h4><p>After the hyperparameter tuning process, the best-performing machine learning model is deployed and made available in the production environment. For instance, the model can be deployed as a Dockerized application, allowing it to communicate with backend or mobile teams by providing prediction results via an API.</p><h3>Challenges and Best Practices for Scaling Machine Learning Projects</h3><p>Scaling machine learning projects from proof-of-concept to large-scale production involves unique challenges that can hinder performance and delay deployment if not managed properly. Some of the key challenges include:</p><h4>1. Handling Large Volumes of Data</h4><p><strong>Challenge: </strong>Data volume increases exponentially as projects scale.</p><p><strong>Best Practices:</strong></p><ul><li>Leverage cloud-based platforms for scalable storage (for example, AWS S3, Google Cloud Storage).</li><li>Use distributed computing frameworks (for example, Hadoop) for efficient data processing.</li></ul><h4>2. Model Generalization and Overfitting</h4><p><strong>Challenge:</strong> Models may overfit, performing well on training data but poorly on unseen data.</p><p><strong>Best Practices:</strong></p><ul><li>Apply regularization techniques.</li><li>Use cross-validation to assess model performance.</li><li>Ensure the dataset represents real-world conditions.</li></ul><h4>3. Infrastructure and Resource Management</h4><p><strong>Challenge: </strong>Significant computational resources are required for running models at scale.</p><p><strong>Best Practices:</strong></p><ul><li>Employ Kubernetes to manage containerized workloads.</li><li>Use automatic scaling based on demand to optimize resource usage.</li></ul><h4>4. Continuous Monitoring and Retraining</h4><p><strong>Challenge:</strong> Models must be monitored to detect performance degradation over time.</p><p><strong>Best Practices:</strong></p><ul><li>Implement automated monitoring tools.</li><li>Set up pipelines for continuous retraining with new data.</li></ul><h4>5. Ensuring Data Privacy and Compliance</h4><p><strong>Challenge:</strong> Working with large datasets, including sensitive information, raises privacy and compliance issues.</p><p><strong>Best Practices:</strong></p><ul><li>Implement encryption and anonymization techniques.</li><li>Enforce access control mechanisms.</li><li>Comply with regulations such as GDPR.</li></ul><h4>6. Cross-Functional Collaboration</h4><p><strong>Challenge:</strong> Increased complexity in collaboration across teams (for example, data science, engineering, business).</p><p><strong>Best Practices:</strong></p><ul><li>Adopt collaborative tools and agile methodologies.</li><li>Maintain clear communication channels to ensure alignment among stakeholders.</li></ul><p>By addressing these challenges through best practices, organizations can effectively scale their machine learning projects, ensuring they deliver maximum value and maintain operational efficiency.</p><h3>MLOps and Its Benefits for Machine Learning Projects</h3><p>MLOps is a methodology that manages all steps in machine learning projects from end to end. It combines traditional DevOps best practices with the data analytics domain perspective, integrating them into the entire workflow. This integration allows the system to operate in a fully automated manner, positively impacting sustainability at every stage of machine learning projects. Additionally, MLOps addresses several key issues, such as the following:</p><h4>1. Save The Model Dataset</h4><p>In machine learning projects, after the data acquisition, preprocessing, and feature engineering steps, the dataset is prepared for model training. However, in the real world, the statistical distribution or user behavior in the incoming data may change over time. Therefore, the dataset that feeds the model must be regularly updated, such as daily or weekly. In MLOps practices, these updated datasets can be versioned and stored, allowing for the previous dataset to be used to feed the model again if a negative situation arises in the production environment.</p><h4>2. Version the Trained Model</h4><p>As the dataset feeding the machine learning model is updated over time, the model can be retrained at regular intervals to achieve better results. However, the new model’s performance in the test environment may sometimes be worse than the previous version. Therefore, trained models are versioned and stored in formats such as Pickle or Joblib, allowing for previous versions to be reused if necessary.</p><h4>3. Automate the Machine Learning Pipeline</h4><p>The lifecycle of machine learning projects begins with data acquisition and concludes with model deployment. Beyond these steps, the lifecycle also encompasses additional processes such as versioning and storing the trained model and its dataset, as well as swiftly integrating rollback scenarios into the production environment. Automating the entire pipeline end-to-end using <a href="https://www.freecodecamp.org/news/what-is-ci-cd/">CI/CD</a> practices offers significant benefits, including workload reduction and the elimination of potential manual errors.</p><h3>Conclusion</h3><p>With advancements in technology, competition between businesses has intensified. Business decisions informed by machine learning can provide a competitive edge. Although the development processes of machine learning projects are complex, integrating MLOps practices can simplify the work of data teams.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15406ccf364c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Data Quality and Data Governance Play Different Roles in Data Products]]></title>
            <link>https://ugurselimozen.medium.com/how-data-quality-and-data-governance-play-different-roles-in-data-products-5c10e32f085c?source=rss-5fdaa68e1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c10e32f085c</guid>
            <category><![CDATA[product-data]]></category>
            <category><![CDATA[data-validation]]></category>
            <category><![CDATA[data-quality]]></category>
            <category><![CDATA[data-management]]></category>
            <category><![CDATA[data-governance]]></category>
            <dc:creator><![CDATA[Ugur Selim Ozen]]></dc:creator>
            <pubDate>Thu, 22 Aug 2024 21:05:27 GMT</pubDate>
            <atom:updated>2024-08-22T21:05:27.612Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qFYiBfIkPbmHTYLaiCrYKQ.jpeg" /><figcaption>Photo by<a href="https://unsplash.com/@jstrippa?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash"> James Harrison</a> on<a href="https://unsplash.com/photos/black-laptop-computer-turned-on-on-table-vpOeXr5wmR4?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash"> Unsplash</a></figcaption></figure><h3>Introduction</h3><p>In the rapidly evolving landscape of modern business, the imperative for digital transformation has never been more pronounced, driven by the relentless pressures of competition. Central to this transformational journey is the strategic utilization of data, which serves as a cornerstone for gaining insights and facilitating predictive analysis. In effect, data has assumed the role of a contemporary equivalent to gold, catalyzing substantial investments and sparking a widespread adoption of data analytics methodologies among businesses worldwide.</p><p>Nevertheless, this shift isn’t without its challenges. Developing end-to-end applications tailored to harness data for generating core insights and actionable findings can prove to be time-intensive and costly, contingent upon the approach taken in constructing data pipelines. These comprehensive data analytics applications, often referred to as data products within the data domain, demand meticulous design and implementation efforts.</p><p>This article aims to explore the intricate realm of data products, data quality, and data governance, highlighting their significance in contemporary data systems. Additionally, it will explore data quality vs data governance in data systems, elucidating their roles and contributions to the success of data-driven initiatives in today’s competitive landscape.</p><h3>What are Data Products?</h3><p>Within the domain of data analytics, processes are typically categorized into three distinct phases: data engineering, reporting, and machine learning. Data engineering involves ingesting raw data from diverse sources into a centralized repository such as a data lake or data warehouse. This phase involves executing ETL (extract, transform, and load) operations to refine the raw data and then inserting this processed data into analytical databases to facilitate subsequent analysis in machine learning or reporting phases.</p><p>In the reporting phase, the focus shifts to effectively visualizing the aggregated data using various business intelligence tools. This visualization process is crucial for uncovering key insights and facilitating better data-driven decision-making within the organization. By presenting the data clearly and intuitively, stakeholders can derive valuable insights to inform strategic initiatives and operational optimizations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QafkZQ9U1Rb7FYD9wj1tHA.png" /><figcaption><a href="https://www.datacamp.com/blog/what-mature-data-infrastructure-looks-like">Source</a></figcaption></figure><p>Conversely, the machine learning phase is centered around leveraging the aggregated data to develop <a href="https://www.techtarget.com/searchenterpriseai/definition/predictive-modeling">predictive models</a> and derive actionable insights. This involves tasks such as feature extraction, hypothesis formulation, model development, deployment to production environments, and ongoing monitoring to ensure data quality and workflow integrity. In essence, any software service or tool that orchestrates the end-to-end pipeline — from data ingestion and visualization to machine learning — is commonly referred to as a data product, serving as a pivotal component in modern data-driven enterprises.</p><p>At this stage, data products streamline and automate the entire process, making it more manageable while saving considerable time. Alongside these efficiencies, they offer a range of outputs, including raw data, processed-aggregated data, data as a machine learning service, and actionable insights.</p><h3>What is Data Quality?</h3><p>Data quality refers to the reliability, accuracy, consistency, and completeness of data within a dataset or system. It encompasses various aspects such as correctness, timeliness, relevance, and usability of the data. In simpler terms, data quality reflects how well the data represents the real-world entities or phenomena it is meant to describe. High-quality data is free from errors, inconsistencies, and biases, making it suitable for analysis, decision-making, and other purposes.</p><h3>The Mission of Data Quality in Data Products</h3><p>In the realm of data products, where decisions are often made based on insights derived from data, ensuring high data quality is paramount. The mission of data quality in data products is multifaceted. First and foremost, it acts as the foundation upon which all subsequent analyses, predictions, and decisions are built. Reliable data fosters trust among users and stakeholders, encourages the adoption and utilization of data products, and drives innovation, optimization, and compliance efforts. Moreover, high-quality data enables seamless integration, collaboration, and interoperability across different systems and platforms, maximizing the value derived from <a href="https://uk.indeed.com/career-advice/career-development/data-asset">data assets</a>.</p><h3>What is Data Governance?</h3><p>Data governance is the framework, policies, procedures, and practices that organizations implement to ensure the proper management, usage, quality, security, and compliance of their data assets. It involves defining roles, responsibilities, and decision-making processes related to data management, as well as establishing standards and guidelines for data collection, storage, processing, and sharing. Data governance aims to optimize the value of data assets while minimizing risks and ensuring alignment with organizational objectives and regulatory requirements.</p><h3>The Mission of Data Governance in Data Products</h3><p>In data products, data governance ensures accountability, transparency, and reliability in data management. It maintains data quality and integrity, fostering trust among users. Additionally, data governance facilitates compliance with regulations, enhances <a href="https://www.ibm.com/topics/data-security">data security</a>, and promotes efficient data utilization, driving organizational success through informed decision-making and collaboration.</p><p>By establishing clear roles, responsibilities, and standards, data governance provides a structured framework for managing data throughout its lifecycle. This framework mitigates errors and inconsistencies, ensuring data remains accurate and usable for analysis. Furthermore, data governance safeguards against data breaches and unauthorized access, while also enabling seamless integration and sharing of data across systems, optimizing its value for organizational objectives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*7m7RSh8jpNGRGTWzy7iQsw.png" /><figcaption><a href="https://blog.det.life/data-governance-simplified-a-data-engineers-perspective-d9c8b27058ef">Source</a></figcaption></figure><h3>Data Quality vs. Data Governance: A Brief Comparison</h3><p>Data quality focuses on the accuracy, completeness, and reliability of data, ensuring it meets intended use requirements. It guarantees that data is error-free and suitable for analysis and decision-making.</p><p>Data governance, meanwhile, establishes the framework, policies, and procedures for managing data effectively. It ensures data is managed securely, complies with regulations, and aligns with organizational goals.</p><p>In essence, data quality ensures the reliability of data, while data governance provides the structure and oversight to manage data effectively. Both are crucial for informed decision-making and organizational success.</p><h3>Conclusion</h3><p>In summary, data quality and data governance play distinct yet complementary roles in the realm of data products. While data quality ensures the reliability and accuracy of data, data governance provides the necessary framework and oversight for effective data management. Together, they form the foundation for informed decision-making, regulatory compliance, and organizational success in the data-driven era.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c10e32f085c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Revenue and Ad Spend Data Platform with Third-Party API Integrations]]></title>
            <link>https://medium.com/teknasyon-engineering/building-revenue-and-ad-spend-data-platform-with-third-party-api-integrations-fb87a2f2d965?source=rss-5fdaa68e1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb87a2f2d965</guid>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[data-management]]></category>
            <category><![CDATA[api-integration]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Ugur Selim Ozen]]></dc:creator>
            <pubDate>Thu, 30 May 2024 10:34:41 GMT</pubDate>
            <atom:updated>2024-05-30T10:34:41.493Z</atom:updated>
            <content:encoded><![CDATA[<p>Creating All-in-One Data Platform for API Data Management</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xim_XWoj3h1qmUfJnoC3VA.jpeg" /></figure><p>In today’s digital age, businesses rely heavily on data to drive their decisions, especially when it comes to tracking revenue and advertising spend. With various platforms and channels available for subscriptions, ad campaigns, and more, having a unified data management system is crucial. This article explores how to build an efficient data platform that integrates third-party APIs to collect and analyze revenue and ad spend data.</p><h4>The Challenge</h4><p>Managing data from multiple sources can be daunting. Each platform — whether it’s for subscription sales or ad campaigns — offers its own set of data, often in different formats. Manually consolidating this information is time-consuming and prone to errors. That’s where automation and integration come into play.</p><h4>The Solution</h4><p>Our approach involves using Python to develop integrations with various third-party APIs. These integrations are designed to fetch subscription sales revenues, ad revenues, and campaign spends data from multiple channels. The channels we focused on include:</p><ul><li><strong>AdMob</strong>: Ad revenue data</li><li><strong>iTunes</strong>: Subscription sales revenue data</li><li><strong>Google Play:</strong> Subscription sales revenue data</li><li><strong>Facebook:</strong> Campaign spends data</li><li><strong>GoogleAds:</strong> Campaign spends data</li><li><strong>Snapchat:</strong> Campaign spends data</li><li><strong>TikTok:</strong> Campaign spends data</li><li><strong>Apple Search Ads:</strong> Campaign spends data</li><li><strong>Appsflyer:</strong> Campaign data and attribution</li><li><strong>CurrencyLayer:</strong> Currency exchange rates</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_GKtPbedZxT3M1gRfjkIQ.jpeg" /><figcaption>End-to-end Architecture of Third-Party Data Management Platform, the Diagram by the Author</figcaption></figure><h4>Automation with Airflow</h4><p>To ensure data is collected consistently and timely, we scheduled these integration scripts using Airflow. Airflow DAGs (Directed Acyclic Graphs) allow us to manage workflows and ensure that our data collection processes run multiple times a day without manual intervention. This setup guarantees that our data is always up-to-date.</p><h4>Data Storage and Processing</h4><p>Once collected, the raw data is stored in Google BigQuery, a powerful data warehouse solution. BigQuery’s ability to handle large datasets and perform complex queries makes it ideal for our needs. After storing the raw data, we use scheduled queries in BigQuery to process and transform this data into a more usable form.</p><h4>Creating Datamarts</h4><p>Processed data is then written into datamarts — specialized storage areas that are optimized for specific types of queries and reports. These datamarts are crucial for generating various reports and analyses. The types of reports we can extract from these datamarts include:</p><ul><li>Estimated Subscription Sales Report</li><li>Monthly Subscription Finance Report</li><li>Ad Revenue Report</li><li>Channel-based Ad Spends Report: Breaking down ad spends by channels like Facebook, GoogleAds, Snapchat, TikTok, and Apple Search Ads</li><li>App-based customized revenue and cost dashboard</li><li>Subscription MRR (Monthly Recurring Revenue), Cashflow, or Retention Cohorts</li><li>LTV (Lifetime Value), ROAS (Return on Ad Spend), and CPA (Cost Per Acquisition) Analysis</li><li>App Install and Store Performance Analysis</li></ul><h4>Visualization and Analysis</h4><p>Finally, we use BI (Business Intelligence) tools like Superset and Looker to create dashboards from these datamarts. These dashboards provide clear and actionable insights into revenue, ad spends, and other key metrics, enabling stakeholders to make informed decisions.</p><h4>Benefits</h4><p>Building this data management platform offers several advantages:</p><ul><li><strong>Efficiency</strong>: Automating data collection and processing reduces manual work and minimizes errors.</li><li><strong>Timeliness</strong>: Regular updates ensure that decision-makers always have access to the latest data.</li><li><strong>Insights</strong>: Comprehensive reports and dashboards provide valuable insights into business performance.</li><li><strong>Scalability</strong>: The platform can easily be expanded to include additional data sources or new types of reports as needed.</li></ul><h4>Business Impact of the Data Platform</h4><p>Our data platform significantly benefits various teams within the organization:</p><ul><li><strong>Finance and Reporting : </strong>The finance team gains accurate and timely financial reports, such as the Monthly Subscription Finance Report and Estimated Subscription Sales Report, aiding in budgeting, forecasting, and financial analyses.</li><li><strong>Product : </strong>The product team utilizes insights from Subscription MRR, Cashflow, and Retention Cohorts to enhance user engagement and prioritize feature development based on user retention and lifetime value metrics.</li><li><strong>Marketing : </strong>Marketing teams leverage Channel-based Ad Spends Reports and metrics like LTV, ROAS, and CPA to optimize ad campaigns, allocate budgets efficiently, and improve marketing ROI.</li><li><strong>External Mobile App Teams : </strong>External mobile app teams access ad revenue and subscription sales data to refine their monetization strategies, understand market trends, and enhance app performance.</li></ul><h4>Conclusion</h4><p>Integrating third-party APIs and automating data processes can transform how businesses manage and analyze their revenue and ad spend data. By leveraging tools like Python, Airflow, BigQuery, and BI platforms, companies can build a robust data platform that delivers timely and accurate insights, driving better business decisions and improving overall performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb87a2f2d965" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teknasyon-engineering/building-revenue-and-ad-spend-data-platform-with-third-party-api-integrations-fb87a2f2d965">Building Revenue and Ad Spend Data Platform with Third-Party API Integrations</a> was originally published in <a href="https://medium.com/teknasyon-engineering">Teknasyon Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring the Role of Data Quality Tools in Data Management]]></title>
            <link>https://blog.devops.dev/exploring-the-role-of-data-quality-tools-in-data-management-2e07963bace4?source=rss-5fdaa68e1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e07963bace4</guid>
            <category><![CDATA[data-quality]]></category>
            <category><![CDATA[data-management]]></category>
            <category><![CDATA[data-architecture]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-infrastructure]]></category>
            <dc:creator><![CDATA[Ugur Selim Ozen]]></dc:creator>
            <pubDate>Wed, 27 Dec 2023 08:28:42 GMT</pubDate>
            <atom:updated>2024-01-11T18:07:32.151Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4LxSXKeWAR0w02iqNDw6Og.jpeg" /></figure><h3>Introduction</h3><p>In the evolving landscape of technology, internet accessibility is surging, leading to increased utilization of digital platforms. Data is incessantly generated through human interactions across various environments in this digital age. For companies aiming to align with modern trends, deriving valuable insights from this data is paramount. Hence, prioritizing data value creation becomes a strategic imperative for survival.</p><p>However, while obtaining actionable insights may seem straightforward, the foundation for success in data-driven decision-making hinges on working with high-quality data. Organizations must prioritize this criterion in their data infrastructure, integrating effective data quality tools across all systems for sustained operations.</p><p>In the realm of data management, implementing robust <a href="https://lakefs.io/data-quality/data-quality-tools">data quality tools</a> is indispensable for organizations navigating the data-driven landscape. These tools play a pivotal role in ensuring the accuracy, consistency, and reliability of the data flowing through various systems.</p><h3>What is Data Management?</h3><p>Data management is an end-to-end journey of data that begins with automated data pipelines and ends with high-quality and accurate data. According to the client’s expectations, these outputs can be evolved into many kinds of projects, such as reporting or data analytics. The extract-transform-load (ETL) step can be a milestone of this journey for the data community. The general data management systems should have the following workflows:</p><ul><li>Fetching the input data from different sources like databases, geolocation, sensor data, etc.</li><li>Applying quality tests to validate the input data for project needs.</li><li>Creating processed data for business requirements with transformation scripts.</li><li>Saving input or processed data on various data storages like relational databases or data lakes.</li><li>Utilizing featured data for different <a href="https://www.techtarget.com/searchbusinessanalytics/definition/business-intelligence-BI">business intelligence</a> or artificial intelligence projects.</li><li>Developing automation processes for all procedures to keep data up-to-date with specific timestamps.</li><li>Integrating alert notifications into the data flow pipelines to be aware of unexpected errors or bugs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*TlAV6-MGvd_FZpiTPRGSfQ.png" /></figure><h3>Why is Data Management Important?</h3><p>In the software development world, managing all data operations manually is challenging and can affect the quality of data that flows into the system. This situation may result in wrong business decisions and trigger significant losses.</p><p>With the help of a robust data management system, you can track real-time data quality metrics and take quick precautions to avoid adverse outcomes. In addition, building a data management system can decrease the workload by eliminating manual operations and providing flexibility during the project design phases.</p><p>For example, when you build an automated data pipeline that ingests campaign spending and app revenue data from third-party providers, this valuable data can feed into different kinds of projects like marketing mix modeling or fraud case detection. However, the developed projects can only gain business value if accurate and high-quality data is used.</p><h3>Data Quality Essentials</h3><p>Data quality must be one of the fundamentals in <a href="https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/scenarios/cloud-scale-analytics/architectures/what-is-data-product">data products</a> or data-driven solutions for achieving business goals in projects. Being aware of the power of data analytics by organizations is the key to producing high-quality data. Let’s understand some of these essential features:</p><h3>Accuracy</h3><p>When one asks, “What is the most important core characteristic to describe the quality of data?” — the answer is “accuracy.” For example, product teams want a data product that visualizes the daily, weekly, and monthly subscription sales to track the company’s growth. The data team developed this data product with automated data pipelines using internal sales events. However, the value of sales revenues that come from developed products does not match with store payment panels. In this case, you should optimize the difference between the two data sources and select the primary data source to be able to make the right business decisions.</p><h3>Validity</h3><p>Validity can be the most challenging step in both development and test environments for data teams. You may think data that is streamed into the infrastructure will always match the expected format. However, in the real world, the type and sensible value range of data can be quite different. For example, you can get the sales price as a minus or country information with null values. At this moment, <a href="https://glossary.airbyte.com/term/data-contract/">data contracts</a> enter the game. You can integrate the quality tests to pass all conditions agreed upon in the contract about the type and range of data.</p><h3>Timeliness</h3><p>In the technology age, digital products are like a 24x7 running market, with user activity data being produced simultaneously. Therefore, the data management systems should have the capability of serving real-time insights for stakeholders by fetching and processing the most up-to-date data into their architecture. For example, you need to track product sales every hour when you establish a new campaign in the e-commerce world. Gaining a competitive advantage in the business world is the most important outcome of this characteristic.</p><h3>The Role of Data Quality Tools in Data Management</h3><p>Data quality can be compared to the captain of the ship as it determines the direction you take and its outcomes. Integrating data quality tools into data infrastructures validates that the data flowing into your systems is high-quality by indicating it has core features such as accuracy, timeliness, and type format. With the help of this validation, data products and projects can guarantee a high success ratio by creating business value.</p><p>In addition to that, running all check tests that measure the quality of data can save money by preventing potential errors early on. Data quality tools also eliminate most of the manual operations from the job list and can lighten the workload of data teams. For instance, if a data pipeline experiences a breakdown due to a manual data type error, the data teams have to pause their daily tasks. This can also result in potential data loss and prolonged completion of daily responsibilities.</p><p>Leveraging data quality tools within data management systems can substantially boost the efficiency and innovation of data teams, all while reducing significant costs and mitigating errors.</p><h3>Conclusion</h3><p>In conclusion, envision data management systems as steadfast guides navigating through unexplored terrains, with data quality serving as the trusted map in their hands. This map dictates whether your journey is riddled with errors or proceeds seamlessly. To encapsulate, the integration of data quality tools into your data systems is paramount for the advantages outlined earlier and for achieving superior data management.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e07963bace4" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/exploring-the-role-of-data-quality-tools-in-data-management-2e07963bace4">Exploring the Role of Data Quality Tools in Data Management</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Importance of Monitoring and Debugging for Healthy Data Environments]]></title>
            <link>https://medium.com/geekculture/importance-of-monitoring-and-debugging-for-healthy-data-environments-827fb9b21a8?source=rss-5fdaa68e1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/827fb9b21a8</guid>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-monetization]]></category>
            <category><![CDATA[data-management]]></category>
            <dc:creator><![CDATA[Ugur Selim Ozen]]></dc:creator>
            <pubDate>Tue, 28 Jun 2022 15:03:15 GMT</pubDate>
            <atom:updated>2022-06-28T15:38:13.697Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qi-CBxXVLvzZ07zX" /><figcaption><strong>Photo by</strong><a href="https://unsplash.com/@lukechesser?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText"><strong> Luke Chesser</strong></a><strong> on</strong><a href="https://unsplash.com/s/photos/big-data?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText"><strong> Unsplash</strong></a></figcaption></figure><p>In today’s digital transformation era, data takes on the role of new oil. The number of companies and organizations that make decisions and take action based on data is increasing day by day. This situation brings with it both some advantages and disadvantages. At this stage, it is crucial that the data analyzed and interpreted are reliable and consistent in order to help you make the right data-driven decisions.</p><p>Manipulating datasets, correcting errors and bugs, or inserting extra data may require creating a new version due to the nature of data analytics. Therefore, data science projects and their architectures are conducted with data lifecycle management to be able to make progress seamless and easy to maintain.</p><p>Now, it is necessary to dive into the details of what data lifecycle management is and its basic steps of it to understand how it provides healthy data environments for data analytics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WFMnbYElMOaqPmrn" /><figcaption><a href="https://dynamics.folio3.com/blog/what-are-the-three-main-goals-of-data-lifecycle-management-dlm/"><strong>Data Lifecycle</strong></a></figcaption></figure><h3>What Is Data Lifecycle Management?</h3><p>Data lifecycle management can be described as a set of important steps that are applied in end-to-end machine learning (ML) projects. Data teams and similar organizations should reference these steps in every phase of projects to manage the whole process as successfully.</p><h3>Why Is Data Lifecycle Management Important?</h3><p>In the era of <a href="https://www.sas.com/en_us/insights/articles/big-data/artificial-intelligence-machine-learning-deep-learning-and-beyond.html"><strong>AI and ML</strong></a>, new technologies and open source tools leave their place for new ones constantly. Due to this rapid change, there is a need for a management system that can monitor every phase of the project.</p><p>The data lifecycle can play an important role as a management system by monitoring and debugging the whole system. It can assist you in testing acquired data reliability and consistency in every step of the ML project. Thus, it might be helpful to take a look at some of the key steps of data lifecycle management.</p><h3>Basic Steps of Data Lifecycle Management</h3><p>In general, all data lifecycle management can be divided into four main steps which are:</p><h4>Data Acquisition</h4><p>In the modern data infrastructure, new data flows from different data sources continuously, and the process of migrating this data to analytical databases is called data acquisition. As a reminder, analytical databases are generally used for data analytics projects in data teams. This phase can also be called data flow or data ingestion. This step is the first one but can be thought of as the most important one because it is vital to ensure that new data is constantly migrated for a consistent data environment. This can be done successfully by using <a href="https://segment.com/resources/data-strategy/what-is-data-orchestration/"><strong>data orchestration tools</strong></a>.</p><h4>Data Wrangling</h4><p>In real-life projects, most of the acquired data is very messy and needs transformation before it can be stored in analytical databases. All steps of data cleaning and preprocessing are called data wrangling. It is an important necessity for flowing healthy data into the analytics project’s environment. In short, the following preprocessing operations can be applied in this stage; handling null or duplicate values, creating data schema for fitting requirements, any aggregation operations for usage in analytics databases, and filtering data according to business demands.</p><h4>Data Validation</h4><p>As practiced in the traditional software development methodology, after the data migration and transformation steps are completed, all remaining operations must be verified in order to move on to the next steps. This validation process can be thought of as data quality testing for explaining it more clearly.</p><p>There are a variety of techniques that can be applied to the data validation process in practice, but it is smarter to utilize the <a href="https://www.redhat.com/en/topics/devops/what-is-ci-cd"><strong>CI/CD</strong></a> approach as a workflow type. By doing so, migrated data can pass unit, integration, and quality tests as part of the deployment process. This stage is the last step before the end-user. Therefore, everything needs to be seamless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*BOru--qJBPL4MlxW" /><figcaption><a href="https://www.researchgate.net/figure/The-health-data-lifecycle-within-the-architecture_fig4_325995742"><strong>Data Project Lifecycle</strong></a></figcaption></figure><h4>Data Monitoring and Debugging</h4><p>In the final stage, you should check all the changes and flow in the data environment to ensure all events that occur in the infrastructure are as expected. Data teams need to utilize monitoring and debugging methods in the pipeline to track these changes because any modification in raw data may negatively affect the results of the analytics projects.</p><p>For example, let’s say your data analytics team deploys its customer segmentation project into production. Basically, this project makes a real-time stream processing with the data that is ingested from your data environment. You start to track all the changes in a data environment and realize that some bugs and unwanted changes happened in the data via a <a href="https://www.oreilly.com/library/view/effective-monitoring-and/9781449333515/ch01.html"><strong>monitoring alert</strong></a>. Your customer segmentation project can mislead business or operation teams. This situation may result in the loss of your organization if you do not implement monitoring and debugging stages in the data environment.</p><h3>Conclusion</h3><p>Every corporation has been continuing to transform into its own digital version and this process will continue to cause the problems mentioned above most of the time. Therefore, you should focus on effective and protective solutions such as data monitoring and debugging for these problems.</p><p>I hope you found this article informative and that it helped you decide whether the data monitoring and debugging approach are important for your data infrastructure.</p><h3>My Previous Articles</h3><ul><li><a href="https://medium.com/i%CC%87stanbuldatascienceacademy/smartphone-price-prediction-with-regression-and-web-scraping-c4bd6d7c62c7"><em>Smartphone Price Prediction with Regression and Web Scraping</em></a></li><li><a href="https://medium.com/i%CC%87stanbuldatascienceacademy/football-player-ranking-with-classification-and-streamlit-app-9f60a9702b4"><em>Football Player Ranking with Classification and Streamlit App</em></a></li><li><a href="https://medium.com/geekculture/conducting-parallel-testing-in-regression-e162669caafc"><em>Conducting Parallel Testing in Regression</em></a></li><li><a href="https://medium.com/geekculture/implementing-version-control-for-big-data-projects-fb1a205bd3a0"><em>Implementing Version Control for Big Data Projects</em></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=827fb9b21a8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/importance-of-monitoring-and-debugging-for-healthy-data-environments-827fb9b21a8">Importance of Monitoring and Debugging for Healthy Data Environments</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Conducting Parallel Testing in Regression]]></title>
            <link>https://medium.com/geekculture/conducting-parallel-testing-in-regression-e162669caafc?source=rss-5fdaa68e1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e162669caafc</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[regression-testing]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[parallel-testing]]></category>
            <dc:creator><![CDATA[Ugur Selim Ozen]]></dc:creator>
            <pubDate>Sun, 17 Apr 2022 16:03:34 GMT</pubDate>
            <atom:updated>2022-04-17T16:03:34.184Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tCzkpgPGPbW6v1fL" /><figcaption><a href="https://unsplash.com/photos/WC6MJ0kRzGw"><strong>Photo</strong></a><strong> by </strong><a href="https://unsplash.com/photos/WC6MJ0kRzGw"><strong>David Travis</strong></a><strong> on Unsplash</strong></figcaption></figure><p>Today, there are many types of testing methods in the software development lifecycle, each having advantages and disadvantages in terms of efficiency, time-saving, cost, reliability, usability, and so on. In general, we can categorize software testing methods under four main headings: functional testing, non-functional testing, manual testing, and automated testing.</p><p>In this article, we will focus on what automated testing is, why it is useful, the main techniques in automated testing like regression testing, and some popular tools for automated testing.</p><h3>What Is Automated Testing?</h3><p>In general terms, <a href="https://www.guru99.com/automation-testing.html">automated testing</a> is testing software or programs utilizing some automation tools for many edge cases instead of a human-driven manual process of monitoring and validating a product. In the market, there are some popular tools that offer a wide range of services for automation testing like Selenium, WebDriver, Appium, and Cucumber.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*KSt6Yp37q_moVBP-" /><figcaption><strong>Figure 1: </strong><a href="https://techoptimals.com/how-to-increase-test-coverage-with-automation-testing/"><strong>Automation Testing Lifecycle</strong></a></figcaption></figure><h3>Why Is Automated Testing So Useful?</h3><p>The primary benefit of automated testing is that you can make sure that the <a href="https://www.atlassian.com/continuous-delivery/software-testing">CI/CD</a> requirements in your software development lifecycle are satisfied by automatizing the testing process. Therefore, its usage in DevOps teams has started to increase tremendously.</p><p>In addition to that, you can take advantage of automated tools in your project to enjoy faster times to market, faster deployment opportunities, more efficient workflows, higher volume of tests, stress testing, better accuracy, better insights, continuous quality, cost and time efficiency, and faster bug detection.</p><h3>Regression Testing</h3><h4>What Is Regression Testing?</h4><p>Regression testing is a type of software testing performed to check all the changes made in the application environment, the features newly added to the application, the existing problems after the previous errors were corrected, and new errors that have resulted from the new features.</p><p>The tests that are performed again after the necessary changes and fixes are made in the application environments are called regression tests. This ensures that the problems identified in previous tests are fixed and that newly added features work smoothly and no new bugs occur.</p><h4>Why Should We Apply to Regression Testing?</h4><p>Regression tests are very important because most software nowadays is developed using an <a href="https://www.indeed.com/career-advice/career-development/iterative-process">iterative development process</a>. In the iterative development process, short loops are used by adding some new functions in each loop. In this scenario, it makes a lot of sense to run regression testing in each loop to make sure that newly added functions don’t break existing ones.</p><p>The effects of software errors or regressions (poor performance), functional and non-functional improvements, patches made to some areas of the system, and configuration changes can be monitored through regression testing.</p><h4>Automated Regression Testing</h4><p>Automated regression testing is a technique that removes all human-driven steps from typical regression testing and utilizes automation-based tools in software testing. Automated regression testing principally automates the workflow, plan, scripts, and other stages inside the <a href="https://blog.qasource.com/resources/what-is-manual-regression-testing-how-can-you-optimize-your-test-cases">manual regression testing</a> cycle.</p><p>After automated regression testing, you can be sure that the software has been executed correctly in the update duration and that it supports all other services that complete the main software functionality.</p><p>Additionally, automated regression testing offers features like support across various platforms, risk-based regression, time-saving in execution through parallel testing, faster functionality coverage with unit and API tests, performance impact analysis, and continuous testing methodologies.</p><h3>Parallel Testing in Regression</h3><h4>What Is Parallel Testing?</h4><p>In general, we can classify software testing under two main concepts in terms of working methodology: parallel testing and serial testing.</p><p>Parallel testing is an automation testing technique that can execute many edge test cases with different combinations of electronic devices such as computers or mobile phones and web browsers at the same time.</p><p>For example, if you have 10 edge test cases and one of them runs in 20 minutes, you will have to wait for a total of 200 minutes for all cases. However, if you use parallel testing in 5 parallel points then it will complete all processes in 40 minutes. As seen from this example, this technique can save you a significant amount of time. On the other hand, it may require many systems or cloud resources for this testing operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*14YAiDRpch3DXT8X" /><figcaption><strong>Figure 2: </strong><a href="https://bitbar.com/blog/parallel-testing-what-it-is-and-why-you-should-adopt-it/"><strong>Parallel Testing Methodology</strong></a></figcaption></figure><h4>Benefits of Parallel Testing</h4><p>Having understood what parallel testing entails, we can list some important benefits of it. Parallel testing saves time, is cost-effective, offers better coverage, optimizes the CI/CD stage, and enhances testing.</p><h4>How Can We Conduct Parallel Testing in Regression Testing?</h4><p>There are many robust and effective tools in the market that you can utilize for parallel testing in automated regression when it comes to the application stage. I personally prefer using free tools for this, especially when trying a tool for the first time, as it helps me understand the full scope of its usability before committing to it.</p><p>An example of a free trial product is <a href="https://www.perfecto.io/">Perfecto</a>: their tools usually have the required features for the quality testing stage of my project. They offer support for popular browser/OS platform combinations and real Android and iOS devices, dedicated Virtual Machines for cross-browser testing, instant access availability to real mobile devices, seamless integrations with DevOps tools and automation frameworks, and testing reports, and analysis.</p><h3>Conclusion</h3><p>Every product needs enhancements and updates. Therefore, there will always be a need for software testing tools. And then if you can automate a necessary process, you should always go for it. The products that utilize automation tools will always benefit from the automation process.</p><p>I hope you found this article informative and that it helped you decide whether automating parallel regression testing is the best solution for your use case.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e162669caafc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/conducting-parallel-testing-in-regression-e162669caafc">Conducting Parallel Testing in Regression</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Holistic Approach to Performance Evaluation Metrics for Clustering]]></title>
            <link>https://medium.com/teknasyon-engineering/a-holistic-approach-to-performance-evaluation-metrics-for-clustering-ebda909a3bbd?source=rss-5fdaa68e1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebda909a3bbd</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[twin-sample]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Ugur Selim Ozen]]></dc:creator>
            <pubDate>Thu, 24 Mar 2022 12:14:58 GMT</pubDate>
            <atom:updated>2022-03-24T12:14:58.368Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A_xKKGc5Tgjon9N4TYyxrw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In this article, I will cover the evaluation metrics of unsupervised learning including twin-sample validation for comparing the performance of built unsupervised machine learning model.</p><h3>Definition of Unsupervised Learning</h3><p>We can categorize machine learning problems under three main topics as supervised learning, unsupervised learning, and semi-supervised learning from a general perspective. Unsupervised learning is specifically a method that utilizes machine learning algorithms to analyze and cluster unlabeled datasets. In this method, algorithms can discover hidden patterns and group similar records without the need for additional information. Its capability to find similarities and differences from datasets makes it the ideal solution for some real-life problems such as customer segmentation, spam detection, recommendation engine, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vbzU4E7o4q18iUVrlMOaKw.png" /><figcaption><strong>Figure 1: Supervised vs Unsupervised Learning</strong></figcaption></figure><p><em>(The sample dataset that will be mentioned below was created and used by using real spam data.)</em></p><h3>Unsupervised Learning Method — Clustering</h3><p>Clustering is the most popular unsupervised learning method that divides the population or data points into several groups. It is a collection of objects based on similarity and dissimilarity between them.</p><p>It has many algorithms and each clustering algorithm comes in two variants: a class, that implements the fit method to learn the clusters on train data, and a function, that, given train data, returns an array of integer labels corresponding to the different clusters. The labels over data can be found in the labels_attribute for.</p><p><strong>→ Clustering: </strong>new points may be assigned to a cluster and could also be outliers.</p><p><strong>→ Partitioning: </strong>new points must be assigned to an existing cluster, not a new cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RNMKrtvEYmBFbIpj5Z8_TQ.png" /><figcaption><strong>Figure 2: Classification vs Clustering</strong></figcaption></figure><h3>Clustering Algorithm — KMeans</h3><p>K-means is a partitioning algorithm that divides the data into <strong><em>k</em></strong> clusters. Data points are assigned to a cluster based on metrics such as Euclidean distance to nearest cluster centroid. We can define the workflow of the algorithm as follows;</p><ol><li>Choose <strong><em>k</em></strong> centroids</li><li>Assign points to cluster based on nearest centroid</li><li>Recompute centroids</li><li>Repeat steps 2 and 3 until the algorithm converges</li></ol><h3>Finding Optimum k Value for the Clustering Algorithm</h3><p>The K-means algorithm aims to choose centroids that minimize the inertia, or within-cluster sum-of-squares criterion by locating points close to cluster centroids and we can say that it is good clustering. However, we need to choose the optimum k value for doing this. There are many ways but other methods will be covered in the next section but one is given as follow;</p><h4>Elbow Method</h4><p>Elbow Method is an empirical method to find the optimal number of clusters for a dataset. In this method, we pick a range of candidate values of k, then apply K-Means clustering using each of the values of k. Find the average distance of each point in a cluster to its centroid, and represent it in a plot. Pick the value of k, where the average distance falls suddenly.</p><p>You can see the example implementation for the Elbow Method below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2fc79de8985b4e68b81aa0c1f4754c42/href">https://medium.com/media/2fc79de8985b4e68b81aa0c1f4754c42/href</a></iframe><p>In this code snippet, we evaluated inertia values of cluster centroids for the elbow method with kmeans_model.inertia_. A good model is one with low inertia and a low number of clusters (<strong><em>k</em></strong>). However, this is a tradeoff because as <strong><em>k</em></strong> increases, inertia decreases.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/01ab42ecd548068174f2b08f1198dab3/href">https://medium.com/media/01ab42ecd548068174f2b08f1198dab3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BQtFkjkyPHphLxz-EAJbsw.png" /><figcaption><strong>Figure 3: Elbow method result</strong></figcaption></figure><p>As seen from Figure 3, we can choose 3 as the optimum value of k.</p><h3>Internal Validation</h3><p>Most of the methods of internal validation combine cohesion within each cluster and separation between different clusters to estimate the validation score. The approach is to compute the validation score of each cluster and then combine them in a weighted manner to arrive at the final score for the set of clusters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*izlKdjDMZiT1AnhDfm_kvg.png" /><figcaption><strong>Figure 4: Cohesion vs Separation</strong></figcaption></figure><p>In practice, instead of dealing with two metrics which are cohesion and separation, several measures are available which combine both of the above into a single measure. Some important examples of such measures are:</p><h4>Calisnki-Harabasz Index</h4><p>The Calinski-Harabasz index — also known as the Variance Ratio Criterion — can be used to evaluate the model. A higher Calinski-Harabasz score relates to a model with better-defined clusters.</p><p>The index is the ratio of the sum of between-clusters dispersion and the sum of within-cluster dispersion for all clusters. Dispersion is defined as the sum of distances squared here. The Calinski-Harabasz index visualization is as follow;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d95d4169d3b09350e71e7f98b68c7ec8/href">https://medium.com/media/d95d4169d3b09350e71e7f98b68c7ec8/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MojbscqGSb6RHpixUBBWwQ.png" /><figcaption><strong>Figure 5: Calinski-Harabasz Index result</strong></figcaption></figure><h4>Davies-Bouldin Index</h4><p>In this score, a lower Davies-Bouldin index relates to a model with better separation between the clusters. This index indicates the average ‘similarity’ between clusters. The similarity is a measure that compares the distance between clusters with the size of the clusters themselves.</p><p>Zero is the lowest possible score. Values closer to zero perform a better partition. The Davies-Bouldin index visualization is as follow;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6bee9899d9f6d0fac57f38bf80e648e8/href">https://medium.com/media/6bee9899d9f6d0fac57f38bf80e648e8/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BeTkEfdFo-482cIJhCCJDA.png" /><figcaption><strong>Figure 6: Davies-Bouldin Index result</strong></figcaption></figure><h4>Silhouette Coefficient</h4><p>The Silhouette Coefficient is an example of such an evaluation. The higher score relates to a model with better-defined clusters. It is defined for each sample and is composed of two scores:</p><ul><li><strong>a</strong>: The mean distance between a sample and all other points in the same class.</li><li><strong>b</strong>: The mean distance between a sample and all other points in the next nearest cluster.</li></ul><p>The Silhouette Coefficient <em>s</em> for a single sample is then given as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*ngsJtoLXX_w-vtqsiqJ5jA.png" /></figure><p>The Silhouette score for a set of samples is given as the mean of the Silhouette Coefficient for each sample. The implementation and visualization of it as given below;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eac0ee8c86ba6afcdc59c844fbe1c56e/href">https://medium.com/media/eac0ee8c86ba6afcdc59c844fbe1c56e/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rISvSXUilMN5MZWBBplteg.png" /><figcaption><strong>Figure 7: Silhouette Score result</strong></figcaption></figure><p>In this sample model, the silhouette analysis is used to choose an optimal value for n_clusters. Figure 7 &#39;s plot shows that the n_clusters value of 7 is a good pick for the sample dataset due to upper average silhouette scores with every cluster.</p><h3>Twin-Sample Validation</h3><p>In this section, we explain how we can further validate the results of our unsupervised learning model in the absence of true cluster labels. In this section, we will validate the results that we have already performed the clustering method, K-means, and we got some results. The approach consists of the following four steps.</p><h4>Creating a Twin-Sample Dataset</h4><p>This is the most important step in the process of performing the twin-sample validation. The key idea is to create a sample of records that are expected to show similar behavior as the sample dataset. This is similar to a validation set for supervised learning. However, there are some additional constraints. Firstly, the data you have should come from the same distribution as in the sample dataset. Lastly, it should sufficiently cover most of the patterns observed in the training set. To handle these constraints, we can apply a statistical test such as Kolmogorov-Smirnov(KS) as follow;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c95b87c3abb7a4452403ff810b672033/href">https://medium.com/media/c95b87c3abb7a4452403ff810b672033/href</a></iframe><p>It gives as following test results;</p><pre>answered_ratio : KstestResult(statistic=0.0048444194043421596, pvalue=0.7030589537367535)</pre><pre>avg_duration : KstestResult(statistic=0.0037275378487697797, pvalue=0.9300070148409181)</pre><p>→ If the statistic value is so small and the p-value is so high, we cannot reject the hypothesis that our sample dataset and extracted sample have the same distribution as statistically.</p><h4>Performing Unsupervised Learning on Twin-Sample</h4><p>Now that we have our twin sample, the next step is to perform cluster learning on it. For this, we will use the same parameter that we used on our sample dataset. This includes the number of clusters, distance metric, etc. We will get a set of cluster labels as the output of this step. We will denote this output set as S. The idea here is that we should get similar results on our twin-sample set as we got on our sample dataset. This similarity will be measured in the subsequent steps. Implementation as given below;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f5b8581117f97ea3cbaaff3b1db56bad/href">https://medium.com/media/f5b8581117f97ea3cbaaff3b1db56bad/href</a></iframe><h4>Importing Results for Twin-Sample from the Training Set</h4><p>In this step, we will compute another set of cluster labels on the twin sample. This time we will use the results of clustering performed on the sample dataset. For each point in twin-sample, we will perform the following two steps:</p><ul><li>Identify its nearest neighbor in the sample dataset. Please make sure that the distance metric should be same as the one used in the clustering process.</li><li>Import the cluster label of its nearest neighbor.</li></ul><p>The python implementation is as follow;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b8192ee9cc422c4e35e802180e505ce/href">https://medium.com/media/2b8192ee9cc422c4e35e802180e505ce/href</a></iframe><p>results dataframe gives us S and P sets which are predictions with the Kmeans model and true values with NearestNeighbors model respectively.</p><h4>Calculating Similarity between Two Sets Results</h4><p>Now that we have two sets of cluster labels, S and P, for twin-sample, we can compute their similarity by using any supervised learning metrics such as F1-score, Jaccard Similarity, etc.</p><p>A set of clusters having high similarity with its twin-sample is considered good. Evaluation of similarity was implemented as given below;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/16b20dd08eba672c84a7fc5fb61cf38f/href">https://medium.com/media/16b20dd08eba672c84a7fc5fb61cf38f/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ReIk2yAn-j39VTONGjCM8g.png" /><figcaption><strong>Figure 8: Twin-Sample Validation result</strong></figcaption></figure><h3>Conclusion</h3><ul><li>Twin sample validation can be used to validate results of unsupervised learning.</li><li>It should be used in combination with internal validation.</li><li>It can prove to be highly useful in the case of time-series data where we want to ensure that our results remain the same across time.</li><li>In this article, we have used k-means clustering as an example to explain the process. But it is a general approach and can be adopted for any unsupervised learning algorithm such as Isolation Forest or DBSCAN.</li></ul><h3>My Previous Articles</h3><ul><li><a href="https://medium.com/i%CC%87stanbuldatascienceacademy/smartphone-price-prediction-with-regression-and-web-scraping-c4bd6d7c62c7"><em>Smartphone Price Prediction with Regression and Web Scraping</em></a></li><li><a href="https://medium.com/i%CC%87stanbuldatascienceacademy/football-player-ranking-with-classification-and-streamlit-app-9f60a9702b4"><em>Football Player Ranking with Classification and Streamlit App</em></a></li><li><a href="https://medium.com/geekculture/introduction-to-the-types-of-testing-methods-67b151410027"><em>Introduction to The Types of Testing Methods</em></a></li></ul><h3>References and Useful Resources</h3><ul><li><a href="https://scikit-learn.org/stable/auto_examples/cluster/plot_kmeans_silhouette_analysis.html"><em>Selecting the number of clusters with silhouette analysis on KMeans clustering</em></a></li><li><a href="https://scikit-learn.org/stable/modules/clustering.html#clustering-performance-evaluation"><em>Clustering performance evaluation</em></a></li><li><a href="https://www.guavus.com/technical-blog/unsupervised-machine-learning-validation-techniques/"><em>Unsupervised Machine Learning: Validation Techniques</em></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebda909a3bbd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teknasyon-engineering/a-holistic-approach-to-performance-evaluation-metrics-for-clustering-ebda909a3bbd">A Holistic Approach to Performance Evaluation Metrics for Clustering</a> was originally published in <a href="https://medium.com/teknasyon-engineering">Teknasyon Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Football Player Ranking with Classification and Streamlit App]]></title>
            <link>https://medium.com/i%CC%87stanbuldatascienceacademy/football-player-ranking-with-classification-and-streamlit-app-9f60a9702b4?source=rss-5fdaa68e1cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f60a9702b4</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[streamlit]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[classification]]></category>
            <dc:creator><![CDATA[Ugur Selim Ozen]]></dc:creator>
            <pubDate>Mon, 07 Mar 2022 09:03:38 GMT</pubDate>
            <atom:updated>2022-03-19T15:22:19.092Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YRtSzlAE__LKqR3YNlGWSg.png" /></figure><h3>0. Introduction</h3><p>Hi everyone, the third project of Data Science Bootcamp in partnership with <a href="https://www.linkedin.com/school/istanbul-data-science-academy/"><strong>Istanbul Data Science Academy</strong></a> and <a href="https://www.linkedin.com/company/hepsiburada/"><strong>Hepsiburada</strong></a> has been completed with presentations and so far it’s been a very instructive experience. Below I try to explain the third project that we did with my teammate <a href="https://medium.com/@furkankutuk"><strong>Furkan Kutuk</strong></a> in that period, which was a football player ranking with classification using Python paired with <em>NumPy, pandas, matplotlib, seaborn, scikit-learn, xgboost, lightgbm, catboost, streamlit, tableau, and SQLite</em>.</p><p>First of all, you can visit the project’s GitHub repository from <a href="https://github.com/UGURSELIMOZEN/ISTDSA_DS_Bootcamp/tree/main/Project3_Classification_SQL"><strong>here</strong> </a>and streamlit app’s GitHub repository from <a href="https://github.com/UGURSELIMOZEN/ISTDSA_DS_Bootcamp/tree/main/Project3_Classification_SQL/FootballPlayerRankingApp"><strong>here</strong></a>.</p><h3>1. Problem Statement</h3><p>We are a sports analytics consulting team that serves in the football domain. Our client requests <strong>building a classification model</strong> for <strong>finding the best talented football players</strong>.</p><p>For this purpose, we built a variety of classification models using <a href="https://www.kaggle.com/hugomathien/soccer"><strong>data</strong> </a>that we read from the SQLite DB.</p><h3>2. Methodology</h3><p>We described the following roadmap as project methodology ;</p><ul><li>Data Reading from DB with sqlite3</li><li>Data Cleaning and Transformation</li><li>Exploratory Data Analysis (EDA) with Tableau</li><li>Feature Selection and Modeling</li><li>Model Prediction</li><li>Interpreting Results</li><li>Football Player Ranking Streamlit App</li></ul><h3>3. Data Reading from DB with SQLite3</h3><p>By using the following functions that we developed, we read all tables from DB that were written before via sqlite3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vovX7n7o5is9z-_6RsooDQ.png" /><figcaption>Figure 1 : Data Reading from DB Process</figcaption></figure><h4>getTableNames()</h4><p>Using this function, we can get all table names from the SQLite DB.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/19cb81bcf8aadee19f39122a9facfa65/href">https://medium.com/media/19cb81bcf8aadee19f39122a9facfa65/href</a></iframe><h4>getAllTables()</h4><p>Using this function, we can get all table records for SQLite DB.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b60b81c2ec5d2ce0b2a0fb28636c6aad/href">https://medium.com/media/b60b81c2ec5d2ce0b2a0fb28636c6aad/href</a></iframe><h4>mergeAllData()</h4><p>Using this function, we can get necessary table records from DB and merge them.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4538cb7d73650eb48634796fc4a3babd/href">https://medium.com/media/4538cb7d73650eb48634796fc4a3babd/href</a></iframe><h4>cleanAndgetCSV()</h4><p>Using this function, we can write merged and cleaned data to CSV for using the model building in the next steps.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/be159996a50ac96df502a3de89e3ba16/href">https://medium.com/media/be159996a50ac96df502a3de89e3ba16/href</a></iframe><p>So, if we call the cleanAndgetCSV() function after the definition of all 4 functions, it will write data to CSV and after that, we can read it with pandas. Following is our data overview ;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*OnLLpzdIRT0fddDz5yYfHg.png" /><figcaption>Figure 2: Read Data Overview</figcaption></figure><h3>4. Data Cleaning and Transformation</h3><p>After we read and transformed data to dataframe, we made some transformations on columns such as extracting specific date parts from DateTime values and typecasting on some columns using <strong>split</strong> and <strong>astype</strong> functions like follows;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/72063fbc8d9926b9b55604a47fe1c379/href">https://medium.com/media/72063fbc8d9926b9b55604a47fe1c379/href</a></iframe><p>Finally, we applied the following methods to handle with “Unknown” values ;</p><ul><li>Filling with <strong>mode</strong></li><li>Filling with <strong>mean</strong></li></ul><p>As an example for “Unknown” value handling code ;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b9da8a78f86727bc872f47b328d3c1eb/href">https://medium.com/media/b9da8a78f86727bc872f47b328d3c1eb/href</a></iframe><h3>5. Exploratory Data Analysis (EDA)</h3><p>We visualized some features via <strong>Tableau</strong> against to target variable which is <strong>OVERALL_RATING</strong> to observe whether there is <strong>any informative pattern</strong> like follows ;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*geoTMgSg8HfVOhXohsz99Q.png" /><figcaption>Figure 3: Overall_rating vs Vision</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LCbW8drdUKu0yyyRnx8qDg.png" /><figcaption>Figure 4: Overall_rating vs Finishing</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GInO3eJ15aApge1DHqabmg.png" /><figcaption>Figure 5: Overall_rating vs Potential</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWJ0oOfBPwasJp8dlIqikQ.png" /><figcaption>Figure 6: Overall_rating vs Reactions</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4o0KxnxoAXjD-M32PCbLyA.png" /><figcaption>Figure 7: Overall_rating vs Age vs Date</figcaption></figure><p>As seen above bar and time-series charts, those <strong>5</strong> <strong>features</strong> have <strong>positive or negative informative patterns</strong> with target variable <strong>OVERALL_RATING</strong>, also you can see the correlation heatmap given below ;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FJ-UTFVrghMRzyPvNasB6w.png" /><figcaption>Figure 8: Correlation Heatmap</figcaption></figure><h3>6. Feature Selection and Modeling</h3><p>We built our model with <strong>19 features</strong> in total and used the following method in the model building process ;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*fdIgJVu_lCuZp8Kqd2Nr-g.png" /><figcaption>Figure 9: Train-Validation-Test Split</figcaption></figure><p>We have imbalanced data as it has too many 0 values compared to 1. Therefore, we applied <strong>oversampling method</strong> in the training dataset with <strong>SMOTE</strong> function as given below;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2d97380c1737ffb7c211803be30b5674/href">https://medium.com/media/2d97380c1737ffb7c211803be30b5674/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L43MjMSjjwfUITD7GNQK4g.png" /><figcaption>Figure 10: Oversampling in Imbalanced Data</figcaption></figure><p>Given below code shows us the building, predicting, evaluating, and K-Fold cross-validation process of many models with train-test split method ;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/607d51617a36e371e1fe32ae79eb64e7/href">https://medium.com/media/607d51617a36e371e1fe32ae79eb64e7/href</a></iframe><h3>7. Model Prediction and Interpreting Results</h3><p>We used <strong>Precision</strong>, <strong>Recall,</strong> and <strong>F-1 SCORE</strong> as evaluation metrics in model prediction and made it for <strong>train-test(%80-%20)</strong> split and <strong>K-Fold Cross-Validation</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PpD0O7k1uM7RR8hNVle7qQ.png" /><figcaption>Figure 11: Model Prediction Results</figcaption></figure><p>As seen upper prediction result table, the algorithms that work with ensemble methodology gave us better test results compared to others. Finally, we selected <strong>XGBOOST Model</strong> as it was the best one according to evaluation metrics.</p><h3>8. Football Player Ranking Streamlit App</h3><p>To predict our built model, we developed an interactive web app using Streamlit and deployed with it Heroku to a live web environment as you can see a sample figure from the app given below. You can test the on-live streamlit app from <a href="https://footballplayerrankingapp.herokuapp.com/"><strong>here</strong></a> or you can visit streamlit app’s GitHub repository from <a href="https://github.com/UGURSELIMOZEN/ISTDSA_DS_Bootcamp/tree/main/Project3_Classification_SQL/FootballPlayerRankingApp"><strong>here</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UNX6QyMNjykyuk9u1LIDiA.png" /><figcaption>Figure 12: Streamlit App</figcaption></figure><h3>9. Conclusion</h3><p>This is the end of the article. In this article, I try to explain in detail the third project of our Data Science Bootcamp. As a reminder, you can visit the project’s GitHub repository from <a href="https://github.com/UGURSELIMOZEN/ISTDSA_DS_Bootcamp/tree/main/Project3_Classification_SQL"><strong>here</strong></a>. If you wish you can follow me on Medium. Hope to see you in my next article…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f60a9702b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/i%CC%87stanbuldatascienceacademy/football-player-ranking-with-classification-and-streamlit-app-9f60a9702b4">Football Player Ranking with Classification and Streamlit App</a> was originally published in <a href="https://medium.com/i%CC%87stanbuldatascienceacademy">İstanbul Data Science Academy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>