mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-11 12:30:25 +08:00
Apply formatter
This commit is contained in:
@@ -31,9 +31,9 @@ interface JournalOpDeleteStudy extends JournalOpBase {
|
||||
|
||||
interface JournalOpSetStudySystemAttr extends JournalOpBase {
|
||||
study_id: number
|
||||
system_attr: {
|
||||
system_attr: {
|
||||
"study:metric_names": string[]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface JournalOpCreateTrial extends JournalOpBase {
|
||||
|
||||
@@ -372,10 +372,7 @@ const parseDistributionJSON = (t: string): Optuna.Distribution => {
|
||||
}
|
||||
}
|
||||
|
||||
const getStudySystemAttributes = (
|
||||
db: SQLite3DB,
|
||||
studyId: number
|
||||
) => {
|
||||
const getStudySystemAttributes = (db: SQLite3DB, studyId: number) => {
|
||||
let attrs: { metric_names: string[] } | undefined
|
||||
db.exec({
|
||||
sql: `SELECT key, value_json FROM study_system_attributes WHERE study_id = ${studyId} AND key = 'dashboard:objective_names'`,
|
||||
|
||||
Reference in New Issue
Block a user