diff --git a/ch-data-science/data-science-lifecycle.ipynb b/ch-data-science/data-science-lifecycle.ipynb index 2b316f0..4e5951f 100644 --- a/ch-data-science/data-science-lifecycle.ipynb +++ b/ch-data-science/data-science-lifecycle.ipynb @@ -7,12 +7,12 @@ "(data-science-lifecycle)=\n", "# 数据科学生命周期\n", "\n", - "数据科学主要围绕数据进行探索实验,一个数据科学项目涉及到很多步骤,比如数据准备、建模并部署到生产环境。如 {numref}`data-science-lifecycle-img` 所示, {cite}`shearer2000CRISPDM` 首次提出了一个业界标准 CRISP-DM(Cross-industry standard process for data mining),描述数据科学的生命周期。\n", + "数据科学主要围绕数据进行探索实验,一个数据科学项目涉及到很多步骤,比如数据准备、建模并部署到生产环境。如 {numref}`fig-data-science-lifecycle` 所示, {cite}`shearer2000CRISPDM` 首次提出了一个业界标准 CRISP-DM(Cross-industry standard process for data mining),描述数据科学的生命周期。\n", "\n", - "```{figure} ../img/ch-data-science/data-science-lifecycle.png\n", + "```{figure} ../img/ch-data-science/data-science-lifecycle.svg\n", "---\n", "width: 400px\n", - "name: data-science-lifecycle-img\n", + "name: fig-data-science-lifecycle\n", "---\n", "数据科学生命周期\n", "```\n", diff --git a/ch-ray-core/remote-function.ipynb b/ch-ray-core/remote-function.ipynb index 31063c4..4a4adf0 100644 --- a/ch-ray-core/remote-function.ipynb +++ b/ch-ray-core/remote-function.ipynb @@ -344,7 +344,7 @@ "\n", "```{figure} ../img/ch-ray-core/square-circle.svg\n", "---\n", - "width: 800px\n", + "width: 500px\n", "name: square-circle\n", "---\n", "在正方形内随机撒点,这些点有一定概率落在圆内\n", diff --git a/drawio/ch-data-science/data-science-lifecycle.drawio b/drawio/ch-data-science/data-science-lifecycle.drawio index 6f2c668..64ee280 100644 --- a/drawio/ch-data-science/data-science-lifecycle.drawio +++ b/drawio/ch-data-science/data-science-lifecycle.drawio @@ -1,64 +1,64 @@ - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -67,7 +67,7 @@ - + @@ -77,7 +77,7 @@ - + @@ -86,21 +86,21 @@ - + - + - + diff --git a/drawio/ch-intro/distributed-timeline.drawio b/drawio/ch-intro/distributed-timeline.drawio index 8f1435c..beaf22f 100644 --- a/drawio/ch-intro/distributed-timeline.drawio +++ b/drawio/ch-intro/distributed-timeline.drawio @@ -1,23 +1,11 @@ - + - + - - - - - - - - - - - - - + @@ -31,13 +19,13 @@ - + - + - + @@ -52,13 +40,13 @@ - + - + - + @@ -73,10 +61,10 @@ - + - + @@ -91,110 +79,32 @@ - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - + + - - - - + - - + + - - + + - - - - - + + diff --git a/drawio/ch-intro/map-reduce.drawio b/drawio/ch-intro/map-reduce.drawio index 8107653..9f0d1e9 100644 --- a/drawio/ch-intro/map-reduce.drawio +++ b/drawio/ch-intro/map-reduce.drawio @@ -1,247 +1,247 @@ - + - + - + - + - + - + - + - + - + - + - + - - + + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + diff --git a/drawio/ch-intro/pcam.drawio b/drawio/ch-intro/pcam.drawio index 31423ad..14555d9 100644 --- a/drawio/ch-intro/pcam.drawio +++ b/drawio/ch-intro/pcam.drawio @@ -1,739 +1,739 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/drawio/ch-intro/thread-safe.drawio b/drawio/ch-intro/thread-safe.drawio index 5f0e413..f86d8cd 100644 --- a/drawio/ch-intro/thread-safe.drawio +++ b/drawio/ch-intro/thread-safe.drawio @@ -1,4 +1,4 @@ - + @@ -163,7 +163,7 @@ - + diff --git a/drawio/ch-ray-core/ray.drawio b/drawio/ch-ray-core/ray.drawio index ecc8364..97697db 100644 --- a/drawio/ch-ray-core/ray.drawio +++ b/drawio/ch-ray-core/ray.drawio @@ -1,6 +1,6 @@ - + - + @@ -10,7 +10,7 @@ - + @@ -46,7 +46,7 @@ - + diff --git a/img/ch-data-science/data-science-lifecycle.svg b/img/ch-data-science/data-science-lifecycle.svg index 58cc400..01b9e7d 100644 --- a/img/ch-data-science/data-science-lifecycle.svg +++ b/img/ch-data-science/data-science-lifecycle.svg @@ -1,4 +1,4 @@ -
Data
Evaluation
Modeling
Data
Preparation
Data
Understanding
Business
Understanding
Deployment
\ No newline at end of file +
数据
数据
验证
验证
建模
建模
准备数据
准备数据
理解数据
理解数据
理解业务
理解业务
部署
部署
Text is not SVG - cannot display
\ No newline at end of file diff --git a/img/ch-intro/computer-arch.svg b/img/ch-intro/computer-arch.svg index 8b50878..54c6f1a 100644 --- a/img/ch-intro/computer-arch.svg +++ b/img/ch-intro/computer-arch.svg @@ -1,4 +1,4 @@ -
处理器 0
处理器 0
核心 0
核心 0
核心 1
核心 1
核心 2
核心 2
核心 3
核心 3
处理器 1
处理器 1
核心 4
核心 4
核心 5
核心 5
核心 6
核心 6
核心 7
核心 7
高速缓存
高速缓存
高速缓存
高速缓存
主存
主存
Bus
Bus
CPU
CPU
CPU
CPU
GPU
GPU
GPU
内存
GPU...
网卡
网卡
Text is not SVG - cannot display
\ No newline at end of file +
处理器 0
处理器 0
核心 0
核心 0
核心 1
核心 1
核心 2
核心 2
核心 3
核心 3
处理器 1
处理器 1
核心 4
核心 4
核心 5
核心 5
核心 6
核心 6
核心 7
核心 7
高速缓存
高速缓存
高速缓存
高速缓存
主存
主存
Bus
Bus
CPU
CPU
CPU
CPU
GPU
GPU
GPU
内存
GPU...
网卡
网卡
Text is not SVG - cannot display
\ No newline at end of file diff --git a/img/ch-intro/distributed-timeline.svg b/img/ch-intro/distributed-timeline.svg index 86a9f90..d531d46 100644 --- a/img/ch-intro/distributed-timeline.svg +++ b/img/ch-intro/distributed-timeline.svg @@ -1,4 +1,4 @@ -
Scheduler
Scheduler
Worker 1
Worker 1
任务 1
任务 1
任务 5
任务 5
任务 9
任务 9
Worker 2
Worker 2
任务 2
任务 2
任务 6
任务 6
任务 10
任务 10
Worker 3
Worker 3
任务 3
任务 3
任务 7
任务 7
Worker 4
Worker 4
任务 4
任务 4
任务 8
任务 8
时间
时间
节省时间
节省时间
Text is not SVG - cannot display
\ No newline at end of file +
Worker 1
Worker 1
任务 1
任务 1
任务 5
任务 5
任务 9
任务 9
Worker 2
Worker 2
任务 2
任务 2
任务 6
任务 6
任务 10
任务 10
Worker 3
Worker 3
任务 3
任务 3
任务 7
任务 7
Worker 4
Worker 4
任务 4
任务 4
任务 8
任务 8
时间
时间
节省时间
节省时间
Text is not SVG - cannot display
\ No newline at end of file diff --git a/img/ch-intro/map-reduce.png b/img/ch-intro/map-reduce.png deleted file mode 100644 index 1d900d9..0000000 Binary files a/img/ch-intro/map-reduce.png and /dev/null differ diff --git a/img/ch-intro/map-reduce.svg b/img/ch-intro/map-reduce.svg index 4322ef0..1ada603 100644 --- a/img/ch-intro/map-reduce.svg +++ b/img/ch-intro/map-reduce.svg @@ -1,4 +1,4 @@ -
This is an Apple.

Apple is red in color.
This is an Apple
Apple is 
red in 
color
Input
Input Split
Mapping
This-1

Is-1

An-1

Apple-1
Apple-1

Is-1

Red-1

In-1

Color-1
Shuffling
This-1
Is-1

Is-1
An-1
Apple-1

Apple-1
Red-1
In-1
Color-1
Reducing
This-1
Is-2
An-1
Apple-2
Red-1
In-1
Color-1
This-1

Is-2

An-1

Apple-2

Red-1

In-1

Color-1
Output
\ No newline at end of file +
This is an Apple.

Apple is red in color.
This is an Apple....
This is an Apple
This is an A...
Apple is 
red in 
color
Apple is...
输入
输入
切分
切分
映射
映射
This-1

Is-1

An-1

Apple-1
This-1...
Apple-1

Is-1

Red-1

In-1

Color-1
Apple-1...
交换
交换
This-1
This-1
Is-1

Is-1
Is-1...
An-1
An-1
Apple-1

Apple-1
Apple-1...
Red-1
Red-1
In-1
In-1
Color-1
Color-1
聚合
聚合
This-1
This-1
Is-2
Is-2
An-1
An-1
Apple-2
Apple-2
Red-1
Red-1
In-1
In-1
Color-1
Color-1
This-1

