Building Data Science Applications with FastAPI

Building Data Science Applications with FastAPI
Author: Francois Voron
Publisher: Packt Publishing Ltd
Total Pages: 426
Release: 2021-10-08
Genre: Computers
ISBN: 1801074186

Download Building Data Science Applications with FastAPI Book in PDF, Epub and Kindle

Get well-versed with FastAPI features and best practices for testing, monitoring, and deployment to run high-quality and robust data science applications Key FeaturesCover the concepts of the FastAPI framework, including aspects relating to asynchronous programming, type hinting, and dependency injectionDevelop efficient RESTful APIs for data science with modern PythonBuild, test, and deploy high performing data science and machine learning systems with FastAPIBook Description FastAPI is a web framework for building APIs with Python 3.6 and its later versions based on standard Python-type hints. With this book, you'll be able to create fast and reliable data science API backends using practical examples. This book starts with the basics of the FastAPI framework and associated modern Python programming language concepts. You'll be taken through all the aspects of the framework, including its powerful dependency injection system and how you can use it to communicate with databases, implement authentication and integrate machine learning models. Later, you'll cover best practices relating to testing and deployment to run a high-quality and robust application. You'll also be introduced to the extensive ecosystem of Python data science packages. As you progress, you'll learn how to build data science applications in Python using FastAPI. The book also demonstrates how to develop fast and efficient machine learning prediction backends and test them to achieve the best performance. Finally, you'll see how to implement a real-time face detection system using WebSockets and a web browser as a client. By the end of this FastAPI book, you'll have not only learned how to implement Python in data science projects but also how to maintain and design them to meet high programming standards with the help of FastAPI. What you will learnExplore the basics of modern Python and async I/O programmingGet to grips with basic and advanced concepts of the FastAPI frameworkImplement a FastAPI dependency to efficiently run a machine learning modelIntegrate a simple face detection algorithm in a FastAPI backendIntegrate common Python data science libraries in a web backendDeploy a performant and reliable web backend for a data science applicationWho this book is for This Python data science book is for data scientists and software developers interested in gaining knowledge of FastAPI and its ecosystem to build data science applications. Basic knowledge of data science and machine learning concepts and how to apply them in Python is recommended.

Building Data Science Applications with FastAPI - Second Edition

Building Data Science Applications with FastAPI - Second Edition
Author: François Voron
Publisher:
Total Pages: 0
Release: 2023-07-31
Genre:
ISBN: 9781837632749

Download Building Data Science Applications with FastAPI - Second Edition Book in PDF, Epub and Kindle

Learn all the features and best practices of FastAPI to build, deploy, and monitor powerful data science and AI apps, like object detection or image generation.Purchase of the print or Kindle book includes a free PDF eBookKey FeaturesUncover the secrets of FastAPI, including async I/O, type hinting, and dependency injectionLearn to add authentication, authorization, and interaction with databases in a FastAPI backendDevelop real-world projects using pre-trained AI modelsBook DescriptionBuilding Data Science Applications with FastAPI is the go-to resource for creating efficient and dependable data science API backends. This second edition incorporates the latest Python and FastAPI advancements, along with two new AI projects - a real-time object detection system and a text-to-image generation platform using Stable Diffusion. The book starts with the basics of FastAPI and modern Python programming. You'll grasp FastAPI's robust dependency injection system, which facilitates seamless database communication, authentication implementation, and ML model integration. As you progress, you'll learn testing and deployment best practices, guaranteeing high-quality, resilient applications. Throughout the book, you'll build data science applications using FastAPI with the help of projects covering common AI use cases, such as object detection and text-to-image generation. These hands-on experiences will deepen your understanding of using FastAPI in real-world scenarios. By the end of this book, you'll be well equipped to maintain, design, and monitor applications to meet the highest programming standards using FastAPI, empowering you to create fast and reliable data science API backends with ease while keeping up with the latest advancements.What you will learnExplore the basics of modern Python and async I/O programmingGet to grips with basic and advanced concepts of the FastAPI frameworkDeploy a performant and reliable web backend for a data science applicationIntegrate common Python data science libraries into a web backendIntegrate an object detection algorithm into a FastAPI backendBuild a distributed text-to-image AI system with Stable DiffusionAdd metrics and logging and learn how to monitor themWho this book is forThis book is for data scientists and software developers interested in gaining knowledge of FastAPI and its ecosystem to build data science applications. Basic knowledge of data science and machine learning concepts and how to apply them in Python is recommended.

