
Attachment
Getting started with Angular, basics on installation;
GitBook
Organization of the course
PS. For each lecture, please, check the attached GitBook for more information
Note. please, pay attention to the notes on the videos, just click on the note, and you will directed to the point on the vídeo.
Presenting the new Udemy AI-based assistant. You can interact and learn about the course. It is an awesome assistant, always available.
You do not neet to buy the course to see how the assistant works.
Attachment
Slides
Computational Thinking (ebook on Amazon)
Assess the value of simple linear regression models, focusing on bias and slope as learning parameters. The lecture contrasts analytical solutions with neural networks, recommending simple methods and packages.
Explore how loss functions guide regression models in TensorFlow.js, comparing absolute error summation and mean squared error, and learn when to prefer each based on cost of mistakes.
Compare linear regression with simple models, highlighting speed and simplicity, and advise using classical mathematical models over TensorFlow.js when theory applies, while machine learning suits adaptable environments.
Compare linear regression's strong theory with artificial neural networks' flexibility for real-world regression, and learn when Gaussian noise assumptions and no parametric statistics favor non-linear models.
Attachment
article where I explain better the real-state model, the one I would send back into the past, from the future
Explore how features influence house price predictions, assess feature correlations and independence, and decide between linear and nonlinear regression with PCA when needed, using TensorFlow.js.
Attachment
Getting you environment ready for Angular
Install TensorFlow.js in an Angular app to build our regression model and keep it running. Address common import errors by adjusting TypeScript typing and configuration, then restart the server.
Examine objective ignorance and the contrast between mechanical and clinical judgment, noting models can’t know all data and must adapt to dynamic environments like the stock market.
Attachment.
I have attached the spreadsheet, in case of any problem using the link to the Google Sheet.
visualize helps you inspect a large dataset by importing a visualization library, installing npm packages, and plotting the data either in a specified div or by default on app startup.
Learn to plot regression data with TensorFlow.js by sampling data points, visualizing training and testing, and mapping temperature to input X and target Y in a scatter plot.
Upload data from Google Sheets or use a dataset for TensorFlow.js in an Angular app. Train a model to learn inner dynamics from limited samples and validate with 100 samples.
Explore how loss functions shape training in TensorFlow.js, comparing mean squared error versus absolute value based loss, and observe training versus validation curves to understand generalization and overfitting.
Explore how loss functions guide training in TensorFlow.js, comparing mean squared error and mean absolute error, and read training and validation curves to assess convergence and generalization.
Set the batch size to control how much data the model sees at once, speeding up learning and stabilizing training, especially with large datasets.
Transform features into tensors to prepare data for training with TensorFlow.js, constructing input feature tensors and target tensors, while coding generically for different features.
Build a regression model in TensorFlow.js with one input neuron and bias. Note no activation and explore unit counts, then compile and prepare the model for training.
Attachment
Full repository (GitHub)
Feature: this course uses an AI-assistant that you will support all the time. It is a talking assistant, you make your questions and it will reply back, a good conversation! You do not neet to buy the course to see how the assistant works.
=
Data Science is all about finding information/knowledge from datasets. One very powerful approach is using linear/nonlinear models, called regression; we are not going to see logistic regression on this course, see my other course “Machine learning in Angular”. Linear models, the example we are going to work on, even though they are limited, they still can delivery something if the datasets have a linear tendency. In TensorFlow.js, shifting to nonlinear models is as easy as changing a single parameter; that is all.
TensorFlow.js makes it possible to build simple models to complex ones (e.g., deep learning) using the same notation, it is magic! It is possible thanks to how TensorFlow.js was build, and the power of tensor, where TensorFlow.js is build on.
On this course, we use Angular as framework, coding environment, and TensorFlow.js as the library for creating a machine learning based regression model.
What is Angular??
Angular is a framework, designed by the Google Team, and it has been widely used to design sites. Essentially, it is a framework to create frontends, based on TypeScript. In layman's terms: the page you see and interact on your web browser. It is perfect to be used alongside TensorFlow.js for offering also the advantage of not sending information to the server: you can build everything with Angular, they even have their own server call Angular Universal. As they like to say, Angular comes with batteries.
What is TensoFlow.js??
TensorFlow.js is a JavaScript-based library for deep learning, based on the classical TensorFlow, written in Python; you can also do simple learning machine, some simple mathematical operations with tensors and so on. There are several reasons for using TensorFlow.js instead of Python, and I hope to come back to that in the future.
A nice point, it is possible to transform models in both directions: TensorFlow.js <-> TensorFlow. Even their notations are alike.
We are going to build a linear regression model using TensorFlow.js in Angular. We are also going to learn about machine learning, and Angular!
External resource
- GitBook
- GitHub
- Articles
Update 18/08/23. in response to student feedback, I am upgrading the course, adding more resources.