Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: M. Ümit Uyar

Rating No ratings yet

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

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...
View in text
Excerpt 2
where ⋅∗ represents element-wise multiplication. ⎡ 63 ⎤ 𝛿(2) = 𝛿(3) ⋅ W (2)†⋅ ∗ f (Z(2)) = ⎢⎢⎣ −4 ⎥ 81⎦ ⋅ −1 3.1 2.7 ⋅ ∗ ⎢⎢1 1 1⎤ ⎣0 1 1⎥⎥ 0 1 1⎦ ⎡ .3 196....
View in text
Excerpt 3
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...
View in text
Excerpt 4
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...
View in text
Excerpt 5
= None, None 65 # Create an image to save 66 image = Image.new("RGB", (canvas_width, canvas_height), 67 "white") 68 draw = ImageDraw.Draw(image) 69 70 # Defi...
View in text
Excerpt 6
create the object that performs recording: 75 rec_data = sd.rec(int(duration * sample_rate), samplerate=sample_rate, \ 76 channels=1) 77 sd.wait() 78 79 # pl...
View in text
Excerpt 7
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...
View in text
Excerpt 8
⎤ Ω −0.305⎥⎥ ⎢0⎤ ⎡⎢ 0.053 71⎥⎥ 3 = V ⋅3 + c = ⎢⎢⎢ + ⎢ ⎣ 0.491⎥ [−0.234] ⎢0⎥ −0.115⎥ 0.277⎥ ⋅ ⎦ ⎢ ⎥ = ⎢ 0.0 ⎣0⎥ 0⎥⎦ ⎢⎢⎣−0.065⎥⎦ 12.6 A Numerical Example with...
View in text
Tags
AI categories
AIPythonProgramming Language
Publisher: Wiley - IEEEE
Publish Year: 2025
Language: English
Pages: 379
File Format: PDF
File Size: 6.8 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…