What Are Python Asterisk and Slash Special Parameters For?

Whenever you think of Python’s asterisk operator (*), you most likely think of multiplication or exponentiation. Similarly, you probably associate the forward slash operator (/) with division. But you can also use the bare asterisk and slash as special parameters in function headers. These do something completely unrelated to mathematics. When defining functions, you’ll often include a list of comma-separated parameters to define what types of arguments the user can pass to your function. Using the asterisk and forward slash […]

Read more

Microsoft at KDD 2023: Advancing health at the speed of AI

This content was given as a keynote at the Workshop of Applied Data Science for Healthcare and covered during a tutorial at the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, a premier forum for advancement, education, and adoption of the discipline of knowledge discovering and data mining. Recent and noteworthy advancements in generative AI and large language models (LLMs) are leading to profound transformations in various domains. This blog explores how these breakthroughs can accelerate progress in […]

Read more

Prompt Engineering: A Practical Example

You’ve used ChatGPT, and you understand the potential of using a large language model (LLM) to assist you in your tasks. Maybe you’re already working on an LLM-supported application and read about prompt engineering, but you’re unsure how to translate the theoretical concepts into a practical example. Your text prompt instructs the LLM’s responses, so tweaking it can get you vastly different output. In this tutorial, you’ll apply multiple prompt engineering techniques to a real-world example. You’ll experience prompt engineering […]

Read more

What Does if __name__ == “__main__” Mean in Python?

You’ve likely encountered Python’s if __name__ == “__main__” idiom when reading other people’s code. You might have even used if __name__ == “__main__” in your own scripts. But did you use it correctly? This line of code can seem a little cryptic, so don’t fret if you’re not completely sure what it does, why you might want it, and when to use it. In this video course, you’ll learn all about Python’s if __name__ == “__main__” idiom. What’s Included: Downloadable […]

Read more

Python News: What’s New From July 2023

It’s always a good month to be a Pythonista, but July 2023 really drove this point home! The release of a new Python 3.12 beta version and Cython 3.0 moved the language forward, and more change is on the way with the steering council’s announcement that a no-GIL CPython is in the works. Development in the Python world is a collective effort, with big contributions coming not from only the core developers but also everyday programmers. Sharing ideas is key […]

Read more

Collaborators: Data-driven decision-making with Jina Suh and Shamsi Iqbal

I’m here today with Dr. Jina Suh, a Principal Researcher in the Human Understanding and Empathy group at Microsoft Research, and Dr. Shamsi Iqbal, the Principal Applied and Data Science Manager for the Viva Insights team in the Microsoft Data Platform and Growth organization. Jina and Shamsi are collaborating on a research project for Viva Insights that they hope will help people leaders reduce uncertainties and make informed and data-driven decisions for their teams. Before we unpack how they hope […]

Read more

Introduction Tutorial to Hugging Face Datasets Library

What is Hugging Face Datasets Library? Hugging Face is quite popular for providing ready-to-use pre-trained Transformer models. However, Hugging Face is also a great place to find datasets for your machine learning and it provides a library called Datasets for easy data access, management, preprocessing, caching, etc. Some of the advantages of using the Hugging Face Datasets library are – 1. Disk-Based Storage One of the most important features of the Dataset library is its efficient data access.    

Read more

Working With the Python operator Module

In this section, you’ll learn about three of the higher-order functions that Python’s operator module makes available to you: itemgetter(), attrgetter(), and methodcaller(). You’ll learn how these allow you to work with Python collections in a range of useful ways that encourage a functional style of Python programming. Selecting Values From Multidimensional Collections With itemgetter() The first function that you’ll learn about is operator.itemgetter(). In its basic form, you pass it a single parameter that represents an index. Then itemgetter() […]

Read more

Research Focus: Week of July 31, 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 Protecting the web from malicious activities such as bots or DoS attacks is an important goal. Researchers and practitioners have identified different approaches to balance user  

Read more

Reversing Strings in Python

When you’re using Python strings often in your code, you may face the need to work with them in reverse order. Python includes a few handy tools and techniques that can help you out in these situations. With them, you’ll be able to build reversed copies of existing strings quickly and efficiently. Knowing about these tools and techniques for reversing strings in Python will help you improve your proficiency as a Python developer. In this video course, you’ll learn how […]

Read more
1 136 137 138 139 140 988