Interpretable Machine Learning with Python

Interpretable Machine Learning with Python
Author: Serg Masís
Publisher: Packt Publishing Ltd
Total Pages: 737
Release: 2021-03-26
Genre: Computers
ISBN: 1800206577

Download Interpretable Machine Learning with Python Book in PDF, Epub and Kindle

A deep and detailed dive into the key aspects and challenges of machine learning interpretability, complete with the know-how on how to overcome and leverage them to build fairer, safer, and more reliable models Key Features Learn how to extract easy-to-understand insights from any machine learning model Become well-versed with interpretability techniques to build fairer, safer, and more reliable models Mitigate risks in AI systems before they have broader implications by learning how to debug black-box models Book DescriptionDo you want to gain a deeper understanding of your models and better mitigate poor prediction risks associated with machine learning interpretation? If so, then Interpretable Machine Learning with Python deserves a place on your bookshelf. We’ll be starting off with the fundamentals of interpretability, its relevance in business, and exploring its key aspects and challenges. As you progress through the chapters, you'll then focus on how white-box models work, compare them to black-box and glass-box models, and examine their trade-off. You’ll also get you up to speed with a vast array of interpretation methods, also known as Explainable AI (XAI) methods, and how to apply them to different use cases, be it for classification or regression, for tabular, time-series, image or text. In addition to the step-by-step code, this book will also help you interpret model outcomes using examples. You’ll get hands-on with tuning models and training data for interpretability by reducing complexity, mitigating bias, placing guardrails, and enhancing reliability. The methods you’ll explore here range from state-of-the-art feature selection and dataset debiasing methods to monotonic constraints and adversarial retraining. By the end of this book, you'll be able to understand ML models better and enhance them through interpretability tuning. What you will learn Recognize the importance of interpretability in business Study models that are intrinsically interpretable such as linear models, decision trees, and Naïve Bayes Become well-versed in interpreting models with model-agnostic methods Visualize how an image classifier works and what it learns Understand how to mitigate the influence of bias in datasets Discover how to make models more reliable with adversarial robustness Use monotonic constraints to make fairer and safer models Who this book is for This book is primarily written for data scientists, machine learning developers, and data stewards who find themselves under increasing pressures to explain the workings of AI systems, their impacts on decision making, and how they identify and manage bias. It’s also a useful resource for self-taught ML enthusiasts and beginners who want to go deeper into the subject matter, though a solid grasp on the Python programming language and ML fundamentals is needed to follow along.

Getting Started with Streamlit for Data Science

Getting Started with Streamlit for Data Science
Author: Tyler Richards
Publisher: Packt Publishing Ltd
Total Pages: 282
Release: 2021-08-20
Genre: Computers
ISBN: 1800563205

Download Getting Started with Streamlit for Data Science Book in PDF, Epub and Kindle

Create, deploy, and test your Python applications, analyses, and models with ease using Streamlit Key Features Learn how to showcase machine learning models in a Streamlit application effectively and efficiently Become an expert Streamlit creator by getting hands-on with complex application creation Discover how Streamlit enables you to create and deploy apps effortlessly Book DescriptionStreamlit shortens the development time for the creation of data-focused web applications, allowing data scientists to create web app prototypes using Python in hours instead of days. Getting Started with Streamlit for Data Science takes a hands-on approach to helping you learn the tips and tricks that will have you up and running with Streamlit in no time. You'll start with the fundamentals of Streamlit by creating a basic app and gradually build on the foundation by producing high-quality graphics with data visualization and testing machine learning models. As you advance through the chapters, you’ll walk through practical examples of both personal data projects and work-related data-focused web applications, and get to grips with more challenging topics such as using Streamlit Components, beautifying your apps, and quick deployment of your new apps. By the end of this book, you’ll be able to create dynamic web apps in Streamlit quickly and effortlessly using the power of Python.What you will learn Set up your first development environment and create a basic Streamlit app from scratch Explore methods for uploading, downloading, and manipulating data in Streamlit apps Create dynamic visualizations in Streamlit using built-in and imported Python libraries Discover strategies for creating and deploying machine learning models in Streamlit Use Streamlit sharing for one-click deployment Beautify Streamlit apps using themes, Streamlit Components, and Streamlit sidebar Implement best practices for prototyping your data science work with Streamlit Who this book is for This book is for data scientists and machine learning enthusiasts who want to create web apps using Streamlit. Whether you’re a junior data scientist looking to deploy your first machine learning project in Python to improve your resume or a senior data scientist who wants to use Streamlit to make convincing and dynamic data analyses, this book will help you get there! Prior knowledge of Python programming will assist with understanding the concepts covered.

