AI-Assisted Programming for Web and Machine Learning Improve your development workflow with ChatGPT and GitHub Copilot

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 develo...

Full description

Saved in:
Bibliographic Details
Main Authors: Noring, Christoffer, Jain, Anjali, Fernandez, Marina, Mutlu, Ayşe, Jaokar, Ajit
Format: eBook
Language:English
Published: Birmingham Packt Publishing 2024
Packt Publishing, Limited
Packt Publishing Limited
Edition:1
Subjects:
ISBN:9781835086056, 1835086055
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Abstract 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 developmentDevelop prompt strategies to build robust machine learning modelsUse 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 ChatGPTUse an AI-assisted approach across the development lifecycle Implement prompt engineering techniques in the data science lifecycleDevelop 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.
AbstractList 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 developmentDevelop prompt strategies to build robust machine learning modelsUse 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 ChatGPTUse an AI-assisted approach across the development lifecycle Implement prompt engineering techniques in the data science lifecycleDevelop 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.
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.
Author Noring, Christoffer
Mutlu, Ayşe
Fernandez, Marina
Jain, Anjali
Jaokar, Ajit
Author_xml – sequence: 1
  givenname: Christoffer
  surname: Noring
  fullname: Noring, Christoffer
– sequence: 2
  givenname: Anjali
  surname: Jain
  fullname: Jain, Anjali
– sequence: 3
  givenname: Marina
  surname: Fernandez
  fullname: Fernandez, Marina
– sequence: 4
  givenname: Ayşe
  surname: Mutlu
  fullname: Mutlu, Ayşe
– sequence: 5
  givenname: Ajit
  surname: Jaokar
  fullname: Jaokar, Ajit
BookMark eNpVjz1PwzAQho34ELR0ZGHKggRDwI4Tf4yhKlApFR0QHS0nvpTQ1Cl2Cuq_JxAGesvdq_fRI90AHdnGAkIXBN_ibu4kF0TQBAsqZHKARnv58F9mOGEnaEDiJCGUYS5O0cj7985BKY5YJM9QnE7D1PvKt2CCuWuWTq_XlV0GZeOCBeSBtiaY6eKtshBkoJ3tynN0XOraw-hvD9Hrw-Rl_BRmz4_TcZqFmnCRkFBAFAHRlDFppMyxMJwDK4gwMeeUsjKOMOal1kSAKBIBpoyMiXFOZZnw3NAhuunFX7puwRlYuu2uO9Rau0Lt_d2x1z27cc3HFnyrIG-aVQG2dbpWk_sxJSxiOKYdetWjK9t8Qq02ruqEO_XDq9UmnabzxSyTHXfZcxUA_LZeEcyZpDym39wUcFg
ContentType eBook
Copyright 2024 Packt Publishing
2024
Copyright_xml – notice: 2024 Packt Publishing
– notice: 2024
DEWEY 006.31
DOI 10.0000/9781835083895
DatabaseTitleList

DeliveryMethod fulltext_linktorsrc
Discipline Computer Science
EISBN 9781835083895
1835083897
Edition 1
ExternalDocumentID 9781835083895
EBC31626043
book_kpAIAPWML9
10769374
GroupedDBID AABBV
AANYM
ABWNX
ACIWJ
ADBND
AEHEP
ALMA_UNASSIGNED_HOLDINGS
APVFW
BBABE
CMZ
CZZ
E2F
ECNEQ
IFFWR
IIUVB
K-E
OHILO
OODEK
PASLL
TD3
UE6
AAKGN
AAZGR
ABRSK
ACXXF
AFQEX
AAZEP
ACVFQ
AEIUR
QD8
ID FETCH-LOGICAL-a17851-8e22e1a3669d99b08d77e6c18d477336f42007faa18e8c58edf2dd40b39f57bd3
IEDL.DBID CMZ
ISBN 9781835086056
1835086055
IngestDate Fri Nov 21 21:35:57 EST 2025
Wed Aug 20 03:09:30 EDT 2025
Wed Apr 16 04:03:15 EDT 2025
Thu Jan 23 06:57:41 EST 2025
IsPeerReviewed false
IsScholarly false
LCCallNum_Ident Q325.5 .N675 2024
Language English
LinkModel DirectLink
MergedId FETCHMERGED-LOGICAL-a17851-8e22e1a3669d99b08d77e6c18d477336f42007faa18e8c58edf2dd40b39f57bd3
OCLC 1455136078
PQID EBC31626043
PageCount 0
ParticipantIDs walterdegruyter_marc_9781835083895
proquest_ebookcentral_EBC31626043
knovel_primary_book_kpAIAPWML9
ieee_books_10769374
PublicationCentury 2000
PublicationDate 2024
[2024]
PublicationDateYYYYMMDD 2024-01-01
PublicationDate_xml – year: 2024
  text: 2024
