Python

345
Ebook

Mastering spaCy. An end-to-end practical guide to implementing NLP applications using the Python ecosystem

Duygu Altinok

spaCy is an industrial-grade, efficient NLP Python library. It offers various pre-trained models and ready-to-use features. Mastering spaCy provides you with end-to-end coverage of spaCy's features and real-world applications.You'll begin by installing spaCy and downloading models, before progressing to spaCy's features and prototyping real-world NLP apps. Next, you'll get familiar with visualizing with spaCy's popular visualizer displaCy. The book also equips you with practical illustrations for pattern matching and helps you advance into the world of semantics with word vectors. Statistical information extraction methods are also explained in detail. Later, you'll cover an interactive business case study that shows you how to combine all spaCy features for creating a real-world NLP pipeline. You'll implement ML models such as sentiment analysis, intent recognition, and context resolution. The book further focuses on classification with popular frameworks such as TensorFlow's Keras API together with spaCy. You'll cover popular topics, including intent classification and sentiment analysis, and use them on popular datasets and interpret the classification results.By the end of this book, you'll be able to confidently use spaCy, including its linguistic features, word vectors, and classifiers, to create your own NLP apps.

346
Ebook

Mastering Terraform. A practical guide to building and deploying infrastructure on AWS, Azure, and GCP

Mark Tinderholt, Armon Dadgar

Advancements made in cloud technology and automation tools have led to increased challenges in defining and managing your infrastructure or app environment as code on your chosen cloud platform, integrating security, managing microservices complexity, and so on. This book takes a learning-by-doing approach to teach you how to employ Terraform features to develop efficient cloud infrastructure using real-world scenarios and best practices.The book begins by introducing you to Terraform's architecture, both as a command-line tool and a programming language, HashiCorp Configuration Language (HCL). You’ll discover best practices, usage, and architectural patterns and implement Terraform on virtual machines (VMs), Docker/Kubernetes, serverless, and multiple cloud platforms such as AWS, Azure, and GCP. The chapters also show you how to industrialize your CI/CD pipeline by integrating Terraform with other popular technologies to build, provision, deploy, and manage cloud infrastructure. You’ll gain a clear understanding of security, monitoring, troubleshooting, and cost optimization and be able to apply the concepts you’ve learned when preparing for Terraform Associate certification exams.By the end of this book, you’ll be equipped to confidently build, automate, and deliver your infrastructure and CI/CD pipelines in cloud-based applications.

347
Ebook

Mastering Transformers. Build state-of-the-art models from scratch with advanced natural language processing techniques

Savaş Yildirim, Meysam Asgari- Chenaghlu

Transformer-based language models have dominated natural language processing (NLP) studies and have now become a new paradigm. With this book, you'll learn how to build various transformer-based NLP applications using the Python Transformers library.The book gives you an introduction to Transformers by showing you how to write your first hello-world program. You'll then learn how a tokenizer works and how to train your own tokenizer. As you advance, you'll explore the architecture of autoencoding models, such as BERT, and autoregressive models, such as GPT. You'll see how to train and fine-tune models for a variety of natural language understanding (NLU) and natural language generation (NLG) problems, including text classification, token classification, and text representation. This book also helps you to learn efficient models for challenging problems, such as long-context NLP tasks with limited computational capacity. You'll also work with multilingual and cross-lingual problems, optimize models by monitoring their performance, and discover how to deconstruct these models for interpretability and explainability. Finally, you'll be able to deploy your transformer models in a production environment.By the end of this NLP book, you'll have learned how to use Transformers to solve advanced NLP problems using advanced models.

348
Ebook

Mastering Transformers. The Journey from BERT to Large Language Models and Stable Diffusion - Second Edition

Savaş Yildirim, Meysam Asgari- Chenaghlu

Transformer-based language models such as BERT, T5, GPT, DALL-E, and ChatGPT have dominated NLP studies and become a new paradigm. Thanks to their accurate and fast fine-tuning capabilities, transformer-based language models have been able to outperform traditional machine learning-based approaches for many challenging natural language understanding (NLU) problems.Aside from NLP, a fast-growing area in multimodal learning and generative AI has recently been established, showing promising results. Mastering Transformers will help you understand and implement multimodal solutions, including text-to-image. Computer vision solutions that are based on transformers are also explained in the book. You’ll get started by understanding various transformer models before learning how to train different autoregressive language models such as GPT and XLNet. The book will also get you up to speed with boosting model performance, as well as tracking model training using the TensorBoard toolkit. In the later chapters, you’ll focus on using vision transformers to solve computer vision problems. Finally, you’ll discover how to harness the power of transformers to model time series data and for predicting.By the end of this transformers book, you’ll have an understanding of transformer models and how to use them to solve challenges in NLP and CV.

349
Ebook

Matematyka dyskretna dla praktyków. Algorytmy i uczenie maszynowe w Pythonie

Ryan T. White, Archana Tikayat Ray

Mimo że osiągnięcia matematyczne stały się podwalinami algorytmiki, wielu inżynierów nie w pełni rozumie reguły matematyki dyskretnej. Nawet jeśli nie stanowi to szczególnego problemu w codziennej pracy, w końcu okazuje się, że matematyka dyskretna jest niezbędna do osiągnięcia prawdziwej biegłości w operowaniu algorytmami i w pracy na danych. Co więcej, znajomość tej dziedziny bardzo ułatwia rozwiązywanie problemów z zakresu uczenia maszynowego. W ten sposób praktyczna biegłość w matematyce zauważalnie poprawia wyniki pracy inżynierów. Ta książka jest kompleksowym wprowadzeniem do matematyki dyskretnej, przydatnym dla każdego, kto chce pogłębić i ugruntować swoje umiejętności informatyczne. W zrozumiały sposób przedstawiono tu metody matematyki dyskretnej i ich zastosowanie w algorytmach i analizie danych, włączając w to techniki uczenia maszynowego. Zaprezentowano również zasady oceny złożoności obliczeniowej algorytmów i używania wyników tej oceny do zarządzania pracą procesora. Omówiono także sposoby przechowywania struktur grafowych, ich przeszukiwania i znajdywania ścieżek między wierzchołkami. Pokazano też, jak wykorzystać przedstawione informacje podczas posługiwania się bibliotekami Pythona, takimi jak scikit-learn i NumPy. W książce między innymi: terminologia i metody matematyki dyskretnej zastosowanie metod matematyki dyskretnej w algorytmach i analizie danych algebra Boole'a i kombinatoryka w podstawowych strukturach algorytmów rozwiązywanie problemów z dziedziny teorii grafów zadania związane z uczeniem maszynowym a matematyka dyskretna Matematyka dyskretna - poznaj, zrozum, zastosuj!

350
Ebook

Matematyka w programowaniu gier i grafice komputerowej. Tworzenie i renderowanie wirtualnych środowisk 3D oraz praca z nimi

Penny de Byl

Matematyka jest niezbędna do zrozumienia reguł rządzących tworzeniem grafiki komputerowej w czasie rzeczywistym, a także zasad manipulowania obiektami i środowiskami 3D. Idealnym narzędziem ułatwiającym uchwycenie tych zależności jest język Python wraz z bibliotekami Pygame i PyOpenGL. Dzięki nim łatwo zrozumiesz, w jaki sposób komputery tworzą i wprowadzają zmiany w środowiskach trójwymiarowych. Ta książka wyjaśni Ci rolę matematyki w tworzeniu, renderowaniu i zmienianiu wirtualnych środowisk 3D, a ponadto pozwoli odkryć tajemnice najpopularniejszych dzisiaj silników gier. Za sprawą licznych praktycznych ćwiczeń zorientujesz się, co się kryje za rysowaniem linii i kształtów graficznych, stosowaniem wektorów i wierzchołków, budowaniem i renderowaniem siatek, jak również przekształcaniem wierzchołków. Nauczysz się używać kodu Pythona, a także bibliotek Pygame i PyOpenGL do budowy własnych silników. Dowiesz się też, jak tworzyć przydatne API i korzystać z nich podczas pisania własnych aplikacji. W książce między innymi: praca w Pythonie z edytorem PyCharm, bibliotekami Pygame i PyOpenGL różne polecenia rysowania z różnych graficznych API najważniejsze zagadnienia trygonometrii w odniesieniu do środowisk 3D wektory i matryce w przenoszeniu, ustawianiu kierunku i skalowaniu obiektów 3D renderowanie obiektów 3D z teksturami, kolorami, cieniami i oświetleniem przekształcanie wierzchołków w celu przyspieszenia renderowania opartego na GPU Matematyka: najlepszy sprzymierzeniec programisty i grafika!

351
Ebook

Matplotlib for Python Developers. Effective techniques for data visualization with Python - Second Edition

Aldrin Yim, Claire Chung, Allen Yu

Python is a general-purpose programming language increasingly being used for data analysis and visualization. Matplotlib is a popular data visualization package in Python used to design effective plots and graphs. This is a practical, hands-on resource to help you visualize data with Python using the Matplotlib library. Matplotlib for Python Developers, Second Edition shows you how to create attractive graphs, charts, and plots using Matplotlib. You will also get a quick introduction to third-party packages, Seaborn, Pandas, Basemap, and Geopandas, and learn how to use them with Matplotlib. After that, you’ll embed and customize your plots in third-party tools such as GTK+3, Qt 5, and wxWidgets. You’ll also be able to tweak the look and feel of your visualization with the help of practical examples provided in this book. Further on, you’ll explore Matplotlib 2.1.x on the web, from a cloud-based platform using third-party packages such as Django. Finally, you will integrate interactive, real-time visualization techniques into your current workflow with the help of practical real-world examples.By the end of this book, you’ll be thoroughly comfortable with using the popular Python data visualization library Matplotlib 2.1.x and leveraging its power to build attractive, insightful, and powerful visualizations.

352
Ebook

Maximizing Tableau Server. A beginner's guide to accessing, sharing, and managing content on Tableau Server

Patrick Sarsfield, Brandi Locker, Adam Mico

Tableau Server is a business intelligence application that provides a centralized location to store, edit, share, and collaborate on content, such as dashboards and curated data sources. This book gets you up and running with Tableau Server to help you increase end-user engagement for your published work as well as reduce or eliminate redundant tasks.You’ll explore Tableau Server's structure and how to get started by connecting, publishing content, and navigating the software interface. Next, you’ll learn when and how to update the settings of your content at various levels to best utilize Tableau Server’s features. You’ll understand how to interact with the Tableau Server interface to locate, sort, filter, manage and customize content. Later, the book shows you how to leverage other valuable features that enable you and your audience to share, download, and interact with content on Tableau Server. As you progress, you’ll cover principles to increase the performance of your published content. All along, the book shows you how to navigate, interact with, and use Tableau Server with the help of engaging examples and best practices shared by recognized Tableau professionals.By the end of this Tableau book, you’ll have a solid understanding of how to use Tableau Server to manage content, automate tasks, and increase end-user engagement.