BNF Notation: Dive Deeper Into Python’s Grammar

While reading the Python documentation, you may have found fragments of BNF notation (Backus–Naur form) that look something like the following: What’s the meaning of all this strange code? How can this help you in understanding Python concepts? How can you read and interpret this notation? In this tutorial, you’ll get to know the basics of Python’s BNF notation and learn how to take advantage of it to get a deep understanding of the language’s syntax and grammar. To get […]

Read more

GraphRAG: Unlocking LLM discovery on narrative private data

Perhaps the greatest challenge – and opportunity – of LLMs is extending their powerful capabilities to solve problems beyond the data on which they have been trained, and to achieve comparable results with data the LLM has never seen.  This opens new possibilities in data investigation, such as identifying themes and semantic concepts with context and grounding on datasets.  In this post, we introduce GraphRAG, created by Microsoft Research, as a significant advance in enhancing the capability of LLMs. Retrieval-Augmented […]

Read more

Create Conway’s Game of Life With Python

Wouldn’t it be cool to build a Python game that only requires initial user input and then seems to take on a mind of its own, creating mesmerizing patterns along the way? You can do exactly that with Conway’s Game of Life, which is about the evolution of cells in a life grid. Implementing the Game of Life algorithm is a good exercise with many interesting challenges that you’ll have to figure out. Specifically, you’ll need to build the life […]

Read more

Primer on Python Decorators

In this tutorial on Python decorators, you’ll learn what they are and how to create and use them. Decorators provide a simple syntax for calling higher-order functions. By definition, a decorator is a function that takes another function and extends the behavior of the latter function without explicitly modifying it. This sounds confusing, but it’ll make more sense after you’ve seen a few examples of how decorators work. You can find all the examples from this tutorial by downloading the […]

Read more

Multiprocessing in Python

When you work on a computer vision project, you probably need to preprocess a lot of image data. This is time-consuming, and it would be great if you could process multiple images in parallel. Multiprocessing is the ability of a system to run multiple processors at one time. If you had a computer with a single processor, it would switch between multiple processes to keep all of them running. However, most computers today have at least a multi-core processor, allowing […]

Read more

Google Colab for Machine Learning Projects

Have you ever wanted an easy-to-configure interactive environment to run your machine learning code that came with access to GPUs for free? Google Colab is the answer you’ve been looking for. It is a convenient and easy-to-use way to run Jupyter notebooks on the cloud, and their free version comes with some limited access to GPUs as well. If you’re familiar with Jupyter notebooks, learning Colab will be a piece of cake, and we can even import Jupyter notebooks to […]

Read more

Mastering Pair Plots for Visualization and Hypothesis Creation in the Ames Housing Market

Navigating the complex landscape of real estate analytics involves unraveling distinct narratives shaped by various property features within the housing market data. Our exploration today takes us into the realm of a potent yet frequently overlooked data visualization tool: the pair plot. This versatile graphic not only sheds light on the robustness and orientation of connections between features and sale prices but also provides a holistic perspective on the dynamics among different features within the dataset. Let’s get started. Mastering […]

Read more

How to Write Beautiful Python Code With PEP 8

PEP 8, sometimes spelled PEP8 or PEP-8, is a document that provides guidelines and best practices on how to write Python code. It was written in 2001 by Guido van Rossum, Barry Warsaw, and Alyssa Coghlan. The primary focus of PEP 8 is to improve the readability and consistency of Python code. By the end of this tutorial, you’ll be able to: Write Python code that conforms to PEP 8 Understand the reasoning behind the guidelines laid out in PEP […]

Read more

Research Focus: Week of February 5, 2024

Welcome to Research Focus, a series of blog posts that highlights notable publications, events, code/datasets, new hires and other milestones from across the research community at Microsoft. EVENT RECAP Microsoft Research Forum series kicks off with focus on the promise and challenges of AI With a look back at the incredible changes of 2023 and a look ahead at the tangible advances to come, the inaugural Microsoft Research Forum explored bold new ideas and  

Read more
1 56 57 58 59 60 908