PublicationDecade 2020
PublicationPlace Birmingham
PublicationPlace_xml – name: Birmingham
– name: Birmingham, UK
PublicationYear 2024
Publisher Packt Publishing
Packt Publishing, Limited
Packt Publishing Limited
Publisher_xml – name: Packt Publishing
– name: Packt Publishing, Limited
– name: Packt Publishing Limited
RestrictionsOnAccess restricted access
SSID ssj0003302629
Score 2.3963025
Snippet Speed up your development processes and improve your productivity by writing practical and relevant prompts to build web applications and Machine Learning (ML)...
AI-Assisted Programming for Web and Machine Learning shows you how to build applications and machine learning models and automate repetitive tasks. Part 1...
SourceID walterdegruyter
proquest
knovel
ieee
SourceType Publisher
SubjectTerms COMPUTERS / Neural Networks
COMPUTERS / Software Development & Engineering / Tools
COMPUTERS / Web / Design
Computing and Processing
General References
Machine learning
Software Engineering
Subtitle Improve your development workflow with ChatGPT and GitHub Copilot
TableOfContents Table of Contents It's a New World, One With AI Assistants, and You're InvitedPrompt StrategyTools of the Trade: Introducing Our AI AssistantsBuild the Appearance of Our App with HTML and CopilotStyle the App with CSS and CopilotAdd Behavior with JavaScriptSupport Multiple Viewports Using Responsive Web LayoutsBuild a Backend with Web APIsAugment Web Apps with AI ServicesMaintaining Existing CodebasesData Exploration with ChatGPTBuilding a Classification Model with ChatGPTBuilding a Regression Model for Customer Spend with ChatGPTBuilding an MLP Model for Fashion-MNIST with ChatGPTBuilding a CNN Model for CIFAR-10 with ChatGPTUnsupervised Learning: Clustering and PCAMachine Learning with CopilotRegression with Copilot ChatRegression with Copilot SuggestionsIncreasing Efficiency with GitHub CopilotAgents in Software DevelopmentConclusion
Title Page Preface Table of Contents 1. It's a New World, One with AI Assistants, and You're Invited 2. Prompt Strategy 3. Tools of the Trade: Introducing Our AI Assistants 4. Build the Appearance of Our App with HTML and Copilot 5. Style the App with CSS and Copilot 6. Add Behavior with JavaScript 7. Support Multiple Viewports Using Responsive Web Layouts 8. Build a Backend with Web APIs 9. Augment Web Apps with AI Services 10. Maintaining Existing Codebases 11. Data Exploration with ChatGPT 12. Building a Classification Model with ChatGPT 13. Building a Regression Model for Customer Spend with ChatGPT 14. Building an MLP Model for Fashion-MNIST with ChatGPT 15. Building a CNN Model for CIFAR-10 with ChatGPT 16. Unsupervised Learning: Clustering and PCA 17. Machine Learning with Copilot 18. Regression with Copilot Chat 19. Regression with Copilot Suggestions 20. Increasing Efficiency with GitHub Copilot 21. Agents in Software Development 22. Conclusion Index
1. Identify the problems. What problems do you see? -- 2. Add tests and de-risk change -- 3. Implement change and improve maintainability -- Challenge -- Updating an existing e-commerce site -- Assignment -- Knowledge check -- Summary -- Chapter 11: Data Exploration with ChatGPT -- Introduction -- Business problem -- Problem and data domain -- Dataset overview -- Feature breakdown -- Prompting strategy -- Strategy 1: Task-Actions-Guidelines (TAG) prompt strategy -- Strategy 2: Persona-Instructions-Context (PIC) prompt strategy -- Strategy 3: Learn-Improvise-Feedback-Evaluate (LIFE) prompt strategy -- Data exploration of the Amazon review dataset using the free version of ChatGPT -- Feature 1: Loading the dataset -- Feature 2: Inspecting the data -- Feature 3: Summary statistics -- Feature 4: Exploring categorical variables -- Feature 5: Rating distribution -- Feature 6: Temporal trends -- Feature 7: Review length analysis -- Feature 8: Correlation study -- Data exploration of the Amazon review dataset using ChatGPT-4o -- Assignment -- Challenge -- Summary -- Chapter 12: Building a Classification Model with ChatGPT -- Introduction -- Business problem -- Problem and data domain -- Dataset overview -- Breaking the problem down into features -- Prompting strategy -- Strategy 1: Task-Actions-Guidelines (TAG) prompt strategy -- Strategy 2: Persona-Instructions-Context (PIC) prompt strategy -- Strategy 3: Learn-Improvise-Feedback-Evaluate (LIFE) prompt strategy -- Building a sentiment analysis model to accurately classify Amazon reviews using the free version of ChatGPT -- Feature 1: Data preprocessing and feature engineering -- Feature 2: Model selection and baseline training -- Feature 3: Model evaluation and interpretation -- Feature 4: Handling imbalanced data -- Feature 5: Hyperparameter tuning -- Feature 6: Experimenting with feature representation
Introduction -- Business domain: e-commerce -- Problem and data domain -- Feature breakdown -- Prompt strategy -- Web APIs -- What language and framework should you pick? -- Planning the Web API -- Creating a Web API with Python and Flask -- Step 1: Create a new project -- Step 2: Install Flask -- Step 3: Create an entry point -- Step 4: Create a Flask app -- Use case: a Web API for an e-commerce site -- Step 1: Create a Web API for an e-commerce site -- Step 2: Return JSON instead of text -- Step 3: Add code to read and write to a database -- Step 4: Improve the code -- Run the code -- Refactor the code -- Step 5: Document the API -- Assignment -- Solution -- Challenge -- Summary -- Chapter 9: Augment Web Apps with AI Services -- Introduction -- Business domain, e-commerce -- Problem and data domain -- Feature breakdown -- Prompt strategy -- Creating a model -- Coming up with a plan -- Importing libraries -- Reading the CSV file -- Creating test and training datasets -- Creating a model -- How good is the model? -- Predict -- Saving the model to a .pkl file -- Creating a REST API in Python -- Converting the model to ONNX -- Creating a model in ONNX format -- Loading the ONNX model in JavaScript -- Installing onnxruntime in JavaScript -- Loading the ONNX model in JavaScript -- Assignment: Build a REST API in JavaScript that consumes the model -- Solution -- Quiz -- Summary -- Chapter 10: Maintaining Existing Codebases -- Introduction -- Prompt strategy -- Different types of maintenance -- The maintenance process -- Addressing a bug -- 1. Identify the problem -- 2. Implement the change -- Adding a new feature -- 1. Identify a problem and find the function/s to change -- 2. Implement change, and add a new feature and tests -- Improving performance -- Big O notation calculation -- Measuring performance -- Improving maintainability
Prompting -- Summary -- Chapter 4: Build the Appearance of Our App with HTML and Copilot -- Introduction -- Business problem: e-commerce -- Problem domain -- Problem breakdown: identify the features -- Prompt strategy -- Page structure -- Add AI assistance to our page structure -- Your first prompt, simple prompting, and aiding your AI assistant -- Your second prompt: adding more context -- Your third prompt: accept prompt suggestions -- Challenge: vary the prompt -- Use case: build a front for an e-commerce -- Login page -- Product list page -- Remaining pages -- Assignment -- Challenge -- Quiz -- Summary -- Chapter 5: Style the App with CSS and Copilot -- Introduction -- Business problem: e-commerce -- Problem and data domain -- Breaking the problem down into features -- Prompting strategy -- CSS, or Cascading Style Sheets -- First CSS -- CSS by name -- Assignment -- Solution -- Use case: style the e-commerce app -- Basket page -- Challenge -- Quiz -- Summary -- Chapter 6: Add Behavior with JavaScript -- Introduction -- Business problem: e-commerce -- Problem and data domain -- Breaking the problem down into features -- Prompting strategy -- Adding JavaScript -- The role of JavaScript -- Adding JavaScript to a page -- A second example: adding a JavaScript library/framework -- Challenge -- Use case: adding behavior -- Improving the output -- Adding Bootstrap -- Adding Vue.js -- Assignment -- Solution -- Summary -- Chapter 7: Support Multiple Viewports Using Responsive Web Layouts -- Introduction -- Business problem: e-commerce -- Problem and data domain -- Breaking the problem down into features -- Prompting strategy -- Viewports -- Media queries -- When to adjust to different viewports and make it responsive -- Use case: make our product gallery responsive -- Assignment -- Solution -- Challenge -- Summary -- Chapter 8: Build a Backend with Web APIs
Strategy 2: Persona-Instructions-Context (PIC) prompt strategy
Cover -- Copyright -- Contributors -- Preface -- Chapter 1: It's a New World, One with AI Assistants, and You're Invited -- Introduction -- How ChatGPT came to be, from NLP to LLMs -- The rise of LLMs -- GPT models -- How LLMs are better -- The new paradigm, programming with natural language -- Challenges and limitations -- About this book -- Who this book is for -- Evolution of programming languages -- Looking ahead -- How to use this book -- Chapter 2: Prompt Strategy -- Introduction -- Where you are -- Guidelines for how to prompt efficiently -- Prompt techniques -- Task-Action-Guideline prompt pattern (TAG) -- Persona-Instruction-Context prompt pattern (PIC) -- Exploratory prompt pattern -- Learn-Improvise-Feedback-Evaluate prompt pattern (LIFE) -- Which pattern to choose? -- Prompt strategy for web development -- Break down the problem: "web system for inventory management" -- Further breakdown of the frontend into features -- Generate prompts for each feature -- Identify some basic principles for web development, a "prompt strategy" -- Prompt strategy for data science -- Problem breakdown: predict sales -- Further breakdown into features/steps for data science -- Generate prompts for each step -- Identify some basic principles for data science, "a prompt strategy for data science" -- Validate the solution -- Verification via prompts -- Classical verification -- Summary -- Chapter 3: Tools of the Trade: Introducing Our AI Assistants -- Introduction -- Understanding Copilot -- How Copilot knows what to generate -- Copilot capabilities and limits -- Setup and installation -- Installing Copilot -- Getting started with Copilot -- Assignment: improve the code -- Solution -- Challenge -- References -- Understanding ChatGPT -- How does ChatGPT work? -- ChatGPT capabilities and limits -- Setup and installation -- Getting started with ChatGPT
Building a sentiment analysis model to accurately classify Amazon reviews using ChatGPT-4 or ChatGPT Plus -- Feature 1: Data preprocessing and feature engineering -- Feature 2: Model selection and baseline training -- Feature 3: Model evaluation and interpretation -- Feature 4: Handling data imbalance -- Feature 5: Hyperparameter tuning -- Feature 6: Experimenting with feature representation -- Assignment -- Challenge -- Summary -- Chapter 13: Building a Regression Model for Customer Spend with ChatGPT -- Introduction -- Business problem -- Problem and data domain -- Dataset overview -- Breaking the problem down into features -- Prompting strategy -- Strategy 1: Task-Actions-Guidelines (TAG) prompt strategy -- Strategy 2: Persona-Instructions-Context (PIC) prompt strategy -- Strategy 3: Learn-Improvise-Feedback-Evaluate (LIFE) prompt strategy -- Building a simple linear regression model to predict the "Yearly Amount Spent" by customers using the free version of ChatGPT -- Feature 1: Building the model step by step -- Feature 2: Applying regularization techniques -- Feature 3: Generating a synthetic dataset to add complexity -- Feature 4: Generating code to develop a model in a single step for a synthetic dataset -- Learning simple linear regression using ChatGPT Plus -- Feature 1: Building a simple linear regression model step by step -- Feature 2: Applying regularization techniques -- Feature 3: Generating a synthetic dataset to add complexity -- Feature 4: Generating code to develop a model in a single step for a synthetic dataset -- Assignment -- Challenge -- Summary -- Chapter 14: Building an MLP Model for Fashion-MNIST with ChatGPT -- Introduction -- Business problem -- Problem and data domain -- Dataset overview -- Breaking the problem down into features -- Prompting strategy -- Strategy 1: Task-Actions-Guidelines (TAG) prompt strategy
AI-Assisted Programming for Web and Machine Learning: Improve your development workflow with ChatGPT and GitHub Copilot
Title AI-Assisted Programming for Web and Machine Learning
URI https://ieeexplore.ieee.org/servlet/opac?bknumber=10769374
https://app.knovel.com/hotlink/toc/id:kpAIAPWML9/ai-assisted-programming/ai-assisted-programming?kpromoter=Summon
https://ebookcentral.proquest.com/lib/[SITE_ID]/detail.action?docID=31626043
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
link http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwzV1LT-MwELYQcNjLwsKiLSzIIK7eNi8_9rIqVXkIinpAgPYSJbYDUUsStSks_56x48KChLhyiRQ7ykj2aPzN6zNC-xkTMuSRJIYry7TkaCJYwgmA4yDyGKNU2kbhM3Z-zq-vxdBRbExtfVf1a1SU93pszfRtWZtEZrsuZTtXv0dV96Q7vBqciXaSE0CXZikUcaVMd2Ds3xv_M6pseRuoRxNeekegMeZgwE3Wd_D3OVgDTr9PfWFb0AOANOADRI4vav5OGwJPY__bz-OABiJ3bQuccI2YV1D264NNiit9M5k91vMkrD3bDlc-z6qsoiVtei--oQVdrKGV-Y0T2BmgdfSve0K6TgIevkjAAL3xlU5xUig8sPWhGjvq2BtMcBM60Rhs2wT_VyeFTa4gG5cP2MSjce82qY-GF_YvR3l9PEtxr6zycVl_R5eH_YveMXF3R5DEY4AiCde-r70koFQoIdIOV4xpKj2uQmYoILPQRGmzJPG45jLiWmW-UmEnDUQWsVQFG2ixKAv9A2EBGC0LKXwGWJl2_DQAYBHKKO1I6aU0a6E1s8OxcYumMfjTFDBf2EI7zQrGVcMbYufjl81qod25IsQ2M-7KceP-QS_wjKMZBi2090ZDYkNxEr_SsM2PJG2hLz5gsSZy9BMt1pOZ3kbL8r7Op5Mdq-rwPCX9J8y6JdE
linkProvider Knovel
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.title=AI-Assisted+Programming+for+Web+and+Machine+Learning&rft.au=Noring%2C+Christoffer&rft.au=Jain%2C+Anjali&rft.au=Fernandez%2C+Marina&rft.au=Mutlu%2C+Ay%C5%9Fe&rft.date=2024-01-01&rft.pub=Packt+Publishing&rft.isbn=9781835083895&rft_id=info:doi/10.0000%2F9781835083895&rft.externalDocID=10769374
thumbnail_s http://cvtisr.summon.serialssolutions.com/2.0.0/image/custom?url=https%3A%2F%2Fcontent.knovel.com%2Fcontent%2FThumbs%2Fthumb16604.gif