The Regularization Cookbook

The Regularization Cookbook
Author: Vincent Vandenbussche,Akin Osman Kazakci
Publsiher: Packt Publishing Ltd
Total Pages: 424
Release: 2023-07-31
Genre: Mathematics
ISBN: 9781837639724

Download The Regularization Cookbook Book in PDF, Epub and Kindle

Methodologies and recipes to regularize any machine learning and deep learning model using cutting-edge technologies such as stable diffusion, Dall-E and GPT-3 Purchase of the print or Kindle book includes a free PDF eBook Key Features Learn to diagnose the need for regularization in any machine learning model Regularize different ML models using a variety of techniques and methods Enhance the functionality of your models using state of the art computer vision and NLP techniques Book Description Regularization is an infallible way to produce accurate results with unseen data, however, applying regularization is challenging as it is available in multiple forms and applying the appropriate technique to every model is a must. The Regularization Cookbook provides you with the appropriate tools and methods to handle any case, with ready-to-use working codes as well as theoretical explanations. After an introduction to regularization and methods to diagnose when to use it, you'll start implementing regularization techniques on linear models, such as linear and logistic regression, and tree-based models, such as random forest and gradient boosting. You'll then be introduced to specific regularization methods based on data, high cardinality features, and imbalanced datasets. In the last five chapters, you'll discover regularization for deep learning models. After reviewing general methods that apply to any type of neural network, you'll dive into more NLP-specific methods for RNNs and transformers, as well as using BERT or GPT-3. By the end, you'll explore regularization for computer vision, covering CNN specifics, along with the use of generative models such as stable diffusion and Dall-E. By the end of this book, you'll be armed with different regularization techniques to apply to your ML and DL models. What you will learn Diagnose overfitting and the need for regularization Regularize common linear models such as logistic regression Understand regularizing tree-based models such as XGBoos Uncover the secrets of structured data to regularize ML models Explore general techniques to regularize deep learning models Discover specific regularization techniques for NLP problems using transformers Understand the regularization in computer vision models and CNN architectures Apply cutting-edge computer vision regularization with generative models Who this book is for This book is for data scientists, machine learning engineers, and machine learning enthusiasts, looking to get hands-on knowledge to improve the performances of their models. Basic knowledge of Python is a prerequisite.

Time Series Analysis with Python Cookbook

Time Series Analysis with Python Cookbook
Author: Tarek A. Atwan
Publsiher: Packt Publishing Ltd
Total Pages: 630
Release: 2022-06-30
Genre: Computers
ISBN: 9781801071260

Download Time Series Analysis with Python Cookbook Book in PDF, Epub and Kindle

Perform time series analysis and forecasting confidently with this Python code bank and reference manual Key Features • Explore forecasting and anomaly detection techniques using statistical, machine learning, and deep learning algorithms • Learn different techniques for evaluating, diagnosing, and optimizing your models • Work with a variety of complex data with trends, multiple seasonal patterns, and irregularities Book Description Time series data is everywhere, available at a high frequency and volume. It is complex and can contain noise, irregularities, and multiple patterns, making it crucial to be well-versed with the techniques covered in this book for data preparation, analysis, and forecasting. This book covers practical techniques for working with time series data, starting with ingesting time series data from various sources and formats, whether in private cloud storage, relational databases, non-relational databases, or specialized time series databases such as InfluxDB. Next, you'll learn strategies for handling missing data, dealing with time zones and custom business days, and detecting anomalies using intuitive statistical methods, followed by more advanced unsupervised ML models. The book will also explore forecasting using classical statistical models such as Holt-Winters, SARIMA, and VAR. The recipes will present practical techniques for handling non-stationary data, using power transforms, ACF and PACF plots, and decomposing time series data with multiple seasonal patterns. Later, you'll work with ML and DL models using TensorFlow and PyTorch. Finally, you'll learn how to evaluate, compare, optimize models, and more using the recipes covered in the book. What you will learn • Understand what makes time series data different from other data • Apply various imputation and interpolation strategies for missing data • Implement different models for univariate and multivariate time series • Use different deep learning libraries such as TensorFlow, Keras, and PyTorch • Plot interactive time series visualizations using hvPlot • Explore state-space models and the unobserved components model (UCM) • Detect anomalies using statistical and machine learning methods • Forecast complex time series with multiple seasonal patterns Who this book is for This book is for data analysts, business analysts, data scientists, data engineers, or Python developers who want practical Python recipes for time series analysis and forecasting techniques. Fundamental knowledge of Python programming is required. Although having a basic math and statistics background will be beneficial, it is not necessary. Prior experience working with time series data to solve business problems will also help you to better utilize and apply the different recipes in this book.