Learn Python by Building Data Science Applications

Learn Python by Building Data Science Applications
Author: Philipp Kats
Publisher: Packt Publishing Ltd
Total Pages: 464
Release: 2019-08-30
Genre: Computers
ISBN: 1789533066

Download Learn Python by Building Data Science Applications Book in PDF, Epub and Kindle

Understand the constructs of the Python programming language and use them to build data science projects Key FeaturesLearn the basics of developing applications with Python and deploy your first data applicationTake your first steps in Python programming by understanding and using data structures, variables, and loopsDelve into Jupyter, NumPy, Pandas, SciPy, and sklearn to explore the data science ecosystem in PythonBook Description Python is the most widely used programming language for building data science applications. Complete with step-by-step instructions, this book contains easy-to-follow tutorials to help you learn Python and develop real-world data science projects. The “secret sauce” of the book is its curated list of topics and solutions, put together using a range of real-world projects, covering initial data collection, data analysis, and production. This Python book starts by taking you through the basics of programming, right from variables and data types to classes and functions. You’ll learn how to write idiomatic code and test and debug it, and discover how you can create packages or use the range of built-in ones. You’ll also be introduced to the extensive ecosystem of Python data science packages, including NumPy, Pandas, scikit-learn, Altair, and Datashader. Furthermore, you’ll be able to perform data analysis, train models, and interpret and communicate the results. Finally, you’ll get to grips with structuring and scheduling scripts using Luigi and sharing your machine learning models with the world as a microservice. By the end of the book, you’ll have learned not only how to implement Python in data science projects, but also how to maintain and design them to meet high programming standards. What you will learnCode in Python using Jupyter and VS CodeExplore the basics of coding – loops, variables, functions, and classesDeploy continuous integration with Git, Bash, and DVCGet to grips with Pandas, NumPy, and scikit-learnPerform data visualization with Matplotlib, Altair, and DatashaderCreate a package out of your code using poetry and test it with PyTestMake your machine learning model accessible to anyone with the web APIWho this book is for If you want to learn Python or data science in a fun and engaging way, this book is for you. You’ll also find this book useful if you’re a high school student, researcher, analyst, or anyone with little or no coding experience with an interest in the subject and courage to learn, fail, and learn from failing. A basic understanding of how computers work will be useful.

Building Serverless Web Applications

Building Serverless Web Applications
Author: Diego Zanon
Publisher: Packt Publishing Ltd
Total Pages: 354
Release: 2017-07-28
Genre: Computers
ISBN: 1787123073

Download Building Serverless Web Applications Book in PDF, Epub and Kindle

Build scalable, efficient, and highly available web apps using AWS About This Book Get an in-depth understanding of the serverless model Build a complete serverless web application end to end Learn how to use the Serverless Framework to improve your productivity Who This Book Is For If you're looking to learn more about scalable and cost-efficient architectures, this book is for you. Basic knowledge of Node.js skills or familiarity with cloud services is required. For other topics, we cover the basics. What You Will Learn Get a grasp of the pros and cons of going serverless and its use cases Discover how you can use the building blocks of AWS to your advantage Set up the environment and create a basic app with the Serverless Framework Host static files on S3 and CloudFront with HTTPS support Build a sample application with a frontend using React as an SPA Develop the Node.js backend to handle requests and connect to a SimpleDB database Secure your applications with authentication and authorization Implement the publish-subscribe pattern to handle notifications in a serverless application Create tests, define the workflow for deployment, and monitor your app In Detail This book will equip you with the knowledge needed to build your own serverless apps by showing you how to set up different services while making your application scalable, highly available, and efficient. We begin by giving you an idea of what it means to go serverless, exploring the pros and cons of the serverless model and its use cases. Next, you will be introduced to the AWS services that will be used throughout the book, how to estimate costs, and how to set up and use the Serverless Framework. From here, you will start to build an entire serverless project of an online store, beginning with a React SPA frontend hosted on AWS followed by a serverless backend with API Gateway and Lambda functions. You will also learn to access data from a SimpleDB database, secure the application with authentication and authorization, and implement serverless notifications for browsers using AWS IoT. This book will describe how to monitor the performance, efficiency, and errors of your apps and conclude by teaching you how to test and deploy your applications. Style and approach This book takes a step-by-step approach on how to use the Serverless Framework and AWS services to build Serverless Applications. It will give you a hands-on feeling, allowing you to practice while reading. It provides a brief introduction of concepts while keeping the focus on the practical skills required to develop applications.

