mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-23 13:30:25 +08:00
Update interface of constraint to optional
This commit is contained in:
@@ -30,7 +30,7 @@ interface TrialResponse {
|
||||
system_attrs: Attribute[]
|
||||
note: Note
|
||||
artifacts: Artifact[]
|
||||
constraints: number[]
|
||||
constraints?: number[]
|
||||
}
|
||||
|
||||
const convertTrialResponse = (res: TrialResponse): Trial => {
|
||||
|
||||
Vendored
+1
-1
@@ -112,7 +112,7 @@ type Trial = {
|
||||
}[]
|
||||
user_attrs: Attribute[]
|
||||
system_attrs: Attribute[]
|
||||
constraints: number[]
|
||||
constraints?: number[]
|
||||
note: Note
|
||||
artifacts: Artifact[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user