diff --git a/recipes/001_first.py b/recipes/001_first.py index dc4384ee..915ea10c 100644 --- a/recipes/001_first.py +++ b/recipes/001_first.py @@ -7,21 +7,6 @@ OptunaHub is an Optuna package registry, which is a user platform to share their optimization and visualization algorithms. This recipe shows how to implement and register your own algorithm with OptunaHub. - -# First of all, import `optuna`, `optunahub`, and other required modules. -from __future__ import annotations - -import os -from typing import Any - -from github import Auth -import matplotlib.pyplot as plt -import numpy as np -import optuna -import optunahub -import plotly.graph_objects as go - - How to Implement Your Own Sampler ----------------------------------- @@ -40,6 +25,21 @@ """ +################################################################################################### +# First of all, import `optuna`, `optunahub`, and other required modules. +from __future__ import annotations + +import os +from typing import Any + +from github import Auth +import matplotlib.pyplot as plt +import numpy as np +import optuna +import optunahub +import plotly.graph_objects as go + + ################################################################################################### # Next, define your own sampler class by inheriting `SimpleSampler` class. # In this example, we implement a sampler that returns a random value.