Read more
Zusatztext "Python programmers with a little bit of experience, looking for a fun challenge that relates to real-world examples, should read [this book]." —Geek Tech Stuff "I recommend this book for all Python learners!" —Kelly Paredes, Teaching Python podcast "This is the most amazing book anyone could pick up if they are unsure about what machine learning job they should focus on." —Ian Mizer, Atlanta Python Programmers Group "Read this book and do the work. You will find yourself building programs that address real-world problems and readying yourself to attack similarly challenging problems in whatever field you are working." —Sandra Henry-Stocker, Linux journalist, NetworkWorld (IDG) Informationen zum Autor Lee Vaughan Klappentext A project-based approach to learning Python programming for beginners. Intriguing projects teach you how to tackle challenging problems with code. With its emphasis on project-based practice, Real World Python will take you from playing with syntax to writing complete programs in no time. You'll conduct experiments, explore statistical concepts, and solve novel problems that have frustrated geniuses throughout history, like detecting distant exoplanets, as you continue to build your Python skills. Chapters begin with a clearly defined project goal and a discussion of ways to attack the problem, followed by a mission designed to make you think like a programmer. You'll direct a Coast Guard search-and-rescue effort, plot and execute a NASA flight to the moon, protect access to a secure lab using facial recognition, and more. Along the way you'll learn how to: • Use libraries like matplotlib, NumPy, Bokeh, pandas, Requests, Beautiful Soup, and turtle • Work with Natural Language Processing and computer vision modules like NLTK and OpenCV • Write a program to detect and track objects moving across a starfield • Scrape speeches from the internet and autosummarize them • Use the Mars Orbiter Laser Altimeter (MOLA) map to select spacecraft landing sites • Survive a zombie apocalypse with the aid of data-plotting and visualization tools The book's programs are beginner-friendly, but as you progress you'll learn more sophisticated techniques to help you grow your coding capabilities. Once your missions are accomplished, you'll be ready to solve real-world problems with Python on your own. Leseprobe ATTRIBUTING AUTHORSHIP WITH STYLOMETRY Stylometry is the quantitative study of literary style through computational text analysis. It’s based on the idea that we all have a unique, consistent, and recognizable style to our writing. This includes our vocabulary, our use of punctuation, the average length of our sentences and words, and so on. A common application of stylometry is authorship attribution. Do you ever wonder if Shakespeare really wrote all his plays? Or if John Lennon or Paul McCartney wrote the song “In My Life”? Could Robert Galbraith, author of A Cuckoo’s Calling , really be J. K. Rowling in disguise? Stylometry can find the answer! Stylometry has been used to overturn murder convictions and even helped identify and convict the Unabomber in 1996. Other uses include detecting plagiarism and determining the emotional tone behind words, such as in social media posts. Stylometry can even be used to detect signs of mental depression and suicidal tendencies. In this chapter, you’ll use multiple stylometric techniques to determine whether Sir Arthur Conan Doyle or H. G. Wells wrote the novel The Lost World . Project #2: The Hound, The War, and The Lost World Sir Arthur Conan Doyle (1859–1930) is best known for the Sherlock Holmes stories, considered milestones in the field of crime fiction. H. G. Wells (1866–1946) is famous for several groundbreaking science fic...