Research Focus: Week of August 28, 2023

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. In this article NEW RESEARCH An illusion of predictability in scientific results: Even experts confuse inferential uncertainty and outcome variability In many fields, practitioners focus on inference (precisely estimating  

Read more

Building a “heavy metal quartet” of AI compilers

By MSR Editor  Compilation is an important process in program development, in which a program called a compiler translates source code written in a programming language into machine code executable on computer hardware. As AI technology and large-scale AI models become increasingly prevalent across the digital world, their unique characteristics are posing new challenges for compilers. As AI models have evolved from early versions like recurrent neural networks (RNN) and convolutional neural networks (CNN) to more recent iterations like Transformer, […]

Read more

Create a Python Wordle Clone With Rich

In this video course, you’ll build your own Wordle clone for the terminal. Since Josh Wardle launched Wordle in October 2021, millions of people have played it. While you can play the original game on the Web, you’ll create your version as a command-line application and then use the Rich library to make it look good. As you follow along in this step-by-step project, you’ll practice how to set up a simple prototype game before iteratively developing it into a […]

Read more

Numpy Power Tutorial | Numpy.power() | np.power()

Introduction NumPy is a popular package for scientific computing in Python that has many functions for linear algebra operations on N-dimensional array objects. Numpy.power() is a function that is used to calculate the element-wise exponential or power of the NumPy array. In this tutorial, we’ll see its syntax, usage, and various aspects of the np.power() function along with multiple examples. Syntax of numpy.power() The syntax of numpy.power() function is as follows – numpy.power(x1, x2, out=None,    

Read more

How to Iterate Through a Dictionary in Python

Dictionaries are one of the most important and useful built-in data structures in Python. They’re everywhere and are a fundamental part of the language itself. In your code, you’ll use dictionaries to solve many programming problems that may require iterating through the dictionary at hand. In this tutorial, you’ll dive deep into how to iterate through a dictionary in Python. Solid knowledge of dictionary iteration will help you write better, more robust code. In your journey through dictionary iteration, you’ll […]

Read more

Click and Python: Build Extensible and Composable CLI Apps

You can use the Click library to quickly provide your Python automation and tooling scripts with an extensible, composable, and user-friendly command-line interface (CLI). Whether you’re a developer, data scientist, DevOps engineer, or someone who often uses Python to automate repetitive tasks, you’ll very much appreciate Click and its unique features. In the Python ecosystem, you’ll find multiple libraries for creating CLIs, including argparse from the standard library, Typer, and a few others. However, Click offers a robust, mature, intuitive, […]

Read more

Replacing a String in Python

If you’re looking for ways to remove or replace all or part of a string in Python, then this course is for you. You’ll be taking a fictional chat room transcript and sanitizing it using both the .replace() method and the re.sub() function. In Python, the .replace() method and the re.sub() function are often used to clean up text by removing strings or substrings or replacing them. In this tutorial, you’ll be playing the role of a developer for a […]

Read more

Numpy Square Root Tutorial | Numpy.sqrt() | np.sqrt()

Introduction Numpy is a powerful library in Python that offers support for multi-dimensional arrays and a vast collection of mathematical functions. Among these mathematical functions, the numpy.sqrt() function is very commonly used, as it calculates the square root of every element in the array. In this article, we’ll understand its syntax, usage, and various aspects of the numpy.sqrt() function along with various examples. Syntax of numpy.sqrt() The syntax of numpy.sqrt()function is quite simple as explained below.    

Read more

Build a Code Image Generator With Python

If you’re active on social media, then you know that images and videos are popular forms of content. As a programmer, you mainly work with text, so sharing the content that you create on a daily basis may not seem intuitive. That’s where a code image generator can come in handy for you! With a code image generator, you can create a nice-looking image of your code snippets. That way, you can share code without worrying about formatting, different syntax […]

Read more
1 120 121 122 123 124 974