Is-2

An-1

Apple-2

Red-1

In-1

Color-1
This-1...
输出
输出
Text is not SVG - cannot display
\ No newline at end of file diff --git a/img/ch-intro/pcam.svg b/img/ch-intro/pcam.svg index 1f4c963..9e95589 100644 --- a/img/ch-intro/pcam.svg +++ b/img/ch-intro/pcam.svg @@ -1,4 +1,4 @@ -
PROBLEM
Partition
Communicate
Agglomerate
Map
\ No newline at end of file +
问题
问题
Partition
Partition
Communicate
Communicate
Agglomerate
Agglomerate
Mapping
Mapping
Text is not SVG - cannot display
\ No newline at end of file diff --git a/img/ch-intro/thread-safe.svg b/img/ch-intro/thread-safe.svg index 29f857d..5248bf3 100644 --- a/img/ch-intro/thread-safe.svg +++ b/img/ch-intro/thread-safe.svg @@ -1,4 +1,4 @@ -
数据
数据
文件
文件
代码
代码
寄存器
寄存器
寄存器
寄存器
寄存器
寄存器
运行栈
运行栈
运行栈
运行栈
运行栈
运行栈
x
x
x = x + 1
x = x + 1
x = x * 2
x = x * 2
x = x - 1
x = x - 1
线程 1
线程 1
线程 2
线程 2
线程 3
线程 3
时间
时间
x = x + 1
x = x + 1
x = x * 2
x = x * 2
x = x - 1
x = x - 1
x = x + 1
x = x + 1
x = x * 2
x = x * 2
x = x - 1
x = x - 1
场景 1
场景 1
场景 2
场景 2
Case 3
Case 3
Text is not SVG - cannot display
\ No newline at end of file +
数据
数据
文件
文件
代码
代码
寄存器
寄存器
寄存器
寄存器
寄存器
寄存器
运行栈
运行栈
运行栈
运行栈
运行栈
运行栈
x
x
x = x + 1
x = x + 1
x = x * 2
x = x * 2
x = x - 1
x = x - 1
线程 1
线程 1
线程 2
线程 2
线程 3
线程 3
时间
时间
x = x + 1
x = x + 1
x = x * 2
x = x * 2
x = x - 1
x = x - 1
x = x + 1
x = x + 1
x = x * 2
x = x * 2
x = x - 1
x = x - 1
场景 1
场景 1
场景 2
场景 2
场景 3
场景 3
Text is not SVG - cannot display
\ No newline at end of file diff --git a/img/ch-ray-core/ray-apis.png b/img/ch-ray-core/ray-apis.png deleted file mode 100644 index c27a7e7..0000000 Binary files a/img/ch-ray-core/ray-apis.png and /dev/null differ diff --git a/img/ch-ray-core/ray.svg b/img/ch-ray-core/ray.svg index aa682b3..05ae6a6 100644 --- a/img/ch-ray-core/ray.svg +++ b/img/ch-ray-core/ray.svg @@ -1,4 +1,4 @@ -
Ray AlR
Ray AlR
Data
Data
Train
Train
Tune
Tune
Serve
Serve
RLlib
RLlib
Tasks
Tasks
Actors
Actors
Objects
Objects
其他应用
其他应用
Ray Core
Ray Core
Text is not SVG - cannot display
\ No newline at end of file +
Ray Al
Ray Al
Data
Data
Train
Train
Tune
Tune
Serve
Serve
RLlib
RLlib
Tasks
Tasks
Actors
Actors
Objects
Objects
其他应用
其他应用
Ray Core
Ray Core
Text is not SVG - cannot display
\ No newline at end of file diff --git a/img/ch-ray-core/square-circle.png b/img/ch-ray-core/square-circle.png deleted file mode 100644 index 9330745..0000000 Binary files a/img/ch-ray-core/square-circle.png and /dev/null differ diff --git a/img/ch-ray-train-tune/tune-algorithms.jpeg b/img/ch-ray-train-tune/tune-algorithms.jpeg new file mode 100644 index 0000000..2a64ba1 Binary files /dev/null and b/img/ch-ray-train-tune/tune-algorithms.jpeg differ