Verwandte Artikel zu Real-World Python: A Hacker's Guide to Solving...

Real-World Python: A Hacker's Guide to Solving Problems with Code - Softcover

 
9781718500624: Real-World Python: A Hacker's Guide to Solving Problems with Code

Inhaltsangabe

A project-based approach to learning Python programming for beginners. Intriguing projects teach you how to tackle challenging problems with code.

You've mastered the basics. Now you're ready to explore some of Python's more powerful tools. Real-World Python will show you how.

Through a series of hands-on projects, you'll investigate and solve real-world problems using sophisticated computer vision, machine learning, data analysis, and language processing tools. You'll be introduced to important modules like OpenCV, NumPy, Pandas, NLTK, Bokeh, Beautiful Soup, Requests, HoloViews, Tkinter, turtle, matplotlib, and more. You'll create complete, working programs and think through intriguing projects that show you how to:

  • Save shipwrecked sailors with an algorithm designed to prove the existence of God
  • Detect asteroids and comets moving against a starfield
  • Program a sentry gun to shoot your enemies and spare your friends
  • Select landing sites for a Mars probe using real NASA maps
  • Send unbreakable messages based on a book code
  • Survive a zombie outbreak using data science
  • Discover exoplanets and alien megastructures orbiting distant stars
  • Test the hypothesis that we're all living in a computer simulation
  • And more!

  • If you're tired of learning the bare essentials of Python Programming with isolated snippets of code, you'll relish the relevant and geeky fun of Real-World Python!

    Die Inhaltsangabe kann sich auf eine andere Ausgabe dieses Titels beziehen.

    Über die Autorin bzw. den Autor

    Lee Vaughan is a programmer, pop culture enthusiast, educator, and author of Impractical Python Projects
    (No Starch Press). As a former executive-level scientist at ExxonMobil, he spent decades constructing and reviewing complex computer models, developed and tested software, and trained geoscientists and engineers.

    Auszug. © Genehmigter Nachdruck. Alle Rechte vorbehalten.

    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 fiction novels including The War of The Worlds, The Time Machine, The Invisible Man, and The Island of Dr. Moreau.

    In 1912, the Strand Magazine published The Lost World, a serialized version of a science fiction novel. It told the story of an Amazon basin expedition, led by zoology professor George Edward Challenger, that encountered living dinosaurs and a vicious tribe of ape-like creatures.

    Although the author of the novel is known, for this project, let’s pretend it’s in dispute and it’s your job to solve the mystery. Experts have narrowed the field down to two authors, Doyle and Wells. Wells is slightly favored because The Lost World is a work of science fiction, which is his purview. It also includes brutish troglodytes redolent of the morlocks in his 1895 work The Time Machine. Doyle, on the other hand, is known for detective stories and historical fiction.


    THE OBJECTIVE

    Write a Python program that uses stylometry to determine whether Sir Arthur Conan Doyle or H. G. Wells wrote the novel The Lost World.

    THE STRATEGY

    The science of natural language processing (NLP) deals with the interactions between the precise and structured language of computers and the nuanced, frequently ambiguous “natural” language used by humans. Example uses for NLP include machine translations, spam detection, comprehension of search engine questions, and predictive text recognition for cell phone users.

    The most common NLP tests for authorship analyze the following features of a text:

    Word length A frequency distribution plot of the length of words in a document

    Stop words A frequency distribution plot of stop words (short, noncontextual function words like the, but, and if)

    Parts of speech A frequency distribution plot of words based on their syntactic functions (such as nouns, pronouns, verbs, adverbs, adjectives, and so on)

    Most common words A comparison of the most commonly used words in a text

    Jaccard similarity A statistic used for gauging the similarity and diversity of a sample set


    If Doyle and Wells have distinctive writing styles, these five tests should be enough to distinguish between them. We’ll talk about each test in more detail in the coding section.

    To capture and analyze each author’s style, you’ll need a representative corpus, or a body of text. For Doyle, use the famous Sherlock Holmes novel The Hound of the Baskervilles, published in 1902. For Wells, use The War of the Worlds, published in 1898. Both these novels contain more than 50,000 words, more than enough for a sound statistical sampling. You’ll then compare each author’s sample to The Lost World to determine how closely the writing styles match.

    To perform stylometry, you’ll use the Natural Language Toolkit (NLTK), a popular suite of programs and libraries for working with human language data in Python. It’s free and works on Windows, macOS, and Linux. Created in 2001 as part of a computational linguistics course at the
    University of Pennsylvania, NLTK has continued to develop and expand with the help of dozens of contributors.

    „Über diesen Titel“ kann sich auf eine andere Ausgabe dieses Titels beziehen.

    • VerlagNo Starch Press
    • Erscheinungsdatum2020
    • ISBN 10 1718500629
    • ISBN 13 9781718500624
    • EinbandTapa blanda
    • SpracheEnglisch
    • Anzahl der Seiten360
    • Kontakt zum HerstellerNicht verfügbar

    Gebraucht kaufen

    Zustand: Wie neu
    LIKE NEW!!! Has a red or black...
    Diesen Artikel anzeigen

    EUR 14,20 für den Versand von USA nach Deutschland

    Versandziele, Kosten & Dauer

    Gratis für den Versand innerhalb von/der Deutschland

    Versandziele, Kosten & Dauer

    Suchergebnisse für Real-World Python: A Hacker's Guide to Solving...

    Beispielbild für diese ISBN

    Vaughan, Lee
    Verlag: No Starch Press, 2020
    ISBN 10: 1718500629 ISBN 13: 9781718500624
    Gebraucht paperback

    Anbieter: Bellwetherbooks, McKeesport, PA, USA

    Verkäuferbewertung 5 von 5 Sternen 5 Sterne, Erfahren Sie mehr über Verkäufer-Bewertungen

    paperback. Zustand: As New. LIKE NEW!!! Has a red or black remainder mark on bottom/exterior edge of pages. Bestandsnummer des Verkäufers NS-PB-LN-1718500629

    Verkäufer kontaktieren

    Gebraucht kaufen

    EUR 9,06
    Währung umrechnen
    Versand: EUR 14,20
    Von USA nach Deutschland
    Versandziele, Kosten & Dauer

    Anzahl: 2 verfügbar

    In den Warenkorb

    Foto des Verkäufers

    Lee Vaughan
    Verlag: No Starch Press, 2020
    ISBN 10: 1718500629 ISBN 13: 9781718500624
    Neu Softcover

    Anbieter: moluna, Greven, Deutschland

    Verkäuferbewertung 5 von 5 Sternen 5 Sterne, Erfahren Sie mehr über Verkäufer-Bewertungen

    Zustand: New. Lee Vaughan is a programmer, pop culture enthusiast, educator, and author of Impractical Python Projects(No Starch Press). As a former executive-level scientist at ExxonMobil, he spent decades constructing and reviewing complex computer mo. Bestandsnummer des Verkäufers 377137020

    Verkäufer kontaktieren

    Neu kaufen

    EUR 30,58
    Währung umrechnen
    Versand: Gratis
    Innerhalb Deutschlands
    Versandziele, Kosten & Dauer

    Anzahl: 3 verfügbar

    In den Warenkorb

    Beispielbild für diese ISBN

    Vaughan, Lee
    Verlag: No Starch Press, 2020
    ISBN 10: 1718500629 ISBN 13: 9781718500624
    Gebraucht paperback

    Anbieter: Bookmans, Tucson, AZ, USA

    Verkäuferbewertung 5 von 5 Sternen 5 Sterne, Erfahren Sie mehr über Verkäufer-Bewertungen

    paperback. Zustand: Good. Satisfaction 100% guaranteed. Bestandsnummer des Verkäufers mon0002576746

    Verkäufer kontaktieren

    Gebraucht kaufen

    EUR 9,35
    Währung umrechnen
    Versand: EUR 21,92
    Von USA nach Deutschland
    Versandziele, Kosten & Dauer

    Anzahl: 1 verfügbar

    In den Warenkorb

    Beispielbild für diese ISBN

    Lee Vaughan
    ISBN 10: 1718500629 ISBN 13: 9781718500624
    Neu PAP

    Anbieter: PBShop.store UK, Fairford, GLOS, Vereinigtes Königreich

    Verkäuferbewertung 4 von 5 Sternen 4 Sterne, Erfahren Sie mehr über Verkäufer-Bewertungen

    PAP. Zustand: New. New Book. Shipped from UK. Established seller since 2000. Bestandsnummer des Verkäufers DB-9781718500624

    Verkäufer kontaktieren

    Neu kaufen

    EUR 28,76
    Währung umrechnen
    Versand: EUR 4,68
    Von Vereinigtes Königreich nach Deutschland
    Versandziele, Kosten & Dauer

    Anzahl: 3 verfügbar

    In den Warenkorb

    Beispielbild für diese ISBN

    Lee Vaughan
    ISBN 10: 1718500629 ISBN 13: 9781718500624
    Neu PAP

    Anbieter: PBShop.store US, Wood Dale, IL, USA

    Verkäuferbewertung 5 von 5 Sternen 5 Sterne, Erfahren Sie mehr über Verkäufer-Bewertungen

    PAP. Zustand: New. New Book. Shipped from UK. Established seller since 2000. Bestandsnummer des Verkäufers DB-9781718500624

    Verkäufer kontaktieren

    Neu kaufen

    EUR 33,30
    Währung umrechnen
    Versand: EUR 0,76
    Von USA nach Deutschland
    Versandziele, Kosten & Dauer

    Anzahl: 3 verfügbar

    In den Warenkorb

    Foto des Verkäufers

    Lee Vaughan
    ISBN 10: 1718500629 ISBN 13: 9781718500624
    Neu Taschenbuch

    Anbieter: Rheinberg-Buch Andreas Meier eK, Bergisch Gladbach, Deutschland

    Verkäuferbewertung 5 von 5 Sternen 5 Sterne, Erfahren Sie mehr über Verkäufer-Bewertungen

    Taschenbuch. Zustand: Neu. Neuware -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 toolsThe 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. 328 pp. Englisch. Bestandsnummer des Verkäufers 9781718500624

    Verkäufer kontaktieren

    Neu kaufen

    EUR 38,50
    Währung umrechnen
    Versand: Gratis
    Innerhalb Deutschlands
    Versandziele, Kosten & Dauer

    Anzahl: 2 verfügbar

    In den Warenkorb

    Foto des Verkäufers

    Lee Vaughan
    ISBN 10: 1718500629 ISBN 13: 9781718500624
    Neu Taschenbuch

    Anbieter: BuchWeltWeit Ludwig Meier e.K., Bergisch Gladbach, Deutschland

    Verkäuferbewertung 5 von 5 Sternen 5 Sterne, Erfahren Sie mehr über Verkäufer-Bewertungen

    Taschenbuch. Zustand: Neu. Neuware -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 toolsThe 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. 328 pp. Englisch. Bestandsnummer des Verkäufers 9781718500624

    Verkäufer kontaktieren

    Neu kaufen

    EUR 38,50
    Währung umrechnen
    Versand: Gratis
    Innerhalb Deutschlands
    Versandziele, Kosten & Dauer

    Anzahl: 2 verfügbar

    In den Warenkorb

    Foto des Verkäufers

    Lee Vaughan
    ISBN 10: 1718500629 ISBN 13: 9781718500624
    Neu Taschenbuch

    Anbieter: buchversandmimpf2000, Emtmannsberg, BAYE, Deutschland

    Verkäuferbewertung 5 von 5 Sternen 5 Sterne, Erfahren Sie mehr über Verkäufer-Bewertungen

    Taschenbuch. Zustand: Neu. Neuware -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 toolsThe 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.Libri GmbH, Europaallee 1, 36244 Bad Hersfeld 328 pp. Englisch. Bestandsnummer des Verkäufers 9781718500624

    Verkäufer kontaktieren

    Neu kaufen

    EUR 38,50
    Währung umrechnen
    Versand: Gratis
    Innerhalb Deutschlands
    Versandziele, Kosten & Dauer

    Anzahl: 2 verfügbar

    In den Warenkorb

    Foto des Verkäufers

    Lee Vaughan
    ISBN 10: 1718500629 ISBN 13: 9781718500624
    Neu Taschenbuch

    Anbieter: AHA-BUCH GmbH, Einbeck, Deutschland

    Verkäuferbewertung 5 von 5 Sternen 5 Sterne, Erfahren Sie mehr über Verkäufer-Bewertungen

    Taschenbuch. Zustand: Neu. Neuware - 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 toolsThe 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. Bestandsnummer des Verkäufers 9781718500624

    Verkäufer kontaktieren

    Neu kaufen

    EUR 38,96
    Währung umrechnen
    Versand: Gratis
    Innerhalb Deutschlands
    Versandziele, Kosten & Dauer

    Anzahl: 2 verfügbar

    In den Warenkorb

    Beispielbild für diese ISBN

    Lee Vaughan
    Verlag: No Starch Press,US, 2020
    ISBN 10: 1718500629 ISBN 13: 9781718500624
    Neu Paperback / softback

    Anbieter: THE SAINT BOOKSTORE, Southport, Vereinigtes Königreich

    Verkäuferbewertung 5 von 5 Sternen 5 Sterne, Erfahren Sie mehr über Verkäufer-Bewertungen

    Paperback / softback. Zustand: New. New copy - Usually dispatched within 4 working days. 526. Bestandsnummer des Verkäufers B9781718500624

    Verkäufer kontaktieren

    Neu kaufen

    EUR 32,55
    Währung umrechnen
    Versand: EUR 6,98
    Von Vereinigtes Königreich nach Deutschland
    Versandziele, Kosten & Dauer

    Anzahl: 3 verfügbar

    In den Warenkorb

    Es gibt 22 weitere Exemplare dieses Buches

    Alle Suchergebnisse ansehen