Machine Learning in Microservices


Book Description

Implement real-world machine learning in a microservices architecture as well as design, build, and deploy intelligent microservices systems using examples and case studies Purchase of the print or Kindle book includes a free PDF eBook Key FeaturesDesign, build, and run microservices systems that utilize the full potential of machine learningDiscover the latest models and techniques for combining microservices and machine learning to create scalable systemsImplement machine learning in microservices architecture using open source applications with pros and consBook Description With the rising need for agile development and very short time-to-market system deployments, incorporating machine learning algorithms into decoupled fine-grained microservices systems provides the perfect technology mix for modern systems. Machine Learning in Microservices is your essential guide to staying ahead of the curve in this ever-evolving world of technology. The book starts by introducing you to the concept of machine learning microservices architecture (MSA) and comparing MSA with service-based and event-driven architectures, along with how to transition into MSA. Next, you'll learn about the different approaches to building MSA and find out how to overcome common practical challenges faced in MSA design. As you advance, you'll get to grips with machine learning (ML) concepts and see how they can help better design and run MSA systems. Finally, the book will take you through practical examples and open source applications that will help you build and run highly efficient, agile microservices systems. By the end of this microservices book, you'll have a clear idea of different models of microservices architecture and machine learning and be able to combine both technologies to deliver a flexible and highly scalable enterprise system. What you will learnRecognize the importance of MSA and ML and deploy both technologies in enterprise systemsExplore MSA enterprise systems and their general practical challengesDiscover how to design and develop microservices architectureUnderstand the different AI algorithms, types, and models and how they can be applied to MSAIdentify and overcome common MSA deployment challenges using AI and ML algorithmsExplore general open source and commercial tools commonly used in MSA enterprise systemsWho this book is for This book is for machine learning solution architects, system and machine learning developers, and system and solution integrators of private and public sector organizations. Basic knowledge of DevOps, system architecture, and artificial intelligence (AI) systems is assumed, and working knowledge of the Python programming language is highly desired.




Microservices for Machine Learning


Book Description

Empowering AI innovations: The fusion of microservices and ML KEY FEATURES ● Microservices and ML fundamentals, advancements, and practical applications in various industries. ● Simplify complex ML development with distributed and scalable microservices architectures. ● Discover real-world scenarios illustrating the fusion of microservices and ML, showcasing AI's impact across industries. DESCRIPTION Explore the link between microservices and ML in Microservices for Machine Learning. Through this book, you will learn to build scalable systems by understanding modular software construction principles. You will also discover ML algorithms and tools like TensorFlow and PyTorch for developing advanced models. It equips you with the technical know-how to design, implement, and manage high-performance ML applications using microservices architecture. It establishes a foundation in microservices principles and core ML concepts before diving into practical aspects. You will learn how to design ML-specific microservices, implement them using frameworks like Flask, and containerize them with Docker for scalability. Data management strategies for ML are explored, including techniques for real-time data ingestion and data versioning. This book also addresses crucial aspects of securing ML microservices and using CI/CD practices to streamline development and deployment. Finally, you will discover real-world use cases showcasing how ML microservices are revolutionizing various industries, alongside a glimpse into the exciting future trends shaping this evolving field. Additionally, you will learn how to implement ML microservices with practical examples in Java and Python. This book merges software engineering and AI, guiding readers through modern development challenges. It is a guide for innovators, boosting efficiency and leading the way to a future of impactful technology solutions. WHAT YOU WILL LEARN ● Master the principles of microservices architecture for scalable software design. ● Deploy ML microservices using cloud platforms like AWS and Azure for scalability. ● Ensure ML microservices security with best practices in data encryption and access control. ● Utilize Docker and Kubernetes for efficient microservice containerization and orchestration. ● Implement CI/CD pipelines for automated, reliable ML model deployments. WHO THIS BOOK IS FOR This book is for data scientists, ML engineers, data engineers, DevOps team, and cloud engineers who are responsible for delivering real-time, accurate, and reliable ML models into production. TABLE OF CONTENTS 1. Introducing Microservices and Machine Learning 2. Foundation of Microservices 3. Fundamentals of Machine Learning 4. Designing Microservices for Machine Learning 5. Implementing Microservices for Machine Learning 6. Data Management in Machine Learning Microservices 7. Scaling and Load Balancing Machine Learning Microservices 8. Securing Machine Learning Microservices 9. Monitoring and Logging in Machine Learning Microservices 10. Deployment for Machine Learning Microservices 11. Real World Use Cases 12. Challenges and Future Trends




