Library Search
结果页01-keras-sequential-mnist
在 元器件 / 技术栈 / 知识库 中找到 16 个匹配结果。
技术栈
技术栈
8 个 Verilog / SystemVerilog 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% C# ```html
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>Alpine.js Demo</title>
<style>
body { font-family: system-ui; max-width: 600px; margin: 50px auto; background: #… 2% Keras # Keras MNIST 手写数字识别
## 目标
用 Keras Sequential API 构建一个简单 CNN,在 MNIST 数据集上达到 99%+ 准确率。
## 完整代码
```python
import numpy as np
from tensorflow import keras
from tensorflow.keras import layers
# 1. 加载… 2% TensorFlow # TensorFlow Keras —— MNIST 手写数字分类
## 目标
- 掌握 `tf.keras.Sequential` 模型构建
- 理解 `compile` → `fit` → `evaluate` → `predict` 标准流程
- 使用 TensorBoard 可视化训练过程
## 完整代码
```python
import tensorflow as tf
imp… 2% Astro 参考文献:
[
{
"url": "https://docs.astro.build",
"type": "web",
"year": 2024,
"title": "Astro Documentation",
"authors": [
"Astro Team"
]
},
{
"type": "article",… 1% Fiber 参考文献:
[
{
"url": "https://docs.gofiber.io/",
"type": "web",
"year": 2024,
"title": "Fiber 官方文档",
"authors": [
"Fiber Team"
]
},
{
"url": "https://github.com/val… 1% Scikit-learn 分类报告:
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.… 1% CakePHP 参考文献:
[
{
"url": "https://book.cakephp.org",
"type": "web",
"year": 2024,
"title": "CakePHP Cookbook",
"authors": [
"CakePHP Team"
]
},
{
"url": "https://github… 1%
知识库
知识库
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; tx <= 1'b1;
clk_cnt <= 0; bit_idx <= 0;
end else begin
case (stat… 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;… 1% 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.… 1% 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… 1% 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%