<?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 Anastasiia Kulakova on Medium]]></title>
        <description><![CDATA[Stories by Anastasiia Kulakova on Medium]]></description>
        <link>https://medium.com/@nastyakul?source=rss-32932be47ee4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*b_Ne7jnjIyljONckC3ELew.jpeg</url>
            <title>Stories by Anastasiia Kulakova on Medium</title>
            <link>https://medium.com/@nastyakul?source=rss-32932be47ee4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 16:22:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nastyakul/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[Will AI Help Us Fix the Energy Grid—or Cause More Blackouts Than Ever?]]></title>
            <link>https://medium.com/@nastyakul/will-ai-help-us-fix-the-energy-grid-or-cause-more-blackouts-than-ever-070cd4b1bc08?source=rss-32932be47ee4------2</link>
            <guid isPermaLink="false">https://medium.com/p/070cd4b1bc08</guid>
            <category><![CDATA[virtual-power-plant]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[energy]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Anastasiia Kulakova]]></dc:creator>
            <pubDate>Tue, 24 Jun 2025 11:11:17 GMT</pubDate>
            <atom:updated>2025-06-24T11:11:17.659Z</atom:updated>
            <content:encoded><![CDATA[<p>Artificial Intelligence is poised to revolutionize everything—from how we shop to how wars are fought. But one of its most high-stakes, least sexy applications? The power grid: that fragile, sprawling system that keeps our homes, hospitals, factories, and TikTok-ring-lit home offices humming.</p><p>This fragility was on full display in April 2025, when a <a href="https://en.m.wikipedia.org/wiki/2025_Iberian_Peninsula_blackout">massive blackout</a> swept across Spain and Portugal, knocking out nearly 30 GW of power and leaving millions in the dark for hours. It wasn’t a cyberattack or extreme weather, but a cascading systems failure—triggered by a voltage surge and exacerbated by brittle infrastructure. It served as a stark reminder: our energy grid isn’t ready for the future.</p><p>Meanwhile, OpenAI CEO Sam Altman recently revealed that each <a href="https://blog.samaltman.com/the-gentle-singularity">ChatGPT prompt consumes about 0.34 watt-hours of electricity</a> and a small sip of water. That sounds tiny—until you scale it to 400 million weekly users. In a world already teetering on the edge of energy overload, the question practically asks itself:</p><p>Will AI help us prevent blackouts and transition to greener energy—or will it end up overloading the system it was supposed to save?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lb8UfP8faeUkNgFfqvItbw.png" /><figcaption>OpenAI. (2025). [AI-generated image of a stylized blackout street scene in flat design]. ChatGPT (June 20 version) [Digital image]. https://chat.openai.com</figcaption></figure><h3>The Good News: AI Might Save the Grid from Itself</h3><p>Let’s start on a hopeful note. Europe’s energy grid is under mounting pressure—from aging infrastructure in countries like Germany and Italy to the challenge of integrating intermittent renewables like wind in the North Sea and solar in the Mediterranean. Add to that the electrification of heating and transport, and you’ve got a continent bracing for an estimated <a href="https://www.iea.org/reports/world-energy-outlook-2024/executive-summary">up to 30% increase in electricity demand by 2030</a>.</p><p>Meanwhile, energy generation is becoming more decentralized—think rooftop solar in Spain, offshore wind in Denmark, and community batteries in the Netherlands. That’s a recipe for complexity. And it’s exactly where AI could step in to help stabilize the chaos.</p><h4>1. Predictive Maintenance</h4><p>One of the most promising uses of AI in the energy sector is predictive maintenance, which helps utilities identify and fix faults before they cause outages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tp2hIKYTocl0Oa43ZgdK9g.png" /><figcaption>IEA (2025), Utilities using AI applications by category, 2024, IEA, Paris <a href="https://www.iea.org/data-and-statistics/charts/utilities-using-ai-applications-by-category-2024">https://www.iea.org/data-and-statistics/charts/utilities-using-ai-applications-by-category-2024</a>, Licence: CC BY 4.0</figcaption></figure><p>Instead of relying on rigid inspection schedules, companies like Germany’s E.ON are using machine learning to analyze data from electricity generation and grid performance to <a href="https://www.iea.org/commentaries/why-ai-and-energy-are-the-new-power-couple">predict when medium-voltage cables need replacement</a> — reducing outages by up to 30% compared to traditional methods.</p><h4><strong>2. Grid Optimization</strong></h4><p>AI is increasingly being used for real-time grid optimization — balancing supply and demand across increasingly complex, decentralized networks. As renewables fluctuate and millions of new devices plug in, traditional grid management struggles to keep pace. AI can digest vast streams of data from sensors, smart meters, and weather forecasts to make split-second decisions: rerouting power, stabilizing voltage, and minimizing energy waste.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*D846VHjT3n5rKMbi.png" /><figcaption>Kraken Technologies. (2025). <em>Diagram of the EV-based virtual power plant concept</em> [Image]. Kraken Technologies. <a href="https://engineering.kraken.tech/news/2025/03/27/building-the-largest-ev-vpp-in-the-world.html">https://engineering.kraken.tech/news/2025/03/27/building-the-largest-ev-vpp-in-the-world.html</a></figcaption></figure><p>For example, Kraken Technologies (where I get to see this up close) is turning EVs into a massive virtual power plant, using AI to balance the grid in real time. Our platform smart-charges vehicles when energy is abundant and discharges when demand peaks, helping smooth out volatility and reduce strain.</p><h4><strong>3. Integration of Renewables</strong></h4><p>AI can smooth out the intermittency of wind and solar by forecasting supply and adjusting demand. In 2019, Google DeepMind’s AI project increased the value of wind energy by 20% using predictive modeling to better forecast output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Nv_mV-KFXQAFyZJ9.gif" /><figcaption>Source: Google, 2023 — blog.google/technology/ai/machine-learning-can-boost-value-wind-energy</figcaption></figure><h3>The Bad News: AI Can Also Break the Grid</h3><p>But it’s not all good news. The very technology poised to stabilize the grid could also destabilize it — if we’re not careful.</p><h4><strong>1. More Demand, Less Margin?</strong></h4><p>AI models require massive computing power—often run in power-hungry data centers. Training a single large AI model like GPT-4 can <a href="https://arxiv.org/pdf/2506.15572">consume over 1,000 megawatt-hours of electricity</a>—enough to power about 120 U.S. homes for a year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D2OP-GQ52Jdo0XkY4b5aKQ.png" /><figcaption>IEA (2025), Global data centre electricity consumption, by equipment, Base Case, 2020–2030, IEA, Paris <a href="https://www.iea.org/data-and-statistics/charts/global-data-centre-electricity-consumption-by-equipment-base-case-2020-2030">https://www.iea.org/data-and-statistics/charts/global-data-centre-electricity-consumption-by-equipment-base-case-2020-2030</a>, Licence: CC BY 4.0</figcaption></figure><p>And it’s not slowing down. <a href="https://www.iea.org/reports/energy-and-ai/energy-demand-from-ai">IEA finds</a> that global electricity consumption for data centres is projected to double to reach around 945 TWh by 2030.</p><p>However, it’s still representing just under 3% of total global electricity consumption in 2030. In this case, data centers account for less than 10 percent of total electricity demand growth at the global level, which is roughly on a par with demand growth for desalination, and less than a third of the demand growth for both EVs and space cooling in the buildings sector.</p><p>But the other issue is coming into light: data centers, with their increasing energy demands, can significantly contribute to grid congestion, especially in regions with high data center density. This occurs when the electricity grid lacks the capacity to transmit power to these facilities without exceeding safety or stability limits. In areas like Amsterdam, grid congestion has already led to <a href="https://nltimes.nl/2025/04/18/amsterdam-allowing-data-centers-municipality">restrictions on new data center builds</a>.</p><h3>2. Vulnerability to Cyber Threats</h3><p>AI-managed grids are software-defined and deeply interconnected — which also makes them vulnerable. Cyberattacks on energy utilities <a href="https://www.iea.org/reports/energy-and-ai/executive-summary">have tripled</a> in the past four years, growing in both frequency and sophistication, in part due to AI itself.</p><p>As Leo Simonovich of Siemens Energy <a href="https://www.utilitydive.com/news/minimize-artificial-intelligence-cyber-risks-to-energy-infrastructure-start-with-design/731446/?utm_source=perplexity">points out</a>, GenAI is lowering the technical barrier for attackers, enabling everything from disguised malware to deepfaked executive voices. The U.S. Department of Energy’s 2024 report <a href="https://www.energy.gov/sites/default/files/2024-04/DOE%20CESER_EO14110-AI%20Report%20Summary_4-26-24.pdf">echoes these concerns</a>, outlining how AI introduces not just accidental failures — like algorithmic bias and model misalignment — but also new security risks. AI systems can become attack surfaces, exposed to data poisoning, adversarial manipulation, and exploitation by bad actors.</p><p>Ironically, AI might be our best defense against the very risks it creates and help researchers detect anomalies at scale, like in the recent <a href="https://www.tno.nl/en/newsroom/2025/06/tno-jungle-ai-collaborate-detect/">field study of TNO and Jungle AI</a>.</p><h3>So, What’s the Verdict?</h3><p>AI is neither savior nor saboteur—it’s a tool. If used responsibly, it can improve grid reliability, reduce emissions, and help integrate renewables. But without oversight, infrastructure upgrades, and cybersecurity investment, AI could make the grid even more brittle and opaque.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=070cd4b1bc08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Revving into ML observability: a data generalist’s take]]></title>
            <link>https://medium.com/jedlix-tech-blog/revving-into-ml-observability-a-data-generalists-take-ded4fe230f4d?source=rss-32932be47ee4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ded4fe230f4d</guid>
            <category><![CDATA[electric-vehicles]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[ml-observability]]></category>
            <category><![CDATA[virtual-power-plant]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Anastasiia Kulakova]]></dc:creator>
            <pubDate>Wed, 02 Aug 2023 12:06:50 GMT</pubDate>
            <atom:updated>2023-09-04T08:25:12.511Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HM03lDFxVJ89N6Mb" /><figcaption><a href="http://egle.plytnikaite.com/#/electric-vehicle/">Source</a>: Egle Plytnikaite — Electric Vehicle</figcaption></figure><p>At Jedlix, we’re always pushing the boundaries of sustainable transportation, whether it’s a sunny day and our users are using our solar features or during the high-energy demand of winter. Machine learning models play a crucial role in this process, as we discussed in our <a href="https://medium.com/jedlix-tech-blog/under-the-hood-of-electric-vehicle-grid-balancing-4697c202531c">previous blog post</a>, and that is why it’s crucial to understand how they work and perform. Recently, we embarked on a journey to build a monitoring platform that our small but diverse team can handle on our own. In this blog post, we’ll share the twists and turns we encountered in our ML observability journey and discuss the important steps we took to get started. These steps include scheduling, collecting metrics, logging requests, and responses, and visualizing data in Grafana.</p><h3>But first, why do you need observability?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x582EQfEUCvBZAGwQTIbdA.png" /><figcaption><a href="https://www.youtube.com/watch?v=tsPuVAMaADY">Source</a>: Bridging AI’s Proof-of-Concept to Production Gap — Andrew Ng, my adaptation.</figcaption></figure><p>Shipping the model to production is not the final destination but a crucial step in the lifecycle of <a href="https://towardsdatascience.com/mlops-in-10-minutes-165c746a9b8e">MLOps</a>. It is important to ensure that the model delivers its promised (during the model testing phase) performance and uptime, bringing the desired value to the business. In our case, the goal is to make EV charging smarter and more affordable, and each model contributes to this mission. If the model fails to meet these expectations, it is important that it doesn’t fail silently. Developers should be notified, and analysis can be performed on the outcomes, enabling the team to prioritize model improvements. Basically, if we look at the picture above, observability is exactly what enables the loop between “deploy” and “train” or “deploy” and “collect data.”</p><p>Consider your car as an EV driver. You rely on a certain range and speed and expect to be notified when your battery is low so that you can plan accordingly. Now imagine the need to observe thousands of cars… That’s exactly what we’re doing! In summary, powerful models come with great responsibilities, and implementing observability practices is the first step in ensuring the responsible treatment of your models.</p><h3>Which signals are important to monitor?</h3><p>When it comes to monitoring metrics and taking action based on them, real-life production systems can be complex, generating numerous signals. Similar to a car’s dashboard, where various measurements are available but only a select few are displayed, choosing the signals to include in your monitoring is important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Irc4nYK8feWD3C5Z29PEOw.png" /><figcaption>Exploring metrics: a journey from the surface to the depths of the iceberg</figcaption></figure><p>Let’s dive into the process by visualizing performance as an iceberg with multiple layers. In the drawing above, these layers are arranged based on visibility: starting with the ones easily measurable but unlikely to be the root cause of the issue on the surface and going deeper to uncover those that are hard to measure but crucial for understanding and debugging your model.</p><ol><li><strong>Business Metrics:</strong> These metrics are directly linked to your business goals and outcomes. They may include things like financial metrics, user count, and customer satisfaction ratings — basically, the vital signs of your business. They give you an answer to the question, “<em>How’s the business doing?</em>” While they’re widely known among teams and serve as the starting point for almost any investigation, we’ll skip them in this blog post and focus on the metrics established by data science and engineering teams.</li><li><strong>System Metrics:</strong> These metrics provide insights into your model’s overall health and performance within the infrastructure. In the end, what’s the impact of your ML model if its API endpoint is down? They keep track of important factors like API response time, system availability, and resource utilization. In simple terms, they answer the question, “<em>How are the applications that drive our business decisions performing?</em>”. These system metrics are close to the tip of the iceberg, but their visibility can vary depending on how tech-savvy your data team is.</li><li><strong>Proxy Metrics:</strong> These metrics act as middlemen, giving insights into your model’s behavior and performance without directly measuring the business outcomes. They become especially handy when the outcomes themselves take time or depend on various factors. For instance, you can look at click-through rates instead of actual sales in an online store or evaluate performance in ideal simulation scenarios. Proxy metrics help us answer questions like, “<em>Is my model showing improvement in a metric closely related to performance?</em>” or “<em>How well does my model fare in simulated scenarios?</em>” Just like performance metrics, keeping an eye on proxy metrics can reveal flawed assumptions in our model design or raise concerns about data quality.</li><li><strong>Model Performance:</strong> These metrics gauge how well your model is doing in terms of accuracy, mean absolute error, and other evaluation criteria. They help answer questions like, “<em>How is my model behaving?</em>” and “<em>Does it meet the desired performance standards?</em>” Now, here’s the catch — this part is mostly hidden beneath the surface of the iceberg. Part of it is because of data availability and the complex nature of the use case, which we already covered in the proxy metrics section. There’s one more thing to it: when starting with machine learning, it’s common for engineering teams to focus on testing the model with a separate dataset and put off monitoring its performance in real-world scenarios. So, don’t miss this important step!</li><li><strong>Data Quality:</strong> Keeping tabs on data quality is essential for identifying and resolving issues related to the input data used by your model, as model performance rarely degrades on its own. This involves assessing factors like data completeness, consistency, correctness, and timeliness to ensure the model operates with reliable and accurate data. Common questions that arise include, “<em>Are my model’s missing features increasing? Has the freshness of my features decreased?</em>” Sometimes, the issue may not lie with the model itself but rather with incorrect data quality and availability assumptions. Investigating data quality can guide improvements in data engineering, prompt exploration of streaming architectures, or even necessitate retraining the model to account for less fresh features.</li><li><strong>Distribution Drift</strong>: Distribution drift refers to monitoring changes or shifts in data distribution over time. It helps us detect when the training data used by the model deviates from the real-world data it encounters during deployment. This misalignment can affect the model’s performance and indicate the need for retraining or adaptation. The key question to ask is, “<em>Does my data still resemble what it was before?</em>” In certain cases, this analysis uncovers generalization issues or prompts us to explore scaling the target variable. In more extreme scenarios, a significant change in the target distribution may lead us to reconsider the entire business case. For this blog post, we will skip this part, as this part isn’t yet automated on our end.</li></ol><p>By watching these different layers of signals, you aim to get as complete as possible picture of your model’s performance, system health, data quality, and any unexpected deviations. This valuable visibility lets you be proactive and prioritize improvements, ensuring your model delivers value effectively. Now, the question is, what tools would you employ to monitor these signals? Especially knowing that the more important for debugging, the harder to measure…</p><h3>Monitoring platform: Build vs. Buy (personal opinion)</h3><p>When it comes to choosing a monitoring platform, the decision between building one in-house or purchasing an existing solution can be quite challenging. While there’s no “one-size-fits-all” solution, there are several factors to consider in this decision-making process:</p><ul><li><strong>Cost and Return on Investment (ROI):</strong> Companies often pay a fixed monthly or annual cost for unlimited access with third-party tooling. On the other hand, building an in-house solution may involve assembling different components and incurring separate expenses. This way, you can decide which components you need and which you do not and pay only for what you actually use. The latter option might sound appealing, but…</li><li><strong>Time:</strong> Regardless of the approach chosen, incorporating a new platform into existing infrastructure requires time. While larger organizations can allocate resources to build and maintain their own platforms, this isn’t feasible for most companies, especially startups. As a data science team, balancing core analysis and model development with infrastructure management is important. This is what we call the opportunity cost. According to Qwak, one of the many MLOps platforms, data scientists spend <a href="https://www.qwak.com/post/building-vs-buying-your-machine-learning-platform">as much as 65 percent</a> of their time on such tasks. Although third-party observability platforms claim to free up data science teams’ time for more important work, we believe it’s often just sales talk, and the ROI of integrating these platforms can be overestimated, particularly regarding flexibility.</li><li><strong>Flexibility:</strong> When using a third-party tool or platform, there’s a possibility that it may not integrate smoothly with the other tools your team uses. In contrast, an in-house platform can perfectly align with your organization’s specific needs. For example, you can build around the tools supported by your cloud provider or collaborate with your development team to customize their tools for data science requirements. However, it’s important to remember that automation can sometimes take on a life of its own. After a while, you might spend more time on automation than on the tasks you intended to prioritize, as explained in this insightful <a href="https://becominghuman.ai/no-you-dont-need-mlops-5e1ce9fdaa4b">blog post</a>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ndTaxU1cUCObzVCGrNRMZQ.png" /><figcaption><a href="https://medium.com/at-the-front-line/ml-observability-hype-or-here-to-stay-acef064ff843">Source</a>: ML Observability — Hype or Here to Stay, my adaptation.</figcaption></figure><p>You could reason about the Build vs. Buy dilemma by dividing the companies into four categories:</p><ul><li><strong>The</strong> <strong>Leaders</strong>: Established, often Big Tech, companies heavily reliant on machine learning with numerous models in production. Likely, they started with MLOps practices way before the rest of the groups and thus had to develop their own tooling.</li><li><strong>The Innovators</strong>: Companies where ML is still essential, but they have fewer use cases and models in production, resulting in lower demand for observability tooling and a more cautious approach to spending. Legacy data and infrastructure tooling pose challenges to advancing ML maturity. Thus, outsourcing observability to third-party solutions could actually help to free up resources and focus on the nature of the models rather than infrastructure to advance in the race.</li><li><strong>The Experimenters</strong>: Companies exploring various ML use cases, creating a need for Observability tooling at scale. Willingness to spend is moderate as ML is not deemed mission-critical, but the emergence of AI-native startups may push them toward becoming leaders in the future. Here, build vs. buy is a big topic of discussion.</li><li><strong>The Laggards</strong>: Companies that are slow to adopt ML and generally do not use ML technology, making them resistant to implementing ML tooling. When the question arises, these companies could be better if buying ML observability software to ease ML adoption.</li></ul><p>In short, we believe going for “Buy” is a better option for companies in “The Laggards” and “The Innovators” quadrants. As “The Experimenters,” we found a sweet spot by repurposing engineering tools to meet our data science needs. In the next section, we’ll delve into the steps we took to get started.</p><h3>How to start building with ML observability in mind</h3><p>Now to the fun part: building your DIY platform. Fast-forward to the result: here’s our initial ML observability setup in the diagram below. In the next section, we will break it down into multiple parts and explain how we arrived at it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jwDTKHZ_yvPaBqUnxVFTng.png" /><figcaption>Jedlix ML observability set-up: simplified view</figcaption></figure><h3>Considering your deployment: batch or online?</h3><p>Before diving into ML observability, it’s important to consider your deployment strategy. Determine whether your model is deployed in a batch or online setting. At Jedlix, for example, we mostly deploy our models online. If external systems or users are not yet utilizing your model, or, simply, it’s not called often enough to draw statistics based on the outputs, take the initiative to call it yourself. For that, multiple pipeline orchestration solutions can be used: take a look at <a href="https://airflow.apache.org/">Airflow</a>, <a href="https://dagster.io/">Dagster</a>, and <a href="https://www.prefect.io/">Prefect</a>, which are widely used in data teams for various workflows. Configuring alerts is also very straightforward so that you will receive a Slack message if the call to your model API fails. In this case, we decided to go with Dagster, as it offers this valuable decentralization that allows us to experiment without the fear that our new jobs will break the old ones.</p><h3>Treating your model as software: system metrics with Prometheus</h3><p>As we delve deeper into the iceberg, we encounter the realm of system metrics. After all, what’s the point of a model if its API is on the fritz? Tools like <a href="https://prometheus.io/">Prometheus</a> or <a href="https://www.datadoghq.com/">Datadog</a> can boost your model’s observability by keeping tabs on its API behavior. Set up alerts for timely notifications when the model goes offline or takes ages to respond. The great thing about these tools is that they are already the industry standard, so even if your analytics team isn’t using them yet, chances are that the development team knows their way around it very well.</p><p>Also, you’re not limited to existing metrics alone; you can create your own! For example, you can track a data quality metric like “Missing feature X” whenever your model receives an NULL input. Just remember defining metrics in your code requires a bit of effort. If you have too many features to care for and prefer a smoother ride, consider using a third-party MLOps platform to handle these tasks. When working with metrics, keep an eye on retention periods and how alerts are calculated. Will the count reset after an incident, or will it keep growing? Consult the documentation of your chosen metrics software for more details. And speaking of visualization, we&#39;ll circle back to that topic in the next leg of our journey.</p><h3>Setting up request-response logging &amp; analytics database</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oZgPw7u3_QHxRGtSf0cIkA.png" /><figcaption>Request-response logging to ClickHouse</figcaption></figure><p>When it comes to monitoring model performance, it’s all about recording your model outputs and comparing them to the actual results. While searching for a robust analytics database, we found <a href="https://clickhouse.com/cloud?utm_source=google.com&amp;utm_medium=paid_search&amp;utm_campaign=19979782024_153259814612&amp;utm_content=654980165688&amp;utm_term=clickhouse_g_c&amp;gclid=CjwKCAjwt52mBhB5EiwA05YKo24LjcnEcRTOcBX5oVZmu1Hud2s3D4m2OUjjfLbxM9dc6FOL204qZhoC8yQQAvD_BwE">ClickHouse</a> to be a game-changer — blazing fast, user-friendly, and with valuable custom aggregation functions. We already ingested our actual data to ClickHouse; however, one thing needed to be sorted out before we could start writing our predictions there. As ClickHouse&#39;s <a href="https://clickhouse.com/docs/en/cloud/bestpractices/bulk-inserts">best practises</a> explain, each insert sent to ClickHouse causes it to create a part on storage containing the data from the insert together with other metadata, thus, sending a smaller amount of bulk inserts is more efficient than larger amount of inserts that each contain less data. But how do we deal with it when writing single outputs is exactly what we need to do?</p><p>Instead of single inserts, we leveraged request-response logging via <a href="https://www.envoyproxy.io/">Envoy</a> sidecar, seamlessly synced to ClickHouse using <a href="https://vector.dev/">Vector</a>. This way, we effortlessly get the raw data without the hassle of manual batching and later process it into tables containing valuable performance, proxy, and data quality metrics. The good news is that handling these streaming tasks usually falls within the realm of expertise for your development team. Plus, working with JSON data in ClickHouse is a breeze, making the process smooth for the analytics team.</p><h3>Visualization and alerting in Grafana</h3><p>Visualization is a powerful tool for understanding how the model is doing. And with a user-friendly tool like <a href="https://grafana.com/">Grafana</a>, you can easily create charts and graphs showing what’s going on. But it’s not enough to just look at the visuals — you also need to set up alerts to be notified when something important happens. Grafana lets you do this by setting up labels that send alerts to the right people on Slack. While standard metrics like MAE and MAPE are useful, it’s always a good idea to explore additional metrics that can give you an even deeper understanding of your model’s behavior. Currently, we use Grafana for both system and performance metrics, with specific metrics for each model. And to make dashboard creation easier, we <a href="https://www.timescale.com/blog/grafana-variables-101/">set variables</a> like the model name and API route, which makes it easy to duplicate and customize the dashboard. If you’ve done this already, congratulations — your ML observability setup 1.0 is now good to go!</p><h3>In place of a summary: embrace a generalist mindset</h3><p>As we reach the end of this blog post, let’s wrap up with the three key takeaways from our observability journey:</p><ol><li><em>Think like a generalist</em> when setting up your initial observability — it’s all about maximizing the resources you have.</li><li>Use the <em>80/20 rule</em> to prioritize the essentials and be open to refining your setup along the way.</li><li><em>Don’t hesitate to seek help</em> whether you’re using one vendor or multiple ones. Solution architects and friendly communities on Slack and Discord are there to assist. We would especially like to thank those of <a href="https://clickhouse.com/blog/learning-clickhouse-a-story-of-community">ClickHouse</a> and <a href="https://docs.dagster.io/community">Dagster</a>.</li></ol><p>By embracing this generalist mindset and tapping into diverse expertise, you’ll craft a customized observability framework that empowers you to monitor and optimize your machine-learning models effectively. At least, that’s how we revved into ML observability at <a href="https://www.jedlix.com/">Jedlix</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ded4fe230f4d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jedlix-tech-blog/revving-into-ml-observability-a-data-generalists-take-ded4fe230f4d">Revving into ML observability: a data generalist’s take</a> was originally published in <a href="https://medium.com/jedlix-tech-blog">Jedlix Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Under the hood of electric vehicle grid balancing]]></title>
            <link>https://medium.com/jedlix-tech-blog/under-the-hood-of-electric-vehicle-grid-balancing-4697c202531c?source=rss-32932be47ee4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4697c202531c</guid>
            <category><![CDATA[virtual-power-plant]]></category>
            <category><![CDATA[smart-charging]]></category>
            <category><![CDATA[energy-market]]></category>
            <category><![CDATA[renewable-energy]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Anastasiia Kulakova]]></dc:creator>
            <pubDate>Fri, 23 Dec 2022 08:09:19 GMT</pubDate>
            <atom:updated>2022-12-23T08:09:19.071Z</atom:updated>
            <content:encoded><![CDATA[<p>Electricity markets are complex, but one thing is sure: keeping the grid in balance is an absolute necessity. It drives the incentives and penalties that market players pay and that influence our own energy bills. Today, we take a look at these mechanisms not from the EV driver’s seat like we usually do, but from an energy market player’s perspective. We explain how operating an electric car fleet makes grid balancing easier and how machine learning plays a role in this process.</p><h3>Who is who?</h3><p>Let’s focus on two major market players:</p><ul><li><strong>Balance Responsible Parties (BRPs)</strong>. These parties oversee a portfolio of energy generators and consumers and make sure that supply meets the demand for their portfolio as a whole. If not, requests are sent by the TSO (transmission system operator, such as <a href="https://www.tennet.eu/">TenneT</a> in the Netherlands) to solve these imbalances. Who solves the imbalances?</li><li><strong>Balancing Service Providers (BSPs).</strong> BSPs are market participants who balance the grid by rapidly increasing or reducing their power output. A conventional example is a gas plant working at 80% capacity and bidding the remaining 20% as a balancing capacity in this balancing market. If the need arises, this capacity will be activated, and the plant will be paid for the amount of energy it provided. The plant will be actually paid twice: once for the “promised” capacity and once for the actual volumes delivered to the energy grid. While the first cost is spread across all actors on the energy grid, the second one is paid out by a BRP and is often passed on to utilities and consumers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1iBCqCc8dC-yD9kSjGWdMA.png" /><figcaption>In this situation, the production of Balance Responsible Party (BRP) 1 exceeds the consumption, while for BRP 2 it’s the opposite. BRP 1 can sell its excess electricity on the Intraday market to BRP 2, which can use it to meet its needs. However, there’s still a shortage because of other market players. To fix this problem, a Balancing Service Provider (BSP) is called upon to increase production or reduce the use of smart charging EVs to bring more electricity to the grid. When the grid balance is restored, the parties that caused the imbalance will have to pay a fee to cover BSP’s expenses.</figcaption></figure><h3>Flexible demand</h3><p>It may seem like BRPs, and BSPs have conflicting interests, but they both rely on flexible supply. BRPs have difficulty accurately predicting consumption and pay imbalance costs to compensate for adjusting BSP’s supply. BSPs, on the other hand, manage the complex infrastructure of reserve capacities that could be used more efficiently in terms of cost and CO2 emissions.</p><p>But what if it’s not just the supply that is flexible, but also the demand? That could create a win-win situation for both parties!</p><p>According to a <a href="https://iea.blob.core.windows.net/assets/ad8fb04c-4f75-42fc-973a-6e54c8a4449a/GlobalElectricVehicleOutlook2022.pdf">2022 report by the International Energy Agency</a>, by 2030 electric vehicles are expected to use about 5% of total electricity demand or 110 TWh in Europe. This estimate is based on the assumption that electric vehicles will have a market share of 30% in 2030, which takes into account current government policies.</p><p>Unlike many other types of energy consumption, the power demand from electric vehicles can be flexible. That’s why at Jedlix, we are working to enable the untapped flexibility of EV charging for grid balancing for energy market players.</p><h3>Under the hood of a Virtual Power Plant</h3><p>Let’s take a closer look at a typical session on the Jedlix platform. Imagine a user plugs in their car in the evening during the work week and expects the battery to be fully charged by the next morning. During these hours, electricity demand is usually high, which is reflected in the prices on the day-ahead market and, as a result, the user’s tariffs. However, by delaying charging until prices are lower and scheduling charging times based on price, the user can significantly reduce the cost of the session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MGga7iujmxaoFuLVG8e51w.png" /><figcaption>The optimal schedule is determined by tariffs and user settings (for example, leaving time or the presence of solar power) and can bring up to more than 30% of cost savings for this session for users with dynamic tariffs.</figcaption></figure><p>This flexibility in demand can also be utilized in other energy markets that the user does not have direct access to. This is where BRPs and BSPs come into play.</p><p>When combined, the pool of electric cars becomes essentially a decentralized battery that can be charged and discharged based on market signals. We call this battery a Virtual Power Plant (VPP). The assets needed for a VPP are already present within the BRP’s perimeter or BPP’s portfolio. The only problem is… operating thousands of vehicles is much more complex than steering one industrial-sized battery.</p><p>That’s where Jedlix comes in. We offer VPPs as turn-key solutions, similar to how a real battery works. We do this by:</p><ul><li>Ensuring we know the capacity of our VPP</li><li>Having visibility on how fast our VPP can charge (or discharge) at any given moment</li><li>Having a way to interact with the car without any additional hardware</li></ul><p>In this blog post, we’ll take a closer look at the first two points. If you’re interested in how we control car charging remotely, you can check out our <a href="https://developer.jedlix.com/">developer portal</a>.</p><h3>Capacity forecast</h3><p>A major difference between a decentralized battery on wheels and its conventional stationary colleague is variable capacity. We simply don’t know what would be the number of cars plugged in at every moment of the future (and how many of them we can reschedule and still respect the user settings), which makes it hard to bid this capacity on the balancing market. However, we can forecast aggregated flexibility based on historical data, as it exhibits seasonality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OG0WW3QjlNjdXVksTzJgUw.jpeg" /><figcaption>Available flexibility is highly dependent on the hour and day of the week. For example, more users stay connected over the night which increases the total available flexibility.</figcaption></figure><p>This seasonality is driven by electricity prices (think of peak/off-peak tariffs), consumer lifestyle (think of plugging the car in the evening after work) and even weather patterns. We capture those features separately for different fleets, as market prices and even timezones differ across the markets where Jedlix is active. In addition to that, we take into account the growing size of our virtual power plants by forecasting a scaled target that we rescale back at a later stage.</p><p>One of our go-to approaches for this is gradient boosting. It is a powerful machine-learning technique that combines the predictions of multiple decision trees to make more accurate forecasts and can handle both numerical and categorical features.</p><p>Currently, we are also experimenting with deep learning models and multivariate forecasting. As our models require historical data to train on, it can be challenging to create a forecast for a new fleet. “Reusing” the information from our other fleets will be especially helpful in this context.</p><h3>Charge power estimations</h3><p>So far we have talked about aggregated flexibility, however, it is the charging process of the individual assets we schedule to charge at the most appropriate time. To create such optimal schedule, we need to know how fast every asset in our pool can consume energy from the grid, or simply the charge power.</p><p>Since we mentioned charge power, many wonders, why this is unknown if the car manufacturers often list it in the specifications. In fact, charging power depends more on the charging setup rather than the car model. Let’s take a detour here.</p><p>A power line can have 1 or 3 phases. The current (or the flow of energy, that we denote I) in the cable is defined in Amps: most households have 16 Amps available at home. The “pressure” on the line is defined in Voltage (V), which in Europe mainland is mostly 220–240v. This brings us to the four most common charge powers possible while charging at home.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9MPeCcxRrxGlvZnF4FwbNA.png" /><figcaption>Charge power distribution from a subset of sessions recorded on the Jedlix platform in the years 2021–2022.</figcaption></figure><p>However, if we take a look at charge power distribution at the Jedlix platform, we would notice, that it’s not just those four most frequently occurring values, but the whole range between them. Also, you can see the peaks close to the ones we computed before, but shifted to the left. This is due to the losses, individual properties of the car, dependency on the battery state of charge, and many other things.</p><p>In the graph below, we depicted the charge powers for the exact same vehicle that had sessions in different locations. Here we used averaged charge powers computed after-the-fact, however, in reality, these estimations can vary in the session as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*5roiKnyhaooDGPdpWoxWoA.png" /><figcaption>Charge power computed after the session varies from one charge location to another, but also can be different at the same location.</figcaption></figure><p>That is why at Jedlix, to schedule cars optimally and provide an accurate estimate of available flexibility, we have to determine the charge power based on the car’s previous activity on the platform and update our estimates during the session itself.</p><p>By the way, we have recently updated our charge power estimation model tailored specifically for session start. Our previous algorithm was designed to push the car into calibration mode even by the slightest variance in estimated charge powers from previous sessions. This led to a brief charging period at the start of each session, which was often during expensive hours for our users and reduced flexibility for our VPP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*55P981w8_ZIYTriallbiCQ.jpeg" /><figcaption>Model step-by-step: unlike deterministic model, the output is a distribution that we can use to incorporate uncertainty in our estimates.</figcaption></figure><p>The new probabilistic model allows us to optimize the charging process for EVs with unstable previous charge powers sooner, resulting in less need for charge power calibration. This helps us maintain the same level of confidence that the battery is filled to the desired state of charge as before while also delivering flexibility to the grid.</p><p>To handle the low-latency and high-throughput requirements of our charge power estimation model, we use the <a href="https://developer.nvidia.com/nvidia-triton-inference-server">NVIDIA Triton</a> inference server. This allows us to scale our forecasting service to provide charge power estimates as our platform grows!</p><h3>Conclusions</h3><p>To sum up, we walked you through some of the challenges we solve with machine learning to make operating the Virtual Power Plan under uncertainty a reality. This includes (but is not limited to) available flexibility forecast and real-time charge power estimations. Want to know more about how we do this at scale? From smart charging APIs to complete Virtual Power Plants, get support for any case you need to accelerate your e-mobility offering by heading to <a href="https://www.jedlix.com/">our website</a> or contacting us <a href="https://www.jedlix.com/contact">directly</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4697c202531c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jedlix-tech-blog/under-the-hood-of-electric-vehicle-grid-balancing-4697c202531c">Under the hood of electric vehicle grid balancing</a> was originally published in <a href="https://medium.com/jedlix-tech-blog">Jedlix Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A methodology for everyone: how I learned to stop worrying and love Agile — Part II]]></title>
            <link>https://medium.com/@nastyakul/a-methodology-for-everyone-how-i-learned-to-stop-worrying-and-love-agile-part-ii-2a266e1e06c8?source=rss-32932be47ee4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a266e1e06c8</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[kanban]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[way-of-working]]></category>
            <dc:creator><![CDATA[Anastasiia Kulakova]]></dc:creator>
            <pubDate>Thu, 02 Jun 2022 07:14:10 GMT</pubDate>
            <atom:updated>2022-06-02T07:14:10.790Z</atom:updated>
            <content:encoded><![CDATA[<h3>A methodology for everyone: how I learned to stop worrying and love Agile — Part II</h3><p>While preparing this series of articles, I came across multiple opinion posts <em>criticising Agile</em> applied to certain industries or types of projects. For example, <a href="https://towardsdatascience.com/6-reasons-why-i-think-agile-data-science-does-not-work-ee4dd680bb59">this one</a> regarding data science projects that deal with open-ended and hard-to-estimate problems.</p><p>While some of the claims are fully justified, I feel like they <em>shouldn’t be blocking</em> you from trying out the methodology and deciding for yourself if it’s going to be your go-to way of working. So, to reiterate the goal of this series, I want to show you that there are things you can <em>safely try out regardless of your job</em> title and give some tips to make it run smooth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w2YfCuqJVRsu8r0HUygfrA.jpeg" /><figcaption><a href="https://www.freepik.com/vectors/task-management">Task management vector</a> created by storyset — <a href="http://www.freepik.com/">www.freepik.com</a></figcaption></figure><h4>Getting started</h4><p>Alright, you decided to take the <em>leap of faith</em> I described in the <a href="https://medium.com/@anastasiya.kulakova/a-methodology-for-everyone-how-i-learned-to-stop-worrying-and-love-agile-part-i-43c4b4327588">first part</a> of my blog post and try out Agile methodologies in your team. Where do you start?</p><p><strong>#1. The standup</strong></p><p>In her <a href="https://www.forbes.com/sites/tracybrower/2019/10/06/is-agile-really-worth-it-evidence-says-yes-if-you-do-these-4-things/?sh=7ac7ca65488d">opinion piece</a> for Forbes, Tracy Brower says the following (and I can’t agree more!):</p><blockquote>…when agile teams work effectively they tend to share a lot of information. This contributes to shared mental models and helping behaviors. Essentially, fast information flow (information density) contributes to people who have shared thinking and common ways of understanding. This shared experience contributes toward team members who stay aware of each other’s needs and provide support, assistance and guidance on tasks, making for better outcomes overall.</blockquote><p>I feel that a good starting point for creating an <em>open culture</em> and supporting atmosphere is a daily standup that gives a floor to everyone not only to update others on their work but to <em>ask help questions</em> and share successes. This way, as an Agile methodologies enthusiast, you can learn about the nature of tasks your colleagues are carrying out, the typical timelines of their work, and the size of projects/tasks. And the best thing — you <a href="https://asana.com/resources/stand-up-meeting">only need 15 minutes</a> for that.</p><p><strong>#2. The board</strong></p><p>Your main instrument to <em>visualise the progress</em> of your work. I believe most of the people you work with use task trackers in one way or another (think anything from <em>todo lists </em>on your phone or<em> blocks in the agenda</em>), but boards provide a great helicopter view of the overall status of the work done by the <em>whole team</em>. Especially when you work in sprints.</p><p>Like any visual instrument, if used smartly, boards help <em>notice patterns</em> and <em>raise important questions</em> to discuss with the team. For example, you can spot too many tasks stuck in “blocked” or “review” columns: this will be a clear signal to discuss collaboration within a team or with external members. Does the amount of work on an individual level prevent you from reviewing other teammates&#39; work or conflicts within a team?</p><p>Do you notice more incoming bugs than usual, and you’re working on them instead of new features? Too many tasks on “todo” and the team lack focus? You’re in the middle of the sprint, everyone looks busy, but the “todo’s” are much longer than done? These are the things I’d have never proposed to discuss if we didn’t use boards to visualise our progress.</p><p><strong>#3. The retro</strong></p><p>Again, I believe this happens in some way in non-agile teams, but mostly in 1-on-1s. However, it’s the reflections on the way of working that are made <em>public</em> within a team that contributes to an open culture where people listen to and help each other naturally.</p><p>Thus, find a format that gets your teammates talking and listen to what they say. I personally like Metroretro’s retrospective <a href="https://metroretro.io/templates">templates</a>: why waste time on the technicalities of hosting a retro, if everything has already been done for you? Instead, focus on the meeting itself.</p><p>Also, what worked well for the teams I was part of, is looking back at previous retros and noticing the steps we made (or didn’t make) to tackle the negative points. This brings continuity to the process and makes the reflections more tangible.</p><h3>Do’s and Dont’s</h3><p>Now that we’ve discussed <em>which</em> practices are the easiest to adapt to, I wanted to give some tips on <em>how</em> to actually adopt them. So, let me introduce you to my learned-the-hard-way Do’s and Dont’s of Agile methodologies.</p><h4>Do’s</h4><p><strong># 1. Personalise your experience</strong></p><p>Normally, Scrum or a Kanban board will look like something like the title picture of this blog post. The columns on the board are no doubt self-descriptive and make sense but could be too much tailored to the process of software development. Be creative and mindful about your use-cases: perhaps, “Published” will be more relatable for your team of analysts building visualisations for a report than “Done” or an extra column “Documented” will become that much-needed reminder to update the docs for your team of developers.</p><p>My other advice relates to the so-called open-ended nature of data science projects. I find it helpful to reduce the uncertainty by <em>separating the implementation of the prototype from research </em>into the possible approaches/features/architecture. So I do a <a href="https://ancaonuta.medium.com/how-spikes-help-to-improve-your-agile-product-delivery-a0f104305911">Spike</a> to choose an approach for the part that I’m not yet sure about and once it’s done build a prototype which now has fewer loose ends. The important thing here is to <em>time-box</em> your spikes so that you don’t go down the rabbit hole and iterate fast.</p><p><strong>#2. Plan ahead</strong></p><p>I think that oftentimes people see creating and organising tickets as a time-consuming chore bringing little to zero value. To me, it’s a misconception coming from two major causes. Either overly demanding management blocking developers&#39; creativity (why write a story when they think they know exactly how to solve a problem?) or alternatively, extremely individualistic developers (why write a story for someone to understand if it’s them who is most likely to pick it up?).</p><p>I believe, if prepared properly, a ticket on the board can be a tool <em>advocating for developers, not against them</em>. For example, it visualises the development process so that when priorities shift, the person can show that switching to a new task will delay other things on the board, rework the priorities together with a manager and swap the tickets.</p><p>In addition, a properly written user story can prevent the team from doing double work and <em>trigger the discussion</em> on achieving the value more simply. This is much harder to achieve when the task starts with what needs to be done rather than why. In the end, it’s not about doing a task but solving a problem.</p><p><strong># 3. Take ownership</strong></p><p>I believe taking ownership is something that needs to happen on multiple levels of Agile development: starting with having a person responsible for the methodology adoption to each team member who takes the initiative in picking up the relevant tickets and shares their thoughts on the retrospective.</p><p>For me, it works well when tickets are assigned to me before the sprint starts so that I can oversee my plan for the upcoming weeks and exercise ownership. Of course, we work as a team but it’s the individual responsibility that keeps it working smooth. Even if later you find out that the task needs someone else’s input and transfer the ticket, there’s a higher chance that it will succeed when more than one person is involved.</p><p>Also, it seems harder to estimate the load for the team than for a particular individual and prevent overpromising on team level. However, everyone has unique insights into their productivity and availability during the sprint.</p><h4>Dont’s</h4><p><strong>#1. Don’t rush and over-complicate</strong></p><p>Switching to another way of working could be a handful: in addition to carrying out your everyday work you’re <em>refactoring the way you do it</em>. Thus, my advice would be not to rush with all the changes and roll them out gradually. That’s a bit of recursion: Agile advocates for iterative development, so what could be more natural than to trying out the methodology itself iteratively too?</p><p>I would advise starting with Kanban rather than Scrum to figure out your regular timelines, learn to write user stories, and develop a habit of sharing your progress. Having the refinement sessions and estimating the sprint velocity right away will only exhaust your team and make them lobby against Agile. Instead, find the next element to implement together, based on the feedback from the retrospective.</p><p><strong># 2. Don’t bureaucratise</strong></p><p>Don’t try to put all the work you do on the board. Here I mean that sometimes it <em>takes more time to create a ticket than do it right away</em>. Also, some jobs involve daily or weekly scheduled operational tasks that rarely go not as planned.</p><p>My advice would be to leave this out of the board; rather, adjust the amount of project work you’re going to do taking into account your operational tasks, especially if you rotate them. We’ll look into “light-weight” Agile practices in one of the next blog posts, when I’m going to talk about structuring pet projects and volunteering work.</p><p><strong># 3. Don’t forget to write the docs</strong></p><p>I’m sure everyone involved in building software has said this at least once: read the docs. But for others to read them, <em>someone needs to write them first</em>. Same about your way of working: to enjoy the smooth and productive Agile journey, you’ll have to keep certain artifacts. These would be your notes from the retrospective, backlog, issue templates, and even the meeting invites in your calendar. Some teams also document the principles they use when breaking work into manageable chunks (i.e., what is an epic, story, feature, and task).</p><p>I do believe it’s beneficial for the team to document their way of working evolution. Not necessary to be able to go a year back and plot charts of team happiness (see #2. Don’t bureaucratise), but to have a way to look a sprint back to compare and see if there’re any improvements on the points flagged before. I would also say, without such artifacts, it’s hard to build trust in the Agile rituals: if we spend hours getting the insights on how we work as a team, they need to be actionable, and we need a proof that the actions happened.</p><p>Alright, in this blog post I tried to be more practical and list the things I believe are the easiest to start with when planning to try out the Agile way of working. My main takeaway here is to treat finding a more satisfying way of working for the team <em>just like any other project</em>: plan, test, analyse, repeat. Speaking of analysing, in the next blog post in this series, I’ll give you some insights from the way of working survey I shared with my network last year.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a266e1e06c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A methodology for everyone: how I learned to stop worrying and love Agile — Part I]]></title>
            <link>https://medium.com/@nastyakul/a-methodology-for-everyone-how-i-learned-to-stop-worrying-and-love-agile-part-i-43c4b4327588?source=rss-32932be47ee4------2</link>
            <guid isPermaLink="false">https://medium.com/p/43c4b4327588</guid>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Anastasiia Kulakova]]></dc:creator>
            <pubDate>Thu, 19 May 2022 10:23:42 GMT</pubDate>
            <atom:updated>2022-05-19T10:23:42.093Z</atom:updated>
            <content:encoded><![CDATA[<h3>A methodology for everyone: how I learned to stop worrying and love Agile — Part I</h3><p>Now that the world is still affected by the global pandemic and is functioning in remote and hybrid work environments, more and more industries are seeking ways of working that are more compatible with it. No wonder, these other industries are turning their gaze towards Agile methodologies — the tech sector adopted remote working long before any other “office” job and it seems to turn out <a href="https://www.standishgroup.com/sample_research_files/CHAOSReport2015-Final.pdf">more successful</a> than the traditional approach to planning. But is it the <em>right way</em> to go about the way of working for 2022 and beyond?</p><p>In a series of posts, I’m going to explain why I think it is fully justified to try out Agile methodologies now <em>no matter what industry</em> you work for, provide you with examples of practices that you can adopt, and, of course, try to back up myself with data. This particular one is an intro, where I’m going to give some definitions and argue why it’s not that easy to tell for sure if Agile methodologies actually work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WV6QoO328ZkodKa6b9mhzw.jpeg" /><figcaption><a href="https://www.freepik.com/vectors/illustrations">Illustrations vector</a> created by storyset — <a href="http://www.freepik.com/">www.freepik.com</a></figcaption></figure><h4>What is a tech company, anyway?</h4><p>I started the story by comparing the tech companies with other industries. But how do we define the tech companies in the first place? According to <a href="https://technation.io/news/tech-company-definition/">this article</a>, a tech company is the one that uses technology (no matter if proprietary or carefully assembled from partner solutions) as its competitive advantage, in other words, <em>such a company wouldn’t survive if you took it away from them</em>. I personally like this definition a lot, as it allows to distinguish a company <em>operating in an industry</em> and relying on technology from a company that <em>disrupts the industry</em> they happen to operate in with their tech.</p><h4>What is Agile?</h4><p>Now that we know what the tech companies are, let’s revise the definition of Agile methodologies. Atlassian, one of the leaders in productivity software, <a href="https://www.atlassian.com/agile/kanban/kanban-vs-scrum">emphasises</a> that Agile methodologies are about an <em>incremental approach</em> to building things. With Scrum being more focused on <em>fixed iterations</em> resulting not only in the product improvement that can be directly demonstrated, but in various statistics on team performance, and Kanban valuing the <em>continuous process</em> and work efficiency by narrowing the team focus and work in progress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VYGjHzUEvnGxT04L1mKF6Q.png" /><figcaption>Scrum Vs Kanban created by <a href="https://www.addteq.com/blog/2019/11/kanban-vs-scrum-lets-understand-the-difference/">Addteq</a></figcaption></figure><p>According to the <a href="https://info.digital.ai/rs/981-LQX-968/images/RE-SA-15th-Annual-State-Of-Agile-Report.pdf?_ga=2.32068665.605800162.1644918789-720163147.1644918789">State of Agile Report</a> of 2021, Scrum remains the most popular Agile methodology with over 66% of teams surveyed preferring it and its derivatives over other frameworks. Thus, I might be using the terms Scrum and Agile interchangeably for simplicity.</p><h4>Are we sure it works?</h4><p>Most of the sources list getting more things done with less stress and prioritising people over processes as the main benefits of Agile development. Is it enough to justify this way of working for your management though? Here Agile evangelists tend to come up with data on increased developer happiness and productivity. However, after a quick literature review, I realised there’s <em>no credible data</em> on Agile methodologies&#39; impact on it and here’s why:</p><ol><li>There’s no agreement on how to measure Agile effectiveness in teams. Amount of work done in a period of time measured in number of projects/story points? — But what if this work wasn’t needed and occurred only due to poor prioritisation and overlooked bugs? Team happiness measured as churn of employees? — How would you isolate it from other factors in the organisation? And so on and so forth. Various sources I found were relying on different metrics to showcase either Agile success and failure and there seemed to be almost no overlap. This brings me to my second point.</li><li>Although often applied to tech teams, the research in work organisation belongs more to <em>management or social studies</em> that tend to have more difficulties with standardisation of research practises, and, as a result perhaps, have less impactful journals measured as JIP factor or h-index of the authors publishing there. For example, <a href="https://www.researchgate.net/publication/320846560_Effectiveness_of_Agile_Compared_to_Waterfall_Implementation_Methods_in_it_Projects_Analysis_Based_on_Business_Intelligence_Projects">both</a> <a href="https://www.researchgate.net/publication/342851694_A_THEORY_OF_EFFECTIVENESS_OF_AGILE_SOFTWARE_DEVELOPMENT">papers</a> on Agile teams productivity I found are published in journals with an impact factor of less than 1 that have just a few citations. For comparison, a <a href="https://dl.acm.org/doi/10.1145/362384.362685">fundamental paper</a> on relational databases by Codd (although database design, just like Agile methodologies, is an ongoing topic of debate) now has more than 5k citations, among which 1.8K in the last year. I would expect a similar volume of interest in the scientific community to something as fundamental as Agile development.</li><li>Finally, we rarely see an unbiased opinion on Agile methodologies. The state of Agile report itself, my main source for this blogpost, is an interested party, as 4k respondents in their latest survey claim to work… as Scrum masters or internal coaches in their organisations!</li></ol><p>Long story short, if you’re considering switching to Agile it’s a <em>leap of faith</em> and you should be surveying your own teams to figure out if it makes things easier in your particular case. But the good news is that in my opinion, trying out Agile is <em>not a fundamental shift</em> and, as the name suggests, there are a couple of tactics up its sleeve that you can adopt safely. I’ll talk about it in my next blogpost, stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43c4b4327588" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Packaging your data science results]]></title>
            <link>https://medium.com/@nastyakul/packaging-your-data-science-results-3121d30dbf7c?source=rss-32932be47ee4------2</link>
            <guid isPermaLink="false">https://medium.com/p/3121d30dbf7c</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[jupyter-notebook]]></category>
            <dc:creator><![CDATA[Anastasiia Kulakova]]></dc:creator>
            <pubDate>Tue, 05 Jan 2021 07:43:11 GMT</pubDate>
            <atom:updated>2021-01-05T07:43:11.923Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TkLMGnRzIzr7W5RPspimXA.jpeg" /><figcaption>Illustration by <a href="https://twitter.com/NotYetDrBogatyr">Vadim Bogatyr</a></figcaption></figure><p>There is plenty of great blog posts out there on how to present your data science results to different audiences. However, most of them sum up to delivering the main insights to line-of-business stakeholders (in a form of a presentation or a dashboard), leaving out tech details, and… delivering solely your code to the tech team!</p><p>While the first point resonates in me, the second is something I completely disagree with: your tech team more than deserves both a good storyline/visuals and implementation details. In the end, what you ship is a product, not just the code.</p><p>So, how to tell your fellow data scientist and engineers what you’ve got so far? In this post, I’m gonna walk you through the tools I use to present data myself without leaving the safe space of my Python code editor. I’ll use simple examples from the <a href="http://pierrepinson.com/index.php/teaching/">Renewable in Electricity Markets course</a> I recently completed and some datasets from Kaggle. Let’s package them nicely!</p><h4>Slides</h4><p>Good old Jupyter has a nice functionality most of us totally forget about: slides. You can render your notebook into a presentation with a couple of clicks and save the output as .html or .pdf file. Definitely, a handy way to show code snippets and plots with minimum effort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*t-Fj2EvD8A4kFWgFuLynQA.gif" /><figcaption>Jupyter slides output</figcaption></figure><p>Here, I visualize the supply and demand law for energy prices and provide a short snippet to compute the settlement price for the day-ahead market. If you want to go further and run the code without exiting the presentation, there’s an awesome <a href="https://rise.readthedocs.io/en/stable/">RISE</a> package based on reveal.js for that.</p><h4>Interactive plots</h4><p>Now that we’ve learned about slideshows with notebooks, let’s fill them with nice visuals. When it comes to visualizing more than two variables or explaining a concept, I prefer interactive plots. This way, you can play around with data without rerunning the code — zoom in and out, change parameters with a slider or use a drop-down menu to select columns of interest — basically, a hustle-free dashboard inside your Python editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*J7J2GB-ptOAd3Gr79kBjfA.gif" /><figcaption>Plotly bar chart allows to easily switch between plot traces selecting the column from drop-down menu to aggregate by.</figcaption></figure><p>Hopefully, there are libraries to choose from. The most popular ones — <a href="https://plotly.com/python/">Plotly</a> and <a href="https://docs.bokeh.org/en/latest/index.html">Bokeh</a> — offer .js capabilities with a few lines of Python code and boast very well-designed default styles. In addition to that, your plots can be hosted on a free public server or a paid private one.</p><p>On the other hand, widely-used Matplotlib is capable of some interactivity as well. In addition, the Matplotlib notebooks server can be easily switched off, if it slows down other things in the notebook. Experiment and <a href="https://matplotlib.org/">readthedocs</a>!</p><h4>Interactive notebooks</h4><p>Ok, we’ve seen a couple of ways to showcase a code snippet or a plot. But what about bigger chunks of work? When it’s too early to package your code in a separate git repo, consider sharing it in <a href="https://mybinder.org/">Binder</a> or <a href="https://colab.research.google.com/">Google Colab</a>. This way, you allow others to run your code and experiment further. Leave your thoughts about requirements and environments for later, it’s all already there. Yes, that simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Y7oO7G09FSsWYhcaXBSwag.gif" /></figure><p>For example, recently I heard that starting from this year there won’t be separate <a href="https://nltimes.nl/2020/04/09/amsterdam-separate-plastic-trash-its-residents-away-its-orange-bins">containers for plastic in Amsterdam</a>, because machines do the job better… So I decided to try to classify garbage with computer vision techniques and experiment a little bit with MobileNetV2 architecture, here’s what I got:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*VOOrmf3bUZYwcB23eHFCmQ.png" /><figcaption>Checkout <a href="https://colab.research.google.com/drive/19g6n5jJXgeAL5I-QXcW53WK41dYjt1Ws?authuser=1#scrollTo=EjV-atnG5vgd">Google Colab</a> for details</figcaption></figure><p>One thing to keep in mind while using Google Colab is the way you load data, especially credentials. Most likely, you’ll be mounting your GDrive to the notebook, which has its limitations, both security- and memory-wise.</p><h4>Apps</h4><p>If you’ve gone so far that you need to show a demo of your product live, creating an app is something you should consider. For that, I would highly recommend <a href="https://www.streamlit.io/">Streamlit</a> — this open-source framework liberalized the craft of web development for ML and made it possible for data scientists around the globe to build apps in a couple of hours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Vl_CSZlK9Te1v9wDeZEYPw.gif" /><figcaption><a href="https://github.com/streamlit/demo-self-driving">Streamlit Demo</a>: The Udacity Self-driving Car Image Browser</figcaption></figure><p>That’s it!</p><p>Pick a tool that serves your purpose best and get started. Just don’t go too crazy — presenting your results efficiently is supposed to save your time communicating them, not to create another hurdle. But be mindful about your code — just like in real life, it’s nice to go for reusable options!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3121d30dbf7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>