Posts

Zero-shot, one-shot, and few-shot learning with generative AI

Image
  Zero-shot, one-shot, and few-shot learning with generative AI If you've been exploring the capabilities of Generative AI, you've likely encountered the terms "zero-shot," "one-shot," and "few-shot" learning. These concepts are fundamental to understanding how AI models, like the ones you interact with, learn and adapt to new tasks. They describe the varying degrees to which an AI model can generate responses based on prior knowledge or examples provided in the prompt. Understanding these learning paradigms is crucial for crafting effective prompts that elicit accurate, relevant, and insightful responses from the AI. Let’s take a look into the technical aspects of zero-shot, one-shot, and few-shot learning, explore their implications for prompt engineering, and discover how they can empower you to achieve even greater results in your data analysis endeavors. The power of pre-trained models Modern generative AI models are the result of a monumental...

Implement value objects in EF

Important characteristics of value objects Value object implementation in C# How to persist value objects in the database with EF Core 2.0 and later Persist value objects as owned entity types in EF Core 2.0 and later Additional resources  Tip This content is an excerpt from the eBook, .NET Microservices Architecture for Containerized .NET Applications, available on .NET Docs or as a free downloadable PDF that can be read offline. .NET Microservices Architecture for Containerized .NET Applications eBook cover thumbnail. As discussed in earlier sections about entities and aggregates, identity is fundamental for entities. However, there are many objects and data items in a system that do not require an identity and identity tracking, such as value objects. A value object can reference other entities. For example, in an application that generates a route that describes how to get from one point to another, that route would be a value object. It would be a snapshot of points on a speci...

Data exploration

Image
Data exploration: An introduction for data analysts Data exploration is the foundational phase of data analysis, where you familiarize yourself with your dataset. It's about understanding its structure, identifying potential issues, and beginning to formulate questions for deeper investigation. Data exploration encompasses a diverse range of activities, each designed to reveal different aspects of your dataset. These activities can be broadly categorized into three core areas: understanding your data, uncovering relationships, and formulating hypotheses. Understanding your data This phase involves getting familiar with the individual variables and their characteristics within your dataset. The first step is to identify the types of variables you're working with. Are they numerical (continuous or discrete) or categorical (nominal or ordinal)? Understanding the nature of your variables is fundamental for choosing appropriate analysis techniques and visualizations. Next, you'l...

Event Sourcing

Image
  Introduction Event Sourcing has been used in production by some of the world's biggest companies (including Netflix and Walmart) for years, providing them with the platform to rapidly scale, iterate and evolve their systems, and establishing a data model that delivers a strong competitive advantage. In this guide, we discuss what Event Sourcing is,  why  you'd use it, the range of benefits it provides and we break down the jargon. What is Event Sourcing? Event Sourcing is an architectural design pattern where changes that occur in a domain are immutably stored as events in an append-only log. This provides a business with richer data as each change that occurs within the domain is stored as a sequence of events which can be replayed in the order they occurred. This means you’re able to see more than just the current state of your domain - you can see what lead up to the current state.  In addition, as events also contain the context of the change – the ‘what’, ‘whe...