Software Architecture


Book Description

This book constitutes the refereed proceedings of the 15th International Conference on Software Architecture, ECSA 2021, held in Sweden, in September 2021. Due to COVID-19 pandemic the conference was held virtually. In the Research Track, 11 full papers presented together with 5 short papers were carefully reviewed and selected from 58 submissions. The papers are organized in topical sections as follows: architectures for reconfigurable and self-adaptive systems; machine learning for software architecture; architectural knowledge, decisions, and rationale; architecting for quality attributes ̧ hitecture-centric source code analysis




Machine Learning Design Patterns


Book Description

The design patterns in this book capture best practices and solutions to recurring problems in machine learning. The authors, three Google engineers, catalog proven methods to help data scientists tackle common problems throughout the ML process. These design patterns codify the experience of hundreds of experts into straightforward, approachable advice. In this book, you will find detailed explanations of 30 patterns for data and problem representation, operationalization, repeatability, reproducibility, flexibility, explainability, and fairness. Each pattern includes a description of the problem, a variety of potential solutions, and recommendations for choosing the best technique for your situation. You'll learn how to: Identify and mitigate common challenges when training, evaluating, and deploying ML models Represent data for different ML model types, including embeddings, feature crosses, and more Choose the right model type for specific problems Build a robust training loop that uses checkpoints, distribution strategy, and hyperparameter tuning Deploy scalable ML systems that you can retrain and update to reflect new data Interpret model predictions for stakeholders and ensure models are treating users fairly




Machine Learning for Business


Book Description

Summary Imagine predicting which customers are thinking about switching to a competitor or flagging potential process failures before they happen Think about the benefits of forecasting tedious business processes and back-office tasks Envision quickly gauging customer sentiment from social media content (even large volumes of it). Consider the competitive advantage of making decisions when you know the most likely future events Machine learning can deliver these and other advantages to your business, and it’s never been easier to get started! Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the technology Machine learning can deliver huge benefits for everyday business tasks. With some guidance, you can get those big wins yourself without complex math or highly paid consultants! If you can crunch numbers in Excel, you can use modern ML services to efficiently direct marketing dollars, identify and keep your best customers, and optimize back office processes. This book shows you how. About the book Machine Learning for Business teaches business-oriented machine learning techniques you can do yourself. Concentrating on practical topics like customer retention, forecasting, and back office processes, you’ll work through six projects that help you form an ML-for-business mindset. To guarantee your success, you’ll use the Amazon SageMaker ML service, which makes it a snap to turn your questions into results. What's inside Identifying tasks suited to machine learning Automating back office processes Using open source and cloud-based tools Relevant case studies About the reader For technically inclined business professionals or business application developers. About the author Doug Hudgeon and Richard Nichol specialize in maximizing the value of business data through AI and machine learning for companies of any size. Table of Contents: PART 1 MACHINE LEARNING FOR BUSINESS 1 ¦ How machine learning applies to your business PART 2 SIX SCENARIOS: MACHINE LEARNING FOR BUSINESS 2 ¦ Should you send a purchase order to a technical approver? 3 ¦ Should you call a customer because they are at risk of churning? 4 ¦ Should an incident be escalated to your support team? 5 ¦ Should you question an invoice sent by a supplier? 6 ¦ Forecasting your company’s monthly power usage 7 ¦ Improving your company’s monthly power usage forecast PART 3 MOVING MACHINE LEARNING INTO PRODUCTION 8 ¦ Serving predictions over the web 9 ¦ Case studies




Design Innovation and Network Architecture for the Future Internet


Book Description

