Polars for initial data analysis, Polars for production

Initial data analysis (IDA) has different goals than your final, production data analysis: With IDA you need to examine the initial data and intermediate results, check your assumptions, and try different approaches. Exploratory data analysis has similar requirements. Once you’re happy with your approach, and you’re ready to run the analysis in an automated manner, you care a lot more about speed and resource usage. These different goals often benefit from different implementation strategies and tools—unless you have a sufficiently […]

Read more

Highlights from Machine Translation and Multilinguality in March 2023

Here is what I found the most interesting in MT and multilinguality in March I only feature two papers (both from Microsoft, co-incidence), not because there were too few on arXiv, but because I did not manage to read that much this month. In this paper, folks from Microsoft in India experiment with zero-shot crosslingual transfer for classification. They use a multi-task learning setup. Besides performing the task in the source language, they teach the model using a two-player game. […]

Read more

Python 3.12 Preview: Ever Better Error Messages

Python 3.12 will be released in October 2023. Even though October is still months away, you can already preview some of the upcoming features, including how Python 3.12 will offer even more readable and actionable error messages. In this tutorial, you’ll: Experience the improved communication in various error situations Learn about the background and limitations of these changes Peek into the CPython source code of the pull requests that made these error messages sparkle There are many other improvements and […]

Read more

Check if a Python String Contains a Substring

If you’re new to programming or come from a programming language other than Python, you may be looking for the best way to check whether a string contains another string in Python. Identifying such substrings comes in handy when you’re working with text content from a file or after you’ve received user input. You may want to perform different actions in your program depending on whether a substring is present or not. In this video course, you’ll focus on the […]

Read more

Python’s del: Remove References From Scopes and Containers

Python’s del statement will allow you to remove names and references from different namespaces. It’ll also allow you to delete unneeded items from your lists and keys from your dictionaries. If you want to learn how to use del in your Python code, then this tutorial is for you. The del statement empowers you to better manage memory resources in your code, making your programs more efficient. To get the most out of this tutorial, you should be familiar with […]

Read more

Staying secure by breaking Docker caching

When building Docker images, caching lets you speed up rebuilding images. But this has a downside: it can keep you from installing security updates from your base Linux distribution. If you cache the image layer that includes the security update… you’re not getting new security updates! There are a number of ways you can try to balance caching with getting security updates, with different tradeoffs. In this article we’ll cover: Caching by default, with recurring rebuild and redeploys. Deliberately breaking […]

Read more

Exploring the Ethical Implications of AI: A Closer Look at the Challenges Ahead

AI ethics is about releasing and implementing AI responsibly, paying attention to several considerations, from data etiquette to tool development risks, as discussed in a previous article. In this article, we’ll explore some of the ethical issues that arise with AI systems, particularly machine learning systems, when we overlook the ethical considerations of AI, often unintentionally. The 5 Common AI Ethical Issues 1. Bias propagation Although there’s a strong belief that algorithms are less biased than humans, AI systems are […]

Read more
1 95 96 97 98 99 908