Digital Transformation with Dataverse for Teams

Digital Transformation with Dataverse for Teams
Author: Srikumar Nair
Publisher: Packt Publishing Ltd
Total Pages: 299
Release: 2021-10-29
Genre: Computers
ISBN: 1800567014

Download Digital Transformation with Dataverse for Teams Book in PDF, Epub and Kindle

Design, build, and deploy multi-platform apps to overcome crucial business problems by leveraging the capabilities of low-code and no-code development enabled through Microsoft Power Platform and Teams Key Features Find out how you can accelerate the digital transformation of your organization as a citizen developer Build your first app with the help of step-by-step guidance and add capabilities with flows and bots Learn about lifecycle management for applications, environments, and licensing Book Description Microsoft Dataverse for Teams is a built-in, low-code data platform for Teams and enables everyone to easily build and deploy apps, flows, and intelligent chatbots using Power Apps, Power Automate, and Power Virtual Agents (PVA) embedded in Microsoft Teams. Without learning any coding language, you will be able to build apps with step-by-step explanations for setting up Teams, creating tables to store data, and leverage the data for your digital solutions. With the techniques covered in the book, you'll be able to develop your first app with Dataverse for Teams within an hour! You'll then learn how to automate repetitive tasks or build alerts using Power Automate and Power Virtual Agents. As you get to grips with building these digital solutions, you'll also be able to understand when to consider upgrading from Dataverse for Teams to Dataverse, along with its advanced features. Finally, you'll explore features for administration and governance and understand the licensing requirements of Microsoft Dataverse for Teams and PowerApps. Having acquired the skills to build and deploy an enterprise-grade digital solution, by the end of the book, you will have become a qualified citizen developer and be ready to lead a digital revolution in your organization. What you will learn Gain a deeper understanding of Microsoft Dataverse for Teams by exploring various business scenarios Design, build, and deploy enterprise-grade applications for Teams Develop Power Automate flows and PVA bots using Dataverse for Teams Discover administration and security best practices Understand the licensing requirements and advanced features of Microsoft Dataverse Identify scenarios in your organizations where your citizen development skills can be leveraged Who this book is for The book is for citizen developers, business professionals, or anyone looking to develop applications to solve critical business problems. Basic knowledge of using software like PowerPoint, Excel-like formulae, and navigating between application screens is all you need to get started with this book.

Self-Adaptive Systems for Machine Intelligence

Self-Adaptive Systems for Machine Intelligence
Author: Haibo He
Publisher: John Wiley & Sons
Total Pages: 189
Release: 2011-09-15
Genre: Computers
ISBN: 1118025598

Download Self-Adaptive Systems for Machine Intelligence Book in PDF, Epub and Kindle

This book will advance the understanding and application of self-adaptive intelligent systems; therefore it will potentially benefit the long-term goal of replicating certain levels of brain-like intelligence in complex and networked engineering systems. It will provide new approaches for adaptive systems within uncertain environments. This will provide an opportunity to evaluate the strengths and weaknesses of the current state-of-the-art of knowledge, give rise to new research directions, and educate future professionals in this domain. Self-adaptive intelligent systems have wide applications from military security systems to civilian daily life. In this book, different application problems, including pattern recognition, classification, image recovery, and sequence learning, will be presented to show the capability of the proposed systems in learning, memory, and prediction. Therefore, this book will also provide potential new solutions to many real-world applications.

Enterprise DevOps for Architects

Enterprise DevOps for Architects
Author: Jeroen Mulder
Publisher: Packt Publishing Ltd
Total Pages: 289
Release: 2021-11-11
Genre: Computers
ISBN: 1801811709

Download Enterprise DevOps for Architects Book in PDF, Epub and Kindle

An architect's guide to designing, implementing, and integrating DevOps in the enterprise Key FeaturesDesign a DevOps architecture that is aligned with the overall enterprise architectureDesign systems that are ready for AIOps and make the move toward NoOpsArchitect and implement DevSecOps pipelines, securing the DevOps enterpriseBook Description Digital transformation is the new paradigm in enterprises, but the big question remains: is the enterprise ready for transformation using native technology embedded in Agile/DevOps? With this book, you'll see how to design, implement, and integrate DevOps in the enterprise architecture while keeping the Ops team on board and remaining resilient. The focus of the book is not to introduce the hundreds of different tools that are available for implementing DevOps, but instead to show you how to create a successful DevOps architecture. This book provides an architectural overview of DevOps, AIOps, and DevSecOps – the three domains that drive and accelerate digital transformation. Complete with step-by-step explanations of essential concepts, practical examples, and self-assessment questions, this DevOps book will help you to successfully integrate DevOps into enterprise architecture. You'll learn what AIOps is and what value it can bring to an enterprise. Lastly, you will learn how to integrate security principles such as zero-trust and industry security frameworks into DevOps with DevSecOps. By the end of this DevOps book, you'll be able to develop robust DevOps architectures, know which toolsets you can use for your DevOps implementation, and have a deeper understanding of next-level DevOps by implementing Site Reliability Engineering (SRE). What you will learnCreate DevOps architecture and integrate it with the enterprise architectureDiscover how DevOps can add value to the quality of IT deliveryExplore strategies to scale DevOps for an enterpriseArchitect SRE for an enterprise as next-level DevOpsUnderstand AIOps and what value it can bring to an enterpriseCreate your AIOps architecture and integrate it into DevOpsCreate your DevSecOps architecture and integrate it with the existing DevOps setupApply zero-trust principles and industry security frameworks to DevOpsWho this book is for This book is for enterprise architects and consultants who want to design DevOps systems for the enterprise. It provides an architectural overview of DevOps, AIOps, and DevSecOps. If you're looking to learn about the implementation of various tools within the DevOps toolchain in detail, this book is not for you.

TensorFlow Deep Learning Projects

TensorFlow Deep Learning Projects
Author: Alexey Grigorev
Publisher: Packt Publishing Ltd
Total Pages: 310
Release: 2018-03-28
Genre: Computers
ISBN: 1788398386

Download TensorFlow Deep Learning Projects Book in PDF, Epub and Kindle

Leverage the power of Tensorflow to design deep learning systems for a variety of real-world scenarios Key Features Build efficient deep learning pipelines using the popular Tensorflow framework Train neural networks such as ConvNets, generative models, and LSTMs Includes projects related to Computer Vision, stock prediction, chatbots and more Book Description TensorFlow is one of the most popular frameworks used for machine learning and, more recently, deep learning. It provides a fast and efficient framework for training different kinds of deep learning models, with very high accuracy. This book is your guide to master deep learning with TensorFlow with the help of 10 real-world projects. TensorFlow Deep Learning Projects starts with setting up the right TensorFlow environment for deep learning. Learn to train different types of deep learning models using TensorFlow, including Convolutional Neural Networks, Recurrent Neural Networks, LSTMs, and Generative Adversarial Networks. While doing so, you will build end-to-end deep learning solutions to tackle different real-world problems in image processing, recommendation systems, stock prediction, and building chatbots, to name a few. You will also develop systems that perform machine translation, and use reinforcement learning techniques to play games. By the end of this book, you will have mastered all the concepts of deep learning and their implementation with TensorFlow, and will be able to build and train your own deep learning models with TensorFlow confidently. What you will learn Set up the TensorFlow environment for deep learning Construct your own ConvNets for effective image processing Use LSTMs for image caption generation Forecast stock prediction accurately with an LSTM architecture Learn what semantic matching is by detecting duplicate Quora questions Set up an AWS instance with TensorFlow to train GANs Train and set up a chatbot to understand and interpret human input Build an AI capable of playing a video game by itself –and win it! Who this book is for This book is for data scientists, machine learning developers as well as deep learning practitioners, who want to build interesting deep learning projects that leverage the power of Tensorflow. Some understanding of machine learning and deep learning, and familiarity with the TensorFlow framework is all you need to get started with this book.