Library Search
结果页

01-keras-sequential-mnist

在 知识库 中找到 8 个匹配结果。

返回文档库
知识库

知识库

8 个
01-keras-sequential-mnist # ============================================================ # 2. 构建模型(Sequential API) # ============================================================ model = tf.keras.Sequential([ tf.keras.layer… 5% 进阶:UART 收发器(可综合到 FPGA) always_ff @(posedge clk or negedge rst_n) begin if (!rst_n) begin state <= S_IDLE; rx_valid <= 0; rx_error <= 0; clk_cnt <= 0; bit_idx <= 0; end else begin… 2% MNIST 手写数字识别 Hello World # Keras MNIST 手写数字识别 ## 目标 用 Keras Sequential API 构建一个简单 CNN,在 MNIST 数据集上达到 99%+ 准确率。 ## 完整代码 ```python import numpy as np from tensorflow import keras from tensorflow.keras import layers # 1. 加载… 2% 从 Sequential 到迁移学习 # Keras 入门教程:从 Sequential 到迁移学习 ## 1. Keras 是什么? Keras 是 TensorFlow 的官方高级 API,核心理念是"**让深度学习变得简单**"。它抽象了张量运算、自动微分、GPU 调度等底层细节,让开发者专注于模型架构。 ### 三大编程范式 | 范式 | API | 适用场景 | |------|-----|----------| |… 2% 火焰传感器(4针) 双模式检测与中断触发代码例程 enum AlarmLevel { LEVEL_SAFE = 0, // 安全 LEVEL_WARNING, // 警告(微弱火源) LEVEL_DANGER, // 危险(确认火焰) LEVEL_CRITICAL // 紧急(强火焰) }; AlarmLevel currentLevel = LEVEL_SAFE;… 2% Hello World — 鸢尾花分类 分类报告: precision recall f1-score support setosa 1.00 1.00 1.00 19 versicolor 0.93 1.00 0.96 13 virginica 1.00 0.… 2% INMP441 I2S 麦克风 — 代码例程 (ESP32 + STM32) void dual_i2s_init() { i2s_config_t i2s_config = { .mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX), .sample_rate = SAMPLE_RATE, .bits_per_sample = I2S_BITS_PER_SAMPLE_3… 2% MQ2 气体传感器驱动代码例程(模拟+数字双模式) void mq2_init(void) { // GPIO初始化(数字输出) gpio_config_t io_conf = { .pin_bit_mask = (1ULL << MQ2_DO_GPIO), .mode = GPIO_MODE_INPUT, .pull_up_en = GPIO_PULLUP_ENABLE, }… 1%