Library Search
结果页01-tensor-basics
在 技术栈 中找到 8 个匹配结果。
技术栈
技术栈
8 个 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% LightGBM ```
正样本比例: 35.62%
Training until validation scores don't improve for 20 rounds
[50] valid_0's auc: 0.8234
[100] valid_0's auc: 0.8456
Early stopping, best iteration is [87]
测试准确率: 0.7823
最佳迭代轮次: 87
最… 2% Pytest ```
test_math_utils.py::test_divide_normal PASSED
test_math_utils.py::test_divide_by_zero PASSED
test_math_utils.py::test_is_prime[1-False] PASSED
test_math_utils.py::test_is_prime[2-True] PASSED
test… 2% Grafana ```json
{
"dashboard": {
"title": "主机监控总览",
"tags": ["prometheus", "node"],
"timezone": "browser",
"panels": [
{
"title": "CPU 使用率",
"type": "timeseries",… 2% TensorFlow # TensorFlow 教程 —— Keras 进阶与模型部署
## 本章目标
- 掌握 Keras Functional API 和子类化 API
- 了解 TF 与 PyTorch 的核心差异
- 掌握 TF Lite 与 TF Serving 部署
## 1. 三种建模 API 对比
### Sequential(最简单)
```python
model = tf.keras.Se… 2% PyTorch # PyTorch Tensor 基础 —— 从 NumPy 到 GPU
## 目标
- 理解 Tensor 的创建、操作、形状变换
- 掌握 CPU ↔ GPU 迁移
- 理解 Tensor 与 NumPy ndarray 的互操作
- 掌握 autograd 自动微分基础
## 完整代码
```python
import torch
import numpy as np
# ====… 2% Scikit-learn ## Scikit-learn
Scikit-learn 是 Python 最流行的机器学习库,构建在 NumPy、SciPy 和 Matplotlib 之上。由 David Cournapeau 于 2007 年发起,现在由 INRIA 和社区维护。
### 解决什么问题
- 提供统一的 API 进行分类、回归、聚类、降维等经典机器学习任务
- 内置大量预处理、特征选择、模型选择的工具
-… 1% Keras ## Keras
Keras 是由 François Chollet 于 2015 年发布的**高级神经网络 API**,现为 TensorFlow 官方前端。它以模块化、用户友好著称,让开发者用极简代码快速构建和训练深度学习模型。
**核心价值:**
- **极简 API**:3 行代码定义神经网络,`Sequential` 模型开箱即用
- **多后端支持**:TensorFlow / J… 1%