Machine Learning and AI with Simple Python and Matlab Scripts: Courseware for Non-computing Majors introduces basic concepts and principles of machine learning and artificial intelligence to help readers develop skills applicable to many popular topics in engineering and science. Step-by-step instructions for simple Python and Matlab scripts mimicking real-life applications will enter the readers into the magical world of AI, without requiring them to have advanced math and computational skills. The book is supported by instructor only lecture slides and sample exams with multiple-choice questions.
Machine Learning and AI with Simple Python and Matlab Scripts includes information on:
Artificial neural networks applied to real-world problems such as algorithmic trading of financial assets, Alzheimer’s disease prognosis
Convolution neural networks for speech recognition and optical character recognition
Recurrent neural networks for chatbots and natural language translators
Typical AI tasks including flight control for autonomous drones, dietary menu planning, and route planning
Advanced AI tasks including particle swarm optimization and differential and grammatical evolution as well as the current state of the art in AI tools
Machine Learning and AI with Simple Python and Matlab Scripts is an accessible, thorough, and practical learning resource for undergraduate and graduate students in engineering and science programs along with professionals in related industries seeking to expand their skill sets.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
# Machine Learning and AI with Simple Python and Matlab Scripts: Courseware for Non-computing Majors
## 【One-Line Pitch】
A hands-on, math-light introduction to machine learning and AI for engineering and science students, built around simple Python and Matlab scripts that tackle real-world problems from stock trading to Alzheimer's prognosis. If you've been intimidated by AI's math prerequisites, this courseware-style book gets you coding neural networks from day one.
## 【Book Arc】
- **Opening (~0%–9%)**: Foundations of artificial neural networks (ANNs) — what neurons, weights, and layers are, how forward propagation computes outputs, and why training means minimizing error/loss by adjusting weights. Includes a fully worked numerical example showing the math step-by-step.
- **Early (~9%–25%)**: Training mechanics and first applications — back propagation, learning rates, bias inputs, and weight update rules. Two complete case studies (sleep-study grade prediction and London bike rental demand) with full Python and Matlab scripts you can run and modify.
- **Early (~25%–34%)**: Financial applications — moving averages (SMA/EMA), momentum, and Bollinger Bands as ANN inputs for stock trading predictions. Shows how to select inputs and interpret non-deterministic results across runs.
- **Middle (~34%–47%)**: Advanced ANN architectures and validation — a four-hidden-layer network (120-60-15-5-1) for Alzheimer's disease prognosis using gene expression data, with leave-one-out cross-validation (LOOCV) to prevent over-fitting. Introduces natural language processing with keyword-frequency inputs for market prediction from tweets.
- **Late (~47%–100%)**: The book continues into convolutional neural networks (speech and OCR), recurrent neural networks (chatbots, translators), and advanced optimization techniques (particle swarm, differential and grammatical evolution), plus current AI tools. Excerpts do not cover these later chapters in detail.
## 【Key Takeaways】
- **ANNs are just weight-adjustment machines** (Early): The entire training process reduces to minimizing error by updating weights via back propagation — no advanced math required beyond basic derivatives. A worked example shows error dropping from 5,974 to 5,273 in one iteration.
- **Bias is non-negotiable for real problems** (Early): Every layer needs a bias input, randomly initialized and trained alongside weights, to make predictions accurate for real-world data. Skipping bias leads to poor convergence.
- **Input selection matters more than architecture** (Early): Choosing the right inputs (e.g., study hours and sleep hours for grade prediction; wind speed and temperature for bike rental) is the single most important design decision. Outputs can be direct measurements or derived values like growth rates.
- **Learning rate controls training stability** (Early): The learning rate (α) determines how much weights change per iteration — too large causes oscillation, too small makes training painfully slow. The book shows the exact update equations.
- **Cross-validation prevents over-fitting** (Middle): Leave-one-out cross-validation trains on N−1 samples and tests on the held-out one, repeated N times. This catches ANNs that memorize noise instead of learning patterns — a common failure with too many hidden layers.
- **Real applications need domain expertise** (Middle): The Alzheimer's example shows architecture selection (120-60-15-5-1) came from experimentation, and financial trading requires understanding SMA periods, momentum, and Bollinger Bands — AI alone doesn't make domain knowledge obsolete.
- **ANNs are non-deterministic** (Early): Running the same stock-trading script twice can give different predictions due to random weight initialization. Consistent results require careful selection of technical indicators and ANN parameters.
## 【Reading Tips】
- **Skim the math, focus on the scripts**: The book's strength is its runnable code. If equations feel heavy, jump to the Python/Matlab listings and trace how they implement the concepts — the code comments explain the logic.
- **Deep-read Chapter 2–3 for fundamentals**: The worked numerical example (inputs 3 and 5, output 75) is worth understanding fully — it demystifies forward/back propagation better than any formula alone.
- **Run the case studies before moving on**: The sleep-study and bike-rental examples are your training wheels. Modify inputs, change learning rates, and observe how predictions shift — this builds intuition no amount of reading can provide.
- **Treat exercises as mini-projects**: Each chapter ends with exercises asking you to repeat experiments across Python and Matlab versions. Doing even a few builds cross-language confidence.
- **Skip ahead if you're here for CNNs/RNNs**: The early chapters are ANN-heavy. If your interest is chatbots or speech recognition, the later chapters cover those, but you'll need the ANN foundation first.
## 【Coverage Limits】
This guide covers the ANN fundamentals and early applications (Chapters 2–6) in detail. The later chapters on CNNs, RNNs, and evolutionary algorithms are mentioned but not analyzed — excerpts do not include their content.
##
Page 14
raining with Bias Input 317 A.3 Forward Propagation 318 A.3.1 Forward Propagation from Input to Hidden Layer 319 A.3.2 Neuron Back Propagation with Bias Inpu...
s (for 50 and 200 days) displayed in Figure 4.6 for Bitcoin. One can form a policy called moving average crossover [50] such that when a short-term SMA cross...
output layer (percentage change in closing price). As noted in earlier chapters, inputs, the number of inputs, hidden layers, neurons in each hidden layer, o...
cter output at a time as part of completing the word hello, when the user applies the input character x1 = h, the RNN is expected to generate e. One-hot enco...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Machine Learning and AI with Simple Python and Matlab Scripts. Courseware for Non-computing Majors (M. Ümit Uyar)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Machine Learning and AI with Simple Python and Matlab Scripts. Courseware for Non-computing Majors (M. Ümit Uyar)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment