<span class="vcard">cableching</span>
cableching

深度卷积生成对抗网络(DCGAN)来生成对抗图像

此代码实现了一个深度卷积生成对抗网络(DCGAN),以生成MNIST图像。它包括一个生成器和鉴别器模型,采用TensorFlow和Keras库编写。通过训练,生成器学习制造假图像,鉴别器学习区分真假图像。优化函数用于调整参数,以最小化损失函数。训练过程涉及生成假图像并调整网络以改进生成结果。

CIFAR10-VGG16

This post details the implementation of a VGG-16 neural network for CIFAR-10 image classification in TensorFlow. It highlights the use of gradient clipping to improve convergence speed. Key aspects include network layer structure with regularization and normalization techniques, loss computation, and optimization via Adam. The script covers data loading, model creation, training with performance logging, and testing with accuracy measurement.

cifar2数据集:训练一个模型来对飞机airplane和机动车automobile两种图片进行分类

本文介绍了一个使用 TensorFlow 和 Keras 进行图片分类的神经网络模型构建、训练、评估、使用及保存的完整流程。流程包括准备包含5000张训练图片与1000张测试图片的数据集,定义一个由卷积层、池化层、Dropout层和全连接层组成的模型,以及使用callbacks在训练过程中实现TensorBoard的可视化。最终,模型在测试数据集上评估准确率达到100%,并展示了如何保存和加载模型。

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.

深入浅出,解析ChatGPT背后的工作原理

ChatGPT,OpenAI发布的新语言模型,在准确度与连贯性上超越了前作GPT-3。它通过结合监督学习与独特的RLHF(人类反馈强化学习)方法来优化,克服了一致性问题,更贴近人类的语言使用方式。ChatGPT的培训包括三个阶段:监督调优、模拟人类偏好和近端策略优化,有效提升了聊天机器人处理自然语言任务的能力。