Running TFLite Micro Examples on Windows Using Docker
Docker Environment Setup for TFLite Micro
Running TFLite Micro examples on Windows requires a containerized Linux environment due to the project's build system dependencies. Docker provides the necessary isolation and compatibility for cross-platform development.
Installing Docker Desktop
Download Docker Desktop from the official source:
https ...
Posted on Mon, 10 Aug 2026 16:30:45 +0000 by ndondo
Multi-Layer Perceptron
Multi-Layer Perceptron
Overview of Perceptrons
A perceptron is a supervised binary classification algorithm capable of solving only linearly separable problems.
Structure and Activation Functions of Multi-Layer Perceptrons
The architecture of a multi-layer perceptron consists of an input layer, one or more hidden layers, and an output layer, ...
Posted on Mon, 10 Aug 2026 16:00:46 +0000 by quanghoc
Common TensorFlow 2.x Migration Errors and Fixes
When migrating legacy TensorFlow 1.x code to TensorFlow 2.x, several common attribute errors may occur due to API changes. Below are typical issues and their solutions:
1. module 'tensorflow' has no attribute 'placeholder'
tf.placeholder was removed in TensorFlow 2.x. To retain 1.x behavior:
import tensorflow.compat.v1 as tf
tf.disable_v2_behav ...
Posted on Thu, 30 Jul 2026 16:47:00 +0000 by laurus
Model Pruning Techniques for Keras Model Compression
Deep neural networks often suffer from large parameter sizes and lengthy training times, making deployment challenging in resource-constrained environments. Network pruning offers a solution by reducing the number of parameters without significantly impacting accuracy.
Unlike traditional approaches that focused on weight removal, recent resear ...
Posted on Sun, 26 Jul 2026 16:26:14 +0000 by kctigers23
Model Checkpointing in TensorFlow Using tf.train.Saver
Saving Model Parameters
During training, it is esssential to persist learned parameters to disk for later validation, inference, or continued training. TensorFlow provides the tf.train.Saver class for this purpose.
To begin, instantiate a Saver object:
saver = tf.train.Saver()
The max_to_keep parameter controls how many checkpoint files are re ...
Posted on Thu, 23 Jul 2026 17:02:32 +0000 by nelsons
Configuring Python 3.5 and TensorFlow 1.0.1 Environment in Google Colab for ECM Implementation
Setting Up Google Colab Environment
Mount Google Drive:
import os
os.chdir("/content/drive/My Drive")
Clone GitHub repository:
!git clone https://github.com/tuxchow/ECM-tf.git
Navigate to project directory:
%cd ECM-tf/
List directory contents:
!ls
Python Version Configuration
Install Python 3.5:
!apt-get install python3.5
Uninsta ...
Posted on Sun, 19 Jul 2026 16:55:27 +0000 by hellz
Image Augmentation Techniques for Deep Learning Datasets
Color adjustment (brightness, saturation, contrast)
Random scaling
Random cropping
PCA-based color augmentation
Translation shifting
Horizontal/vertical flipping
Rotation and affine transformations
Gaussian noise additoin
Class imbalance correction
Implementation Example (NumPy/PIL)
from PIL import Image, ImageEnhance
import numpy as np
impo ...
Posted on Wed, 15 Jul 2026 16:32:53 +0000 by gareh
Setting Up Deep Learning Workspaces: Conda Management, PyTorch Deployment, and IDE Configuration
Environment Provisioning & Verification
Establishing isolated workspaces is critical for preventing dependency conflicts in machine learning projects. Conda provides a robust mechanism for lifecycle mangaement across operating systems. Execute the following commands to inspect, initialize, and maintain your target contexts:
# Display all re ...
Posted on Thu, 09 Jul 2026 16:58:39 +0000 by nickcwj
Building and Training Neural Networks from Scratch: Data Handling, Augmentation, and Model Deployment
Creating Custom Datasets
When working with standard datasets like MNIST, data is prepackaged and ready for use. However, for domain-specific applications, creating custom datasets becomes essential.
The process involves mapping image paths to corresponding labels through a dedicated function that returns features and their associated labels.
To ...
Posted on Mon, 06 Jul 2026 16:40:47 +0000 by Butthead
Implementing Linear Regression with TensorFlow (v1 Compatibility)
Ensure Matplotlib renders inline in a Jupyter notebook. Import NumPy and TensorFlow, using compatibility mode for v1 placeholders. Disable TensorFlow v2 behaviors.
%matplotlib inline
import numpy as np
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (14, 8) ...
Posted on Tue, 30 Jun 2026 17:02:00 +0000 by Mikedean