TensorFlow 1 x Deep Learning Cookbook

TensorFlow 1 x Deep Learning Cookbook
Author: Antonio Gulli,Amita Kapoor
Publsiher: Packt Publishing Ltd
Total Pages: 526
Release: 2017-12-12
Genre: Computers
ISBN: 9781788291866

Download TensorFlow 1 x Deep Learning Cookbook Book in PDF, Epub and Kindle

Take the next step in implementing various common and not-so-common neural networks with Tensorflow 1.x About This Book Skill up and implement tricky neural networks using Google's TensorFlow 1.x An easy-to-follow guide that lets you explore reinforcement learning, GANs, autoencoders, multilayer perceptrons and more. Hands-on recipes to work with Tensorflow on desktop, mobile, and cloud environment Who This Book Is For This book is intended for data analysts, data scientists, machine learning practitioners and deep learning enthusiasts who want to perform deep learning tasks on a regular basis and are looking for a handy guide they can refer to. People who are slightly familiar with neural networks, and now want to gain expertise in working with different types of neural networks and datasets, will find this book quite useful. What You Will Learn Install TensorFlow and use it for CPU and GPU operations Implement DNNs and apply them to solve different AI-driven problems. Leverage different data sets such as MNIST, CIFAR-10, and Youtube8m with TensorFlow and learn how to access and use them in your code. Use TensorBoard to understand neural network architectures, optimize the learning process, and peek inside the neural network black box. Use different regression techniques for prediction and classification problems Build single and multilayer perceptrons in TensorFlow Implement CNN and RNN in TensorFlow, and use it to solve real-world use cases. Learn how restricted Boltzmann Machines can be used to recommend movies. Understand the implementation of Autoencoders and deep belief networks, and use them for emotion detection. Master the different reinforcement learning methods to implement game playing agents. GANs and their implementation using TensorFlow. In Detail Deep neural networks (DNNs) have achieved a lot of success in the field of computer vision, speech recognition, and natural language processing. The entire world is filled with excitement about how deep networks are revolutionizing artificial intelligence. This exciting recipe-based guide will take you from the realm of DNN theory to implementing them practically to solve the real-life problems in artificial intelligence domain. In this book, you will learn how to efficiently use TensorFlow, Google's open source framework for deep learning. You will implement different deep learning networks such as Convolutional Neural Networks (CNNs), Recurrent Neural Networks (RNNs), Deep Q-learning Networks (DQNs), and Generative Adversarial Networks (GANs) with easy to follow independent recipes. You will learn how to make Keras as backend with TensorFlow. With a problem-solution approach, you will understand how to implement different deep neural architectures to carry out complex tasks at work. You will learn the performance of different DNNs on some popularly used data sets such as MNIST, CIFAR-10, Youtube8m, and more. You will not only learn about the different mobile and embedded platforms supported by TensorFlow but also how to set up cloud platforms for deep learning applications. Get a sneak peek of TPU architecture and how they will affect DNN future. By using crisp, no-nonsense recipes, you will become an expert in implementing deep learning techniques in growing real-world applications and research areas such as reinforcement learning, GANs, autoencoders and more. Style and approach This book consists of hands-on recipes where you'll deal with real-world problems. You'll execute a series of tasks as you walk through data mining challenges using TensorFlow 1.x. Your one-stop solution for common and not-so-common pain points, this is a book that you must have on the shelf.

Machine Learning with Python Cookbook

Machine Learning with Python Cookbook
Author: Chris Albon
Publsiher: "O'Reilly Media, Inc."
Total Pages: 305
Release: 2018-03-09
Genre: Computers
ISBN: 9781491989333

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

