
Explore machine learning and computer vision on android with TensorFlow Lite, from Python basics to deep learning, training models for android apps through practice activities.
Learn how machine learning uses data and algorithms to find patterns, with data sets, training data, testing data, features and labels, and supervised, unsupervised, and reinforcement learning.
Master supervised machine learning by training with labeled data, then testing predictions. Learn regression to predict continuous values and classification for categorical labels, using features and labels.
Explore unsupervised machine learning with unlabeled data and clustering to reveal patterns, illustrated by groceries; and learn reinforcement learning via trial and error with rewards and punishments.
Explore deep learning with artificial neural networks, learning how layered neurons perform feedforward and backpropagation to train models for regression and classification.
Explore core machine learning concepts, including supervised and unsupervised learning, deep learning with neural networks, and key training processes like feed forwarding, back propagation, learning rate, and loss functions.
Learn to use Google Colab to run Python in your browser with zero configuration, access free GPUs, and train and evaluate machine learning models using NumPy and Matplotlib.
Explore python's basic syntax and data types, including numbers and strings, declare variables without explicit types, and perform simple operations in Google Colab for training ml models on mobile apps.
Master Python lists as versatile containers that hold mixed types in square brackets, enable index-based access and printing, and support methods like append, insert, remove, sort, and reverse.
Explore Python data structures by comparing tuples to lists—tuples use parentheses, are immutable, and support indexing and slicing—then learn dictionaries with key–value pairs and key-based retrieval.
Explore Python conditional statements with if, elif, and else to compare two values, and practice while and for loops to iterate lists and strings, plus handling user input.
Open and close files in Python, use read and write modes (r, w, wb, a), and create or verify the model file during ML training.
Learn numpy essentials in Python, creating arrays, exploring shapes and dtypes, and using Colab notebooks to prep data for training mobile image classification models with pandas and matplotlib.
Explore numpy operations to create multi-dimensional arrays using zeros, ones, random, and full; reshape arrays and flatten them for streamlined data preparation in machine learning.
Explore numpy functions by applying unary and binary operators to arrays, perform dot products and matrix multiplication with np.dot and np.matmul, and sort multidimensional arrays by axis.
Discover the pandas data science library for manipulation in Python, and learn to load data into data frames, create frames from lists and dictionaries, and work with rows and columns.
Load a csv file with pandas read_csv to create a data frame from a comma separated values dataset, and upload it to Google Colab specifying its path and index column.
Learn how to load a csv into a pandas data frame, detect missing values with isnull, fill or drop them with fillna and dropna, and inspect shape for model training.
Explore how to plot data with matplotlib in Python using plt.plot, plt.bar, and plt.scatter to visualize x and y arrays in notebooks.
Load and display images using Matplotlib in Python, treating images as multi-dimensional arrays and exploring their shape and index-based access as with a Python list.
Learn to declare and manipulate variables and constants in TensorFlow, using tf.variable and tf.constant, reassign with assign, and control data types and shapes for mobile machine learning with TensorFlow Lite.
Learn to shape and reshape tensors, determine their rank, access elements by index, and convert to numpy, while using tf.size and dtype checks.
Explore element-wise operations in TensorFlow, including multiply, add, subtract, and divide, and learn matrix multiplication with transposed operands. Understand typecasting and rag tensor, where rows have different lengths.
Learn how to compute tensor means with tf.reduce_mean, specifying axis for columns or rows, and generate tensors with random values using TensorFlow.
Discover how to generate random values in TensorFlow using normal and uniform distributions, control shape and dtype, set seeds for repeatable results, and concatenate tensors.
Learn how TensorFlow checkpoints save and restore variable values during model training, enabling resume after failures and efficient storage of hundreds of thousands of values.
Train a simple linear regression model to uncover the pattern output equals two times input minus one from a two-column dataset, then test it in a Flutter app.
Train a first linear regression model from a simple x to y=2x-1 dataset using TensorFlow and Keras, then convert the trained model to tflite for mobile apps.
Test trained model with predict, confirming outputs follow two times input minus one, then convert it to tflite by saving to h5 and using tf lite converter for mobile.
Review training a first linear regression model with TensorFlow, using a simple one-hidden-layer, one-neuron network, and converting it to a tflite file for mobile applications.
Analyze the tflite model to inspect input and output shapes using natron, revealing a single input value and a single output value with float 32 for mobile app integration.
Create a new android project and design a GUI with input, a button, and a result view to run a regression model that outputs two times the input minus one.
Integrate a TensorFlow Lite model into an Android project by adding an assets folder, placing the tflite file, syncing the TensorFlow dependency, and loading the model with a Java/Kotlin interpreter.
Pass user input from a text field to the tflite interpreter, convert it to float, run inference, and display the output in a TextView.
Learn how to integrate a tflite regression model into an Android app by adding the model to assets, configuring gradle, loading with the tflite interpreter, and running inference.
Train your first real world regression model to predict mpg (fuel efficiency) for vehicles using features like cylinders, displacement, weight, and horsepower from the auto mpg dataset on Kaggle.
Load the fuel efficiency dataset in Google Colab using pandas read_csv into a data frame, train a TensorFlow Keras neural network for regression, and convert the model to tflite.
Identify missing values in the dataset and handle them by replacing with a value or dropping affected rows using dropna, ensuring clean data for model training.
Learn to handle categorical columns using one hot encoding by converting the origin category into separate United States, Europe, and Japan features, removing origin column, and boosting model accuracy.
Split the dataset into 80% training and 20% testing with sample and draw, separate miles per gallon as the label, and inspect stats with describe for normalization and model training.
Normalize dataset features by subtracting the mean and dividing by the standard deviation for each column, applying this to training and test data before model training.
Normalize training and test data, then build and train a Keras sequential neural network in TensorFlow Lite for fuel efficiency prediction.
Test a trained model with a 20% test split, compare predictions to fuel efficiency values, compute loss (mae and mse), and convert the Keras model to tflite for Android apps.
Train a real-world regression model for fuel efficiency using a Kaggle dataset in Google Colab, apply one-hot encoding and normalization, split 80/20, and convert to tflite for Android apps.
Import the starter Android project from GitHub, install it in an emulator, and input vehicle data (cylinders, displacement, horsepower, weight, acceleration, model year, region) to predict and display fuel efficiency.
Examine the starter Android app code, including MainActivity.java and the XML layout, and learn how the GUI uses a spinner with USA, Europe, and Japan and a TensorFlow Lite model.
Load a TensorFlow Lite model in an Android app with a mapped ByteBuffer and interpreter, then prepare and normalize UI inputs (cylinders, displacement, horsepower, weight, acceleration, year, region one-hot) for inference.
Learn to normalize Android app inputs for a TensorFlow Lite model by subtracting feature means and dividing by standard deviations using train stats, applying to nine input values.
Pass nine input values in a 2D float array to a tflite model in Android, run inference with the interpreter, and read a single output value for mpg.
Test the fuel efficiency prediction Android app in the simulator, comparing the predicted 15.02 with the actual 15 using cylinders, displacement, horsepower, weight, acceleration, model year, and origin USA.
Learn how to build a fuel efficiency prediction Android app by loading a TensorFlow Lite model from assets, normalizing inputs, and running inference to display the result.
Define a simple function, convert it to a concrete function, and export it as a TensorFlow Lite model for Android using input signatures and a converter.
Learn to save a concrete function as a saved model, convert it to a TensorFlow Lite model using the offload converter, and integrate the exported file into an Android app.
In this lecture you will learn that how you can use keras dataset for model training.We will use keras digit recognition data set.So we will load this data set using pandas.
In this lecture you will learn how to plot images using matplotlib as we are working with images in this classification example.Then we will normalize our dataset that contain images of size 28*28 pixels.
In this lecture you will learn that how you can add dropout while creating your learning model.We will create our model and train it on our training dataset.
In this lecture we will evaluate the model we trained in the previous lecture.After testing our model we will save our model in a tflite format.
In this lecture you will learn about finger paint view we will be using in our application to draw and capture and written digits.
In this lecture we will look at the code present in Result class.This class is responsible for extracting our output.
In this lecture we will display result that model predicted in the respected textviews. We use Result class for that purpose.
In this lecture we will test application we created. We will draw different digits with our finger in finger paint view and see what our model thinks that these digits are.
Build an Android app that lets users draw digits with a fingerpaint view, converts to a bitmap, runs it through a TensorFlow lite model, and shows prediction, probability, and time.
Explore transfer learning in android machine learning with TensorFlow Lite by using a model trained on vegetables as a starting point to classify flowers, boosting performance.
Explore Google Colab to train machine learning models in your web browser with a cloud-based notebook. Create, run, download notebooks or Python files, and save to drive.
train and deploy a flower recognition model on Android using TensorFlow Lite, transfer learning, and the model customization library, including preparing data in Google Colab and converting to on-device model.
Train and evaluate a flower recognition model with transfer learning in TensorFlow Lite for Android, fine-tuning only the last layer and exporting the tflite model and labels.
Build an Android flower recognition model with TensorFlow Lite in Java/Kotlin using transfer learning, loading a labeled dataset, training with validation, evaluating with test data, and exporting a tflite model.
Switch to the B0 model for on-device image classification of flower recognition and compare training, validation, and testing accuracies against the MobileNet baseline.
Evaluate a tflite model in an Android app by loading the flight file, creating an interpreter, preprocessing test images, running inference, and calculating accuracy.
Tired of traditional Android App Development courses? Now it's time to learn something new and trending for Android. Machine Learning is at its peak and Android App Development is also in demand so what is better than learning both?
This course is designed for Android developers who want to learn Machine Learning and deploy machine learning models in their Android apps using TensorFlow Lite. If you have very basic knowledge of Android App development and want to learn Machine Learning use in Android Applications this course is for you. This course will get you started in building your FIRST deep learning model and Android Application using both Java and Kotlin Tensorflow Lite, and Android Studio. We will learn about machine learning and deep learning and then train your first model and deploy it in an Android application using Android Studio. All the materials for this course are FREE.
You can follow this course using both Java and Kotlin. Separate Lectures are provided for both of these languages.
You don't need any prior knowledge of Machine Learning to start this course. We will start by learning
Python Programming Language
Data Science Libraries
Basics of Machine Learning and Deep Learning
Tensorflow and Tensorflow Lite
Then we will train our first Machine Learning model and Develop an Android Application using Android Studio.
The course includes examples from basic to advanced
A very simple Machine Learning example
Predicting fuel efficiency of automobiles (Regression Example)
Recognizing handwritten digits (Classification example)
Cats and Dogs classification
Rock Paper and Scissors Problem
Flowers Recognition Example
Stones Recognition Example
Fruits Recognition Example
Predicting the Fitness of a Person Practice Activity
Human and Horse Practice Activity
For each of these examples, we will first train the machine-learning model and then build an Android Application
We will start by learning about the basics of the Python programming language. Then we will learn about some famous Machine Learning libraries like Numpy, Matplotlib, and Pandas. After that, we will learn about Machine learning and its types. Then we look at Supervised learning in detail. We will try to understand classification and regression through examples. After we will start Deep learning. We start by looking and the basic structure of neural networks. Then we will understand the working of neural networks through an example.
Then we will learn about the Tensorflow 2.0 library and how we can use it to train Machine Learning models. After that, we will look at Tensorflow lite and how we can convert our Machine Learning models to tflite format which will be used inside Android Applications. There are three ways through which you can get a tflite file
From Keras Model
From Concrete Function
From Saved Model
We will cover all these three methods in this course.
We will learn about Feed Forwarding, Back Propagation, and activation functions through a practical example. We also look at cost function, optimizer, learning rate, Overfitting, and Dropout. We will also learn about data preprocessing techniques like One hot encoding and Data normalization.
Next, we implement a neural network using Google's new TensorFlow library.
You should take this course If you are an Android Developer and want to learn the basics of machine learning(Deep Learning) and deploy ML models in your Android applications using Tensorflow lite and Android Studio.
This course provides you with many practical examples so that you can learn how you can train and deploy machine learning models in Android. We will use Android Studio to develop Android Applications for the models we trained.
Another section at the end of the course shows you how you can use datasets available in different formats for a number of practical purposes.
After getting your feet wet with the fundamentals, I provide a brief overview of how you can add your machine-learning model in Google's existing Android machine-learning project templates.
Who this course is for:
Beginner Android Developers want to make their Android applications smart
Android Developers want to use Machine Learning in their Android Applications
Developers interested in the practical implementation of Machine Learning and computer vision
Students interested in machine learning - you'll get all the tidbits you need to add machine learning models in Android using Android studio
Professionals who want to use machine learning models in Android Applications.
Machine Learning experts want to deploy their models in Android using Android Studio and Tensorflow Lite