第19章ハイパーパラメータ最適化
19.3.3. Visualize the Asynchronous Optimization Process19.3.3 非同期の最適化の過程を可視化する
Below we visualize how the learning curves of every trial (each color in the plot represents a trial) evolve during the asynchronous optimization process. At any point in time, there are as many trials running concurrently as we have workers. Once a trial finishes, we immediately start the next trial, without waiting for the other trials to finish. Idle time of workers is reduced to a minimum with asynchronous scheduling.
英語のヒント
以下では、非同期の最適化の過程のあいだに、すべての試行の学習曲線(プロットの各色が一つの試行を表す)がどう変わっていくかを可視化する。どの時点でも、ワーカーの数と同じだけの試行が並行して実行されている。試行が終わると、ほかの試行が終わるのを待たずに、すぐに次の試行を始める。非同期のスケジューリングでは、ワーカーの遊んでいる時間が最小限に減る。
d2l.set_figsize([6, 2.5])
results = tuning_experiment.results
for trial_id in results.trial_id.unique():
df = results[results["trial_id"] == trial_id]
d2l.plt.plot(
df["st_tuner_time"],
df["validation_error"],
marker="o"
)
d2l.plt.xlabel("wall-clock time")
d2l.plt.ylabel("objective function")Text(0, 0.5, 'objective function')