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

How to Download Files From URLs With Python

When it comes to file retrieval, Python offers a robust set of tools and packages that are useful in a variety of applications, from web scraping to automating scripts and analyzing retrieved data. Downloading files from a URL programmatically is a useful skill to learn for various programming and data projects and workflows. In this tutorial, you’ll learn how to: Download files from the Web using the standard library as well as third-party libraries in Python Stream data to download […]

Read more

A fail-in-place approach for sustainable server operations

This research paper was presented at the 17th USENIX Symposium on Operating Systems Design and Implementation (OSDI), a premier forum for discussing the design, implementation, and implications of systems software. Cloud platforms aim to provide a seamless user experience, alleviating the challenge and complexity of managing physical servers in datacenters. Hardware failures are one such challenge,  

Read more
1 133 134 135 136 137 985