[AutoML] AutoKeras installation and environment configuration (VSCode)

There are already too many work configurations in the local environment (Python, Java, Maven, Docker, etc.). In order not to affect the operation of other environments, I chose to create a workspace directly in VSCode and configure AutoKeras (anyway, it will be in VSCode in the end) developed in). After opening VSCode, create a workspace […]

Solve the problem of cannot import name BatchNormalization from keras.layers.normalization

Table of Contents Solve the problem of cannot import name ‘BatchNormalization’ from ‘keras.layers.normalization’ Problem Description problem analysis solution in conclusion What is the BatchNormalization module? The principle of BatchNormalization Advantages and functions of BatchNormalization Use of BatchNormalization Solution to cannot import name ‘BatchNormalization’ from ‘keras.layers.normalization’ Recently, in the process of using Keras for deep learning […]

Solving ImportError: cannot import name adam from tensorflow.python.keras.optimizers

Table of Contents Solving ImportError: cannot import name adam from tensorflow.python.keras.optimizers Introduction wrong reason solution TensorFlow 1.x version TensorFlow 2.x version Update TensorFlow version in conclusion Introduction to Adam optimizer The principle of Adam optimizer Solving ImportError: cannot import name adam from tensorflow.python.keras.optimizers Introduction When using TensorFlow for deep learning, you often encounter some errors. […]

Solving ModuleNotFoundError: No module named keras_retinanet.utils.compute_overlap

Table of Contents Solving ModuleNotFoundError: No module named ‘keras_retinanet.utils.compute_overlap’ Problem background Solution Sample code Introduction to keras_retinanet library characteristic Function Solving ModuleNotFoundError: No module named ‘keras_retinanet.utils.compute_overlap’ When writing machine learning projects in Python, we sometimes encounter various errors. One of them is ??ModuleNotFoundError??, which indicates that Python cannot find a specific module. This article will […]

Solving ModuleNotFoundError: No module named keras_resnet

Table of Contents Solve ModuleNotFoundError: No module named ‘keras_resnet’ Problem Description solution Method 1: Install the keras_resnet module Method 2: Check the module name Method 3: Check the path and environment configuration Summarize Solving ModuleNotFoundError: No module named ‘keras_resnet’ When using Python for deep learning development, various module import errors are often encountered. One of […]

Implement BP neural network without using advanced software packages such as Pytorch, Tensorflow, Keras and so on – citing the iris data set

This article is quoted from: https://github.com/YeanRoot/BPnetwork As the title states, the course assignment requires the implementation of BP neural network without using advanced software packages such as Pytorch, Tensorflow, Keras, etc. This article uses the iris data set, the data set website: https://github.com/YeanRoot/BPnetwork/tree/main/dataset The Chinese name of the iris dataset is Anderson’s Iris flower dataset, […]

[Visual Algorithm Series 1] Using KerasCV YOLOv8 for traffic light detection (Part 1)

Tip: To obtain the complete code and data set involved in this article for free, please contact the assistant teacher peaeci122 A comprehensive guide to traffic light detection using the latest “KerasCV YOLOv8” model YOLO object detection models have found their way into countless applications, from surveillance systems to self-driving cars. So, what happens if […]

Solving AttributeError: module tensorflow.python.keras has no attribute Model

Table of Contents Solving AttributeError: module ‘tensorflow.python.keras’ has no attribute ‘Model’ introduction wrong reason solution 1. Upgrade TensorFlow version 2. Import the module correctly 3. Check other dependencies 4. Reinstall TensorFlow in conclusion Practical application scenarios: Solving AttributeError: module ‘tensorflow.python.keras’ has no attribute ‘Model’ Introduction You may encounter various errors while using TensorFlow. One of […]

Keras-CNN convolutional neural network training to recognize handwritten digits model

Directory 1. Configuration 2. Model training 3. Test set accuracy 4. Generalization to applications 5. Improvement points The open source projects on the Internet are mixed, and none of them can even run. Many of them cannot run because the package version is not enough. So let’s start with the configuration of the project. 1. […]

How to install tensorflow and keras==2.2.0 in python

Install Keras==2.3.0 in 1.python You can use pip to install a specific version of Keras. Run the following command on the command line: pip install keras==2.3.0 This will download and install version 2.3.0 of Keras and its corresponding dependencies. Please make sure your Python environment is configured and has sufficient permissions to install packages. Install […]