AI-Assisted Programming for Web and Machine Learning: Improve your development workflow with ChatGPT and GitHub Copilot
- Length: 602 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2024-08-30
- ISBN-10: 1835086055
- ISBN-13: 9781835086056
Speed up your development processes and improve your productivity by writing practical and relevant prompts to build web applications and Machine Learning (ML) models
Purchase of the print or Kindle book includes a free PDF copy
Key Features
- Utilize prompts to enhance frontend and backend web development
- Develop prompt strategies to build robust machine learning models
- Use GitHub Copilot for data exploration, maintaining existing code bases, and augmenting ML models into web applications
Book Description
AI-Assisted Programming for Web and Machine Learning shows you how to build applications and machine learning models and automate repetitive tasks.
Part 1 focuses on coding, from building a user interface to the backend. You’ll use prompts to create the appearance of an app using HTML, styling with CSS, adding behavior with JavaScript, and working with multiple viewports. Next, you’ll build a web API with Python and Flask and refactor the code to improve code readability. Part 1 ends with using GitHub Copilot to improve the maintainability and performance of existing code.
Part 2 provides a prompting toolkit for data science from data checking (inspecting data and creating distribution graphs and correlation matrices) to building and optimizing a neural network. You’ll use different prompt strategies for data preprocessing, feature engineering, model selection, training, hyperparameter optimization, and model evaluation for various machine learning models and use cases.
The book closes with chapters on advanced techniques on GitHub Copilot and software agents. There are tips on code generation, debugging, and troubleshooting code. You’ll see how simpler and AI-powered agents work and discover tool calling.
What you will learn
- Speed up your coding and machine learning workflows with GitHub Copilot and ChatGPT
- Use an AI-assisted approach across the development lifecycle
- Implement prompt engineering techniques in the data science lifecycle
- Develop the frontend and backend of a web application with AI assistance
- Build machine learning models with GitHub Copilot and ChatGPT
- Refactor code and fix faults for better efficiency and readability
- Improve your codebase with rich documentation and enhanced workflows
Who this book is for
Experienced developers new to GitHub Copilot and ChatGPT can discover the best strategies to improve productivity and deliver projects quicker than traditional methods. This book is ideal for software engineers working on web or machine learning projects. It is also a useful resource for web developers, data scientists, and analysts who want to improve their efficiency with the help of prompting. This book does not teach web development or how different machine learning models work.
Table of Contents
- It’s a New World, One With AI Assistants, and You’re Invited
- Prompt Strategy
- Tools of the Trade: Introducing Our AI Assistants
- Build the Appearance of Our App with HTML and Copilot
- Style the App with CSS and Copilot
- Add Behavior with JavaScript
- Support Multiple Viewports Using Responsive Web Layouts
- Build a Backend with Web APIs
- Augment Web Apps with AI Services
- Maintaining Existing Codebases
- Data Exploration with ChatGPT
- Building a Classification Model with ChatGPT
- Building a Regression Model for Customer Spend with ChatGPT
- Building an MLP Model for Fashion-MNIST with ChatGPT
- Building a CNN Model for CIFAR-10 with ChatGPT
- Unsupervised Learning: Clustering and PCA