Code DAO
Author

Code DAO

We deliver AI algorithm tutorials and the latest news, curated by a team of researchers from Peking University, Shanghai Jiao Tong University, Central South University, and leading AI companies such as Huawei, Kuaishou, and SenseTime. Join us in the AI alchemy—making life better!

100
Articles
0
Likes
0
Views
0
Comments
Recent Articles

Latest from Code DAO

100 recent articles max
Code DAO
Code DAO
Dec 5, 2021 · Artificial Intelligence

Understanding DeepMind’s PonderNet: A Thinkable Network for MNIST

This article explains DeepMind’s PonderNet framework, which lets any neural network allocate computation adaptively, demonstrates its implementation with PyTorch Lightning on the MNIST dataset, details the underlying theory, loss functions, training procedure, and evaluates its pondering behavior on rotated digit experiments.

Deep LearningMNISTPonderNet
0 likes · 27 min read
Understanding DeepMind’s PonderNet: A Thinkable Network for MNIST
Code DAO
Code DAO
Dec 3, 2021 · Artificial Intelligence

Understanding Actor‑Critic and A2C: From Policy Gradients to REINFORCE in RL

This article derives the policy‑gradient objective for discrete actions, implements the Monte‑Carlo REINFORCE algorithm in PyTorch, explains the actor‑critic framework, introduces Advantage Actor‑Critic (A2C) versus A3C, and demonstrates their performance on the OpenAI Gym CartPole‑v0 environment.

A2COpenAI GymPython
0 likes · 13 min read
Understanding Actor‑Critic and A2C: From Policy Gradients to REINFORCE in RL
Code DAO
Code DAO
Dec 3, 2021 · Artificial Intelligence

SMOTE Techniques for Handling Imbalanced Classification in Machine Learning

This article explains the SMOTE oversampling method for imbalanced classification, demonstrates how to generate synthetic minority samples, evaluates models with and without SMOTE using scikit‑learn pipelines, and explores advanced variants such as Borderline‑SMOTE, SVMSMOTE and ADASYN with concrete code examples and benchmark results.

SMOTEclassificationimbalanced learning
0 likes · 24 min read
SMOTE Techniques for Handling Imbalanced Classification in Machine Learning
Code DAO
Code DAO
Dec 2, 2021 · Artificial Intelligence

Transfer Learning with ShuffleNetV2 for Flower Classification

This article walks through building a PyTorch ShuffleNetV2 model, preparing the Kaggle Flowers dataset, training with transfer learning on a GPU, visualizing loss and accuracy, and performing inference on five test images, achieving nearly 90% validation accuracy after 95 epochs.

CNNPyTorchShuffleNetV2
0 likes · 19 min read
Transfer Learning with ShuffleNetV2 for Flower Classification
Code DAO
Code DAO
Dec 1, 2021 · Artificial Intelligence

Building a Satellite Image Classifier with PyTorch ResNet34

This article walks through creating a satellite image classification pipeline using PyTorch and a pretrained ResNet34 model, covering dataset preparation, project structure, data loading, model definition, training, validation, loss/accuracy plotting, and inference on new images with detailed code examples and results.

Deep LearningImage ClassificationPyTorch
0 likes · 17 min read
Building a Satellite Image Classifier with PyTorch ResNet34
Code DAO
Code DAO
Nov 30, 2021 · Artificial Intelligence

How to Train a Custom Object Detector with PyTorch Faster R‑CNN

This article provides a step‑by‑step guide to building, training, and evaluating a custom object detection model using PyTorch Faster R‑CNN on a microcontroller dataset, covering data preparation, configuration, model modification, training loops, loss visualization, and inference on new images.

Faster R-CNNPyTorchPython
0 likes · 23 min read
How to Train a Custom Object Detector with PyTorch Faster R‑CNN
Code DAO
Code DAO
Nov 29, 2021 · Artificial Intelligence

Feature Selection: Reducing Input Variables for Predictive Modeling

This article explains the purpose and types of feature selection, compares supervised and unsupervised, wrapper, filter, and embedded methods, discusses choosing statistical metrics based on variable types, and provides scikit‑learn code examples for regression and classification tasks.

embedded methodsfeature selectionfilter methods
0 likes · 12 min read
Feature Selection: Reducing Input Variables for Predictive Modeling
Code DAO
Code DAO
Nov 29, 2021 · Artificial Intelligence

Dimensionality Reduction Algorithms: Why Too Many Features Hurt Machine Learning

The article explains how high‑dimensional data causes the curse of dimensionality, reduces model performance, and surveys feature‑selection, matrix‑decomposition, manifold‑learning, and auto‑encoder techniques while advising systematic experiments and proper data scaling.

PCAautoencodersdimensionality reduction
0 likes · 9 min read
Dimensionality Reduction Algorithms: Why Too Many Features Hurt Machine Learning
Code DAO
Code DAO
Nov 28, 2021 · Artificial Intelligence

Adapting Soft Actor‑Critic for Discrete Action Spaces in Deep Reinforcement Learning

This article explains how to modify the Soft Actor‑Critic (SAC) algorithm—originally designed for continuous actions—to work with discrete action environments, presents the required changes to the actor and critic loss functions, provides a full PyTorch implementation, and evaluates the method on the CartPole‑v1 benchmark.

CartPoleDiscrete ActionsEntropy Regularization
0 likes · 20 min read
Adapting Soft Actor‑Critic for Discrete Action Spaces in Deep Reinforcement Learning