Python 3.12 Preview: More Intuitive and Consistent F-Strings

Every new Python version brings many changes, updates, fixes, and new features. Python 3.12 will be the next minor version and is now in the beta phase. In this version, the core team has been working intensely to formalize and improve the syntax and behavior of one of the most popular Python features: f-strings. F-strings, short for formatted strings, are string literals prefixed by either a lowercase or uppercase letter F. These strings provide a concise and clean syntax that […]

Read more

Socket Programming in Python Part 1: Handling Connections

Sockets and the socket API are used to send messages across a network. They provide a form of inter-process communication (IPC). The network can be a logical, local network to the computer, or one that’s physically connected to an external network, with its own connections to other networks. The obvious example is the Internet, which you connect to with your ISP. In this two-part series, you’ll create: A simple socket server and client An improved version that handles multiple connections […]

Read more

Python Numpy Ravel() Explained for Beginners

Introduction Numpy Ravel() function is used to flatten a multi-dimensional Numpy array into a 1-D array. While flattening the array, it only returns a view of the original array and not a new copy. In this article, we will explore the syntax and various use cases of the np.ravel() function, with detailed examples to explain its functionality. Syntax The syntax for Ravel flatten() is as below : numpy.ravel(a, order=’C’) Parameters: a: This is the input    

Read more

Microsoft at ICML 2023: Discoveries and advancements in machine learning

Machine learning’s rapid emergence and pervasive impact has revolutionized industries and societies across the globe. Its ability to extract insights, recognize patterns, and make intelligent predictions from vast amounts of data has paved the way for a new era of progress. From traffic and weather prediction to speech pattern recognition and advanced medical diagnostics, machine learning has been shattering the boundaries of possibility, inviting us to explore new frontiers of innovation. The International Conference on Machine Learning (ICML 2023) serves […]

Read more

Collaborators: Gaming AI with Haiyan Zhang

I’m delighted to be back in the booth today with Haiyan Zhang. When we last talked, Haiyan was Director of Innovation at Microsoft Research Cambridge in the UK and Technical Advisor to Lab Director Chris Bishop. In 2020, she moved across the pond and into the role of Chief of Staff for Microsoft Gaming. Now she’s the General Manager of Gaming AI at Xbox, and I normally say, let’s meet our collaborators right now, but today, we’ll be exploring several […]

Read more

Python’s list Data Type: A Deep Dive With Examples

The list class is a fundamental built-in data type in Python. It has an impressive and useful set of features, allowing you to efficiently organize and manipulate heterogeneous data. Knowing how to use lists is a must-have skill for you as a Python developer. Lists have many use cases, so you’ll frequently reach for them in real-world coding. By working through this tutorial, you’ll dive deep into lists and get a solid understanding of their key features. This knowledge will […]

Read more

Research Focus: Week of July 17, 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 RetroRanker: leveraging reaction changes to improve retrosynthesis prediction through re-ranking Retrosynthesis is an important task in organic chemistry. It’s designed to propose a list  

Read more

Creating Web Maps From Your Data With Python Folium

If you’re working with geospatial data in Python, then you might want to quickly visualize that data on a map. Python’s Folium library gives you access to the mapping strengths of the Leaflet JavaScript library through a Python API. It allows you to create interactive geographic visualizations that you can share as a website. You’ll build a web map that displays the ecological footprint per capita of many countries and is based on a similar map on Wikipedia. Along the […]

Read more

Python News: What’s New From June 2023

June 2023 welcomed a lot of new people and positions to the Python Software Foundation (PSF). Elections wrapped up for directors, and a new security developer in residence got to work. The organization is still looking to expand, though, and it announced a new deputy CPython developer in residence position that could go to a less seasoned programmer. Over at Pydantic, version 2 brings improved performance, while the sun went down on Python 3.7. It’s summer, so get ready for […]

Read more

Numpy Flatten Tutorial | numpy.ndarray.flatten()

Introduction In Python Numpy library numpy.ndarray.flatten() is used to flatten multi-dimensional arrays into one-dimensional arrays. In this article, we will explore the syntax, functionality, and various examples of np.flatten() function. Syntax The syntax for Numpy flatten() is straightforward as shown below : numpy.ndarray.flatten(order=’C’) Parameters: order (optional): The order parameter determines how elements are arranged in the flattened array. It can take any of the following values: ‘C’: This is the default order and    

Read more
1 134 135 136 137 138 985