concept people in category python

This is an excerpt from Manning's book Deep Learning with Python, Second Edition.
Input data points — For instance, if the task is speech recognition, these data points could be sound files of people speaking. If the task is image tagging, they could be pictures.
You may sometimes be offered ethically dubious projects, such as "building a AI that rates the trustworthiness of someone from a picture of their face". First of all, the validity of the project is in doubt: it isn’t clear why trustworthiness would be reflected on someone’s face. Second, such a task opens the door to all kinds of ethical problems. Collecting a dataset for this task would amount to recording the biases and prejudices of the people who label the pictures. The models you would train on such data would be merely encoding these same biases — into a blackbox algorithm which would give them a thin veneer of legitimacy. In a largely tech-illiterate society like ours, "the AI algorithm said this person cannot be trusted" strangely appears to carry more weight and objectivity than "John Smith said this person cannot be trusted" — despite the former being a learned approximation of the latter. Your model would be whitewashing and operationalizing at scale the worst aspects of human judgement, with negative effects on the lives of real people.

This is an excerpt from Manning's book Natural Language Processing in Action: Understanding, analyzing, and generating text with Python.
Let’s build a quick and dirty chatbot. It won’t be very capable, and it will require a lot of thinking about the English language. You will also have to hardcode regular expressions to match the ways people may try to say something. But don’t worry if you think you couldn’t have come up with this Python code yourself. You won’t have to try to think of all the different ways people can say something, like we did in this example. You won’t even have to write regular expressions (regexes) to build an awesome chatbot. We show you how to build a chatbot of your own in later chapters without hardcoding anything. A modern chatbot can learn from reading (processing) a bunch of English text. And we show you how to do that in later chapters.
Now on to our main topic—sociology. Okay, not, but you’ll make a quick detour into the world of counting people and words, and you’ll learn a seemingly universal rule that governs the counting of most things. It turns out, that in language, like most things involving living organisms, patterns abound.
Zipf’s law can help you predict the frequencies of all sorts of things, including words, characters, and people.

This is an excerpt from Manning's book Get Programming: Learn to code with Python.
A misconception, both for veteran programmers and for people who have never programmed before, is that after you start to learn how to program, you’ll have to continue until you become a professional programmer. Likely, this misconception stems from associating programming with incredibly complex systems: your operating system, car/aviation software, artificial intelligence that learns, and many others.
Listing 23.7. Body of the analyze_friends function
def analyze_friends(names, phones, all_areacodes, all_places): """ names, a tuple of friend names phones, a tuple of phone numbers without special symbols all_areacodes, a tuple of strings for the area codes all_places, a tuple of strings for the US states Prints out how many friends you have and every unique state that is represented by their phone numbers. """ def get_unique_area_codes(): """ Returns a tuple of all unique area codes in phones """ area_codes = () for ph in phones: if ph[0:3] not in area_codes: area_codes += (ph[0:3],) return area_codes def get_states(some_areacodes): """ some_area_codes, a tuple of area codes Returns a tuple of the states associated with those area codes """ states = () for ac in some_areacodes: if ac not in all_areacodes: states += ("BAD AREACODE",) else: index = all_areacodes.index(ac) states += (all_places[index],) return states num_friends = len(names) #1 unique_area_codes = get_unique_area_codes() #2 unique_states = get_states(unique_area_codes) #3 print("You have", num_friends, "friends!") #4 print("They live in", unique_states) #5 #6
You can even pick a certain number of people from the list:

This is an excerpt from Manning's book Hello! Python.
Most of the aspects of programming that we’ll cover in this book deal with design. Design is typically described as a common solution to a particular problem. For example, architecture is the design of buildings and the space that they occupy. It addresses some of the problems common to buildings, such as how people get in and out and move around inside a building, how they occupy it, how to make people happy about being in a building, using materials sensibly, and so forth.
Finally, we covered some aspects of game design: your game needs to be fun and include some familiar elements to attract people. It’s important to get feedback from others: what’s fun for you might not be fun for anybody else.