This practical guide provides nearly 200 self-contained recipes to help you solve machine learning challenges you may encounter in your daily work. If you’re comfortable with Python and its libraries, including pandas and scikit-learn, you’ll be able to address specific problems such as loading data, handling text or numerical data, model selection, and dimensionality reduction and many other topics. Each recipe includes code that you can copy and paste into a toy dataset to ensure that it actually works. From there, you can insert, combine, or adapt the code to help construct your application. Recipes also include a discussion that explains the solution and provides meaningful context. This cookbook takes you beyond theory and concepts by providing the nuts and bolts you need to construct working machine learning applications. You’ll find recipes for: Vectors, matrices, and arrays Handling numerical and categorical data, text, images, and dates and times Dimensionality reduction using feature extraction or feature selection Model evaluation and selection Linear and logical regression, trees and forests, and k-nearest neighbors Support vector machines (SVM), naïve Bayes, clustering, and neural networks Saving and loading trained models

Machine Learning with Python Cookbook

Machine Learning with Python Cookbook
Author: Kyle Gallatin,Chris Albon
Publsiher: "O'Reilly Media, Inc."
Total Pages: 376
Release: 2023-07-27
Genre: Computers
ISBN: 9781098135683

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

This practical guide provides more than 200 self-contained recipes to help you solve machine learning challenges you may encounter in your work. If you're comfortable with Python and its libraries, including pandas and scikit-learn, you'll be able to address specific problems, from loading data to training models and leveraging neural networks. Each recipe in this updated edition includes code that you can copy, paste, and run with a toy dataset to ensure that it works. From there, you can adapt these recipes according to your use case or application. Recipes include a discussion that explains the solution and provides meaningful context. Go beyond theory and concepts by learning the nuts and bolts you need to construct working machine learning applications. You'll find recipes for: Vectors, matrices, and arrays Working with data from CSV, JSON, SQL, databases, cloud storage, and other sources Handling numerical and categorical data, text, images, and dates and times Dimensionality reduction using feature extraction or feature selection Model evaluation and selection Linear and logical regression, trees and forests, and k-nearest neighbors Supporting vector machines (SVM), naäve Bayes, clustering, and tree-based models Saving, loading, and serving trained models from multiple frameworks

Neural Networks with Keras Cookbook

Neural Networks with Keras Cookbook
Author: V Kishore Ayyadevara
Publsiher: Packt Publishing Ltd
Total Pages: 558
Release: 2019-02-28
Genre: Computers
ISBN: 9781789342109

Download Neural Networks with Keras Cookbook Book in PDF, Epub and Kindle

Implement neural network architectures by building them from scratch for multiple real-world applications. Key FeaturesFrom scratch, build multiple neural network architectures such as CNN, RNN, LSTM in KerasDiscover tips and tricks for designing a robust neural network to solve real-world problemsGraduate from understanding the working details of neural networks and master the art of fine-tuning themBook Description This book will take you from the basics of neural networks to advanced implementations of architectures using a recipe-based approach. We will learn about how neural networks work and the impact of various hyper parameters on a network's accuracy along with leveraging neural networks for structured and unstructured data. Later, we will learn how to classify and detect objects in images. We will also learn to use transfer learning for multiple applications, including a self-driving car using Convolutional Neural Networks. We will generate images while leveraging GANs and also by performing image encoding. Additionally, we will perform text analysis using word vector based techniques. Later, we will use Recurrent Neural Networks and LSTM to implement chatbot and Machine Translation systems. Finally, you will learn about transcribing images, audio, and generating captions and also use Deep Q-learning to build an agent that plays Space Invaders game. By the end of this book, you will have developed the skills to choose and customize multiple neural network architectures for various deep learning problems you might encounter. What you will learnBuild multiple advanced neural network architectures from scratchExplore transfer learning to perform object detection and classificationBuild self-driving car applications using instance and semantic segmentationUnderstand data encoding for image, text and recommender systemsImplement text analysis using sequence-to-sequence learningLeverage a combination of CNN and RNN to perform end-to-end learningBuild agents to play games using deep Q-learningWho this book is for This intermediate-level book targets beginners and intermediate-level machine learning practitioners and data scientists who have just started their journey with neural networks. This book is for those who are looking for resources to help them navigate through the various neural network architectures; you'll build multiple architectures, with concomitant case studies ordered by the complexity of the problem. A basic understanding of Python programming and a familiarity with basic machine learning are all you need to get started with this book.

Machine Learning with LightGBM and Python

