mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-09 11:28:14 +08:00
Run black
This commit is contained in:
@@ -15,7 +15,7 @@ from optuna.study import StudyDirection, StudySummary
|
||||
|
||||
from . import serializer
|
||||
|
||||
F = TypeVar('F', bound=Callable[..., Any])
|
||||
F = TypeVar("F", bound=Callable[..., Any])
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -5,18 +5,27 @@ from optuna.study import StudySummary
|
||||
from optuna.trial import FrozenTrial
|
||||
|
||||
|
||||
Attribute = TypedDict("Attribute", {
|
||||
"key": str,
|
||||
"value": str,
|
||||
})
|
||||
IntermediateValue = TypedDict("IntermediateValue", {
|
||||
"step": int,
|
||||
"value": float,
|
||||
})
|
||||
TrialParam = TypedDict("TrialParam", {
|
||||
"name": str,
|
||||
"value": str,
|
||||
})
|
||||
Attribute = TypedDict(
|
||||
"Attribute",
|
||||
{
|
||||
"key": str,
|
||||
"value": str,
|
||||
},
|
||||
)
|
||||
IntermediateValue = TypedDict(
|
||||
"IntermediateValue",
|
||||
{
|
||||
"step": int,
|
||||
"value": float,
|
||||
},
|
||||
)
|
||||
TrialParam = TypedDict(
|
||||
"TrialParam",
|
||||
{
|
||||
"name": str,
|
||||
"value": str,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
def serialize_attrs(attrs: Dict[str, Any]) -> List[Attribute]:
|
||||
|
||||
Reference in New Issue
Block a user