Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
y0z committed May 20, 2024
1 parent a17e58f commit ee3a2bb
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions recipes/001_first.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------------------------------
Expand All @@ -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.
Expand Down

0 comments on commit ee3a2bb

Please sign in to comment.