Machine Learning with LightGBM and Python
Author: Andrich van Wyk
Publsiher: Packt Publishing Ltd
Total Pages: 252
Release: 2023-09-29
Genre: Computers
ISBN: 9781800563056

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

Take your software to the next level and solve real-world data science problems by building production-ready machine learning solutions using LightGBM and Python Key Features Get started with LightGBM, a powerful gradient-boosting library for building ML solutions Apply data science processes to real-world problems through case studies Elevate your software by building machine learning solutions on scalable platforms Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionMachine Learning with LightGBM and Python is a comprehensive guide to learning the basics of machine learning and progressing to building scalable machine learning systems that are ready for release. This book will get you acquainted with the high-performance gradient-boosting LightGBM framework and show you how it can be used to solve various machine-learning problems to produce highly accurate, robust, and predictive solutions. Starting with simple machine learning models in scikit-learn, you’ll explore the intricacies of gradient boosting machines and LightGBM. You’ll be guided through various case studies to better understand the data science processes and learn how to practically apply your skills to real-world problems. As you progress, you’ll elevate your software engineering skills by learning how to build and integrate scalable machine-learning pipelines to process data, train models, and deploy them to serve secure APIs using Python tools such as FastAPI. By the end of this book, you’ll be well equipped to use various -of-the-art tools that will help you build production-ready systems, including FLAML for AutoML, PostgresML for operating ML pipelines using Postgres, high-performance distributed training and serving via Dask, and creating and running models in the Cloud with AWS Sagemaker.What you will learn Get an overview of ML and working with data and models in Python using scikit-learn Explore decision trees, ensemble learning, gradient boosting, DART, and GOSS Master LightGBM and apply it to classification and regression problems Tune and train your models using AutoML with FLAML and Optuna Build ML pipelines in Python to train and deploy models with secure and performant APIs Scale your solutions to production readiness with AWS Sagemaker, PostgresML, and Dask Who this book is forThis book is for software engineers aspiring to be better machine learning engineers and data scientists unfamiliar with LightGBM, looking to gain in-depth knowledge of its libraries. Basic to intermediate Python programming knowledge is required to get started with the book. The book is also an excellent source for ML veterans, with a strong focus on ML engineering with up-to-date and thorough coverage of platforms such as AWS Sagemaker, PostgresML, and Dask.

TensorFlow Machine Learning Cookbook

TensorFlow Machine Learning Cookbook
Author: Nick McClure
Publsiher: Packt Publishing Ltd
Total Pages: 417
Release: 2018-08-31
Genre: Computers
ISBN: 9781789130768

Download TensorFlow Machine Learning Cookbook Book in PDF, Epub and Kindle

Skip the theory and get the most out of Tensorflow to build production-ready machine learning models Key Features Exploit the features of Tensorflow to build and deploy machine learning models Train neural networks to tackle real-world problems in Computer Vision and NLP Handy techniques to write production-ready code for your Tensorflow models Book Description TensorFlow is an open source software library for Machine Intelligence. The independent recipes in this book will teach you how to use TensorFlow for complex data computations and allow you to dig deeper and gain more insights into your data than ever before. With the help of this book, you will work with recipes for training models, model evaluation, sentiment analysis, regression analysis, clustering analysis, artificial neural networks, and more. You will explore RNNs, CNNs, GANs, reinforcement learning, and capsule networks, each using Google's machine learning library, TensorFlow. Through real-world examples, you will get hands-on experience with linear regression techniques with TensorFlow. Once you are familiar and comfortable with the TensorFlow ecosystem, you will be shown how to take it to production. By the end of the book, you will be proficient in the field of machine intelligence using TensorFlow. You will also have good insight into deep learning and be capable of implementing machine learning algorithms in real-world scenarios. What you will learn Become familiar with the basic features of the TensorFlow library Get to know Linear Regression techniques with TensorFlow Learn SVMs with hands-on recipes Implement neural networks to improve predictive modeling Apply NLP and sentiment analysis to your data Master CNN and RNN through practical recipes Implement the gradient boosted random forest to predict housing prices Take TensorFlow into production Who this book is for If you are a data scientist or a machine learning engineer with some knowledge of linear algebra, statistics, and machine learning, this book is for you. If you want to skip the theory and build production-ready machine learning models using Tensorflow without reading pages and pages of material, this book is for you. Some background in Python programming is assumed.