For the past couple of years, network automation techniques that include software-defined networking (SDN) and dynamic resource allocation schemes have been the subject of a significant research and development effort. Likewise, network functions virtualization (NFV) and the foreseeable usage of a set of artificial intelligence techniques to facilitate the processing of customers’ requirements and the subsequent design, delivery, and operation of the corresponding services are very likely to dramatically distort the conception and the management of networking infrastructures. Some of these techniques are being specified within standards developing organizations while others remain perceived as a “buzz” without any concrete deployment plans disclosed by service providers. An in-depth understanding and analysis of these approaches should be conducted to help internet players in making appropriate design choices that would meet their requirements as well as their customers. This is an important area of research as these new developments and approaches will inevitably reshape the internet and the future of technology. Design Innovation and Network Architecture for the Future Internet sheds light on the foreseeable yet dramatic evolution of internet design principles and offers a comprehensive overview on the recent advances in networking techniques that are likely to shape the future internet. The chapters provide a rigorous in-depth analysis of the promises, pitfalls, and other challenges raised by these initiatives, while avoiding any speculation on their expected outcomes and technical benefits. This book covers essential topics such as content delivery networks, network functions virtualization, security, cloud computing, automation, and more. This book will be useful for network engineers, software designers, computer networking professionals, practitioners, researchers, academicians, and students looking for a comprehensive research book on the latest advancements in internet design principles and networking techniques.




Grokking Machine Learning


Book Description

Grokking Machine Learning presents machine learning algorithms and techniques in a way that anyone can understand. This book skips the confused academic jargon and offers clear explanations that require only basic algebra. As you go, you'll build interesting projects with Python, including models for spam detection and image recognition. You'll also pick up practical skills for cleaning and preparing data.




Machine Learning Theory and Applications


Book Description

Enables readers to understand mathematical concepts behind data engineering and machine learning algorithms and apply them using open-source Python libraries Machine Learning Theory and Applications delves into the realm of machine learning and deep learning, exploring their practical applications by comprehending mathematical concepts and implementing them in real-world scenarios using Python and renowned open-source libraries. This comprehensive guide covers a wide range of topics, including data preparation, feature engineering techniques, commonly utilized machine learning algorithms like support vector machines and neural networks, as well as generative AI and foundation models. To facilitate the creation of machine learning pipelines, a dedicated open-source framework named hephAIstos has been developed exclusively for this book. Moreover, the text explores the fascinating domain of quantum machine learning and offers insights on executing machine learning applications across diverse hardware technologies such as CPUs, GPUs, and QPUs. Finally, the book explains how to deploy trained models through containerized applications using Kubernetes and OpenShift, as well as their integration through machine learning operations (MLOps). Additional topics covered in Machine Learning Theory and Applications include: Current use cases of AI, including making predictions, recognizing images and speech, performing medical diagnoses, creating intelligent supply chains, natural language processing, and much more Classical and quantum machine learning algorithms such as quantum-enhanced Support Vector Machines (QSVMs), QSVM multiclass classification, quantum neural networks, and quantum generative adversarial networks (qGANs) Different ways to manipulate data, such as handling missing data, analyzing categorical data, or processing time-related data Feature rescaling, extraction, and selection, and how to put your trained models to life and production through containerized applications Machine Learning Theory and Applications is an essential resource for data scientists, engineers, and IT specialists and architects, as well as students in computer science, mathematics, and bioinformatics. The reader is expected to understand basic Python programming and libraries such as NumPy or Pandas and basic mathematical concepts, especially linear algebra.




Privacy-Preserving Machine Learning


Book Description

Keep sensitive user data safe and secure without sacrificing the performance and accuracy of your machine learning models. In Privacy Preserving Machine Learning, you will learn: Privacy considerations in machine learning Differential privacy techniques for machine learning Privacy-preserving synthetic data generation Privacy-enhancing technologies for data mining and database applications Compressive privacy for machine learning Privacy-Preserving Machine Learning is a comprehensive guide to avoiding data breaches in your machine learning projects. You’ll get to grips with modern privacy-enhancing techniques such as differential privacy, compressive privacy, and synthetic data generation. Based on years of DARPA-funded cybersecurity research, ML engineers of all skill levels will benefit from incorporating these privacy-preserving practices into their model development. By the time you’re done reading, you’ll be able to create machine learning systems that preserve user privacy without sacrificing data quality and model performance. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Machine learning applications need massive amounts of data. It’s up to you to keep the sensitive information in those data sets private and secure. Privacy preservation happens at every point in the ML process, from data collection and ingestion to model development and deployment. This practical book teaches you the skills you’ll need to secure your data pipelines end to end. About the Book Privacy-Preserving Machine Learning explores privacy preservation techniques through real-world use cases in facial recognition, cloud data storage, and more. You’ll learn about practical implementations you can deploy now, future privacy challenges, and how to adapt existing technologies to your needs. Your new skills build towards a complete security data platform project you’ll develop in the final chapter. What’s Inside Differential and compressive privacy techniques Privacy for frequency or mean estimation, naive Bayes classifier, and deep learning Privacy-preserving synthetic data generation Enhanced privacy for data mining and database applications About the Reader For machine learning engineers and developers. Examples in Python and Java. About the Author J. Morris Chang is a professor at the University of South Florida. His research projects have been funded by DARPA and the DoD. Di Zhuang is a security engineer at Snap Inc. Dumindu Samaraweera is an assistant research professor at the University of South Florida. The technical editor for this book, Wilko Henecka, is a senior software engineer at Ambiata where he builds privacy-preserving software. Table of Contents PART 1 - BASICS OF PRIVACY-PRESERVING MACHINE LEARNING WITH DIFFERENTIAL PRIVACY 1 Privacy considerations in machine learning 2 Differential privacy for machine learning 3 Advanced concepts of differential privacy for machine learning PART 2 - LOCAL DIFFERENTIAL PRIVACY AND SYNTHETIC DATA GENERATION 4 Local differential privacy for machine learning 5 Advanced LDP mechanisms for machine learning 6 Privacy-preserving synthetic data generation PART 3 - BUILDING PRIVACY-ASSURED MACHINE LEARNING APPLICATIONS 7 Privacy-preserving data mining techniques 8 Privacy-preserving data management and operations 9 Compressive privacy for machine learning 10 Putting it all together: Designing a privacy-enhanced platform (DataHub)




Building Microservices with Go


Book Description

Your one-stop guide to the common patterns and practices, showing you how to apply these using the Go programming language About This Book This short, concise, and practical guide is packed with real-world examples of building microservices with Go It is easy to read and will benefit smaller teams who want to extend the functionality of their existing systems Using this practical approach will save your money in terms of maintaining a monolithic architecture and demonstrate capabilities in ease of use Who This Book Is For You should have a working knowledge of programming in Go, including writing and compiling basic applications. However, no knowledge of RESTful architecture, microservices, or web services is expected. If you are looking to apply techniques to your own projects, taking your first steps into microservice architecture, this book is for you. What You Will Learn Plan a microservice architecture and design a microservice Write a microservice with a RESTful API and a database Understand the common idioms and common patterns in microservices architecture Leverage tools and automation that helps microservices become horizontally scalable Get a grounding in containerization with Docker and Docker-Compose, which will greatly accelerate your development lifecycle Manage and secure Microservices at scale with monitoring, logging, service discovery, and automation Test microservices and integrate API tests in Go In Detail Microservice architecture is sweeping the world as the de facto pattern to build web-based applications. Golang is a language particularly well suited to building them. Its strong community, encouragement of idiomatic style, and statically-linked binary artifacts make integrating it with other technologies and managing microservices at scale consistent and intuitive. This book will teach you the common patterns and practices, showing you how to apply these using the Go programming language. It will teach you the fundamental concepts of architectural design and RESTful communication, and show you patterns that provide manageable code that is supportable in development and at scale in production. We will provide you with examples on how to put these concepts and patterns into practice with Go. Whether you are planning a new application or working in an existing monolith, this book will explain and illustrate with practical examples how teams of all sizes can start solving problems with microservices. It will help you understand Docker and Docker-Compose and how it can be used to isolate microservice dependencies and build environments. We finish off by showing you various techniques to monitor, test, and secure your microservices. By the end, you will know the benefits of system resilience of a microservice and the advantages of Go stack. Style and approach The step-by-step tutorial focuses on building microservices. Each chapter expands upon the previous one, teaching you the main skills and techniques required to be a successful microservice practitioner.