月度归档: <span>2023 年 2 月</span>
月度归档: 2023 年 2 月

TensorFlow -图像分类

This code imports the necessary libraries for TensorFlow and Keras, loads the Fashion MNIST dataset, and creates a neural network model to classify clothing images. The model, consisting of a Flatten layer and two Dense layers, is compiled and trained for five epochs. It evaluates test images and prints predictions. Additionally, it visualizes the results, showing images with their predicted labels, correct predictions in blue and incorrect in red. Finally, it demonstrates predicting a single image.

python-pyecharts 数据可视化学习 (数据来源:丁香园)

This post details the creation of COVID-19 visualization tools using Python, including nation-wide and Hubei province-specific infection maps, and a growth trend chart. Data is scraped from DXY, an online health community, and visualizations are generated using pyecharts with JSON data. The code snippets illustrate scraping methods, JSON file handling, and chart customization techniques for clearly representing the epidemic’s data.