Optuna-dashboard

Latest version: v0.17.0

Safety actively analyzes 681844 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 9

0.9.2

What's Changed
* Add `dict_to_form_widget()` function. by c-bata in https://github.com/optuna/optuna-dashboard/pull/437
* Remove `user_attr_key` attribute from `ObjectiveUserAttrRef` by c-bata in https://github.com/optuna/optuna-dashboard/pull/438
* Add minor improvements on TrialList by c-bata in https://github.com/optuna/optuna-dashboard/pull/439
* Enable rehype-raw plugin by c-bata in https://github.com/optuna/optuna-dashboard/pull/440
* Show warning about the use of `_CachedStorage` by c-bata in https://github.com/optuna/optuna-dashboard/pull/427
* Add a new section "Getting Started" in docs by c-bata in https://github.com/optuna/optuna-dashboard/pull/443
* Add doc badge by keisuke-umezawa in https://github.com/optuna/optuna-dashboard/pull/449
* Add docstring for FormWidgets by knshnb in https://github.com/optuna/optuna-dashboard/pull/441
* Bump the version up to v0.9.2 by c-bata in https://github.com/optuna/optuna-dashboard/pull/450


**Full Changelog**: https://github.com/optuna/optuna-dashboard/compare/v0.9.1...v0.9.2

0.9.1

What's Changed
* Bump webpack from 5.75.0 to 5.76.0 by dependabot in https://github.com/optuna/optuna-dashboard/pull/417
* Remove enqueueSnackbar in makeTrialComplete when successful by knshnb in https://github.com/optuna/optuna-dashboard/pull/418
* Implement get artifact url by keisuke-umezawa in https://github.com/optuna/optuna-dashboard/pull/419
* Add `get_note()` Python API by c-bata in https://github.com/optuna/optuna-dashboard/pull/421
* Delete unnecessary type hints by knshnb in https://github.com/optuna/optuna-dashboard/pull/423
* Follow-up 411 to refactor type definitions by c-bata in https://github.com/optuna/optuna-dashboard/pull/431
* Support human-in-the-loop via `trial.user_attrs` by knshnb in https://github.com/optuna/optuna-dashboard/pull/411
* Improve the message for experimental new UI by c-bata in https://github.com/optuna/optuna-dashboard/pull/433
* Set `uirevision` to prevent resetting charts by c-bata in https://github.com/optuna/optuna-dashboard/pull/432
* Reduce the reload interval time for human-in-the-loop optimization by c-bata in https://github.com/optuna/optuna-dashboard/pull/434
* Bump the version up to v0.9.1 by c-bata in https://github.com/optuna/optuna-dashboard/pull/435


**Full Changelog**: https://github.com/optuna/optuna-dashboard/compare/v0.9.0...v0.9.1

0.9.0

Highlights

An Experimental New UI

An experimental new UI is available as an opt-in feature - simply launch the dashboard as usual and click the link to the new UI.

![experimental-new-ui](https://user-images.githubusercontent.com/5564044/224933798-59f18abc-45b3-4957-89b6-e58fbb478951.jpeg)

Please try it out and share your thoughts with us via the GitHub Discussion 👇
[Feedback Survey: The New UI for Optuna Dashboard 332 - Optuna Dashboard](https://github.com/optuna/optuna-dashboard/discussions/332)

![dashboard-new-ui](https://user-images.githubusercontent.com/5564044/224933777-c87fe56e-ff55-417c-9339-63558fb1a813.jpeg)

What's Changed
* Upgrade to React 18 by c-bata in https://github.com/optuna/optuna-dashboard/pull/309
* Use `skip_table_creation` when using Optuna v3 or later by c-bata in https://github.com/optuna/optuna-dashboard/pull/320
* Remove `typing_extensions` from the dependencies by c-bata in https://github.com/optuna/optuna-dashboard/pull/321
* Use type hinting generics. by c-bata in https://github.com/optuna/optuna-dashboard/pull/322
* Update js dependencies by c-bata in https://github.com/optuna/optuna-dashboard/pull/323
* Run npm audit fix by c-bata in https://github.com/optuna/optuna-dashboard/pull/324
* Fix warning for the use of `ReactDOM.render()` by c-bata in https://github.com/optuna/optuna-dashboard/pull/325
* Remove `e.preventDefault` by c-bata in https://github.com/optuna/optuna-dashboard/pull/327
* New Dashboard UI. by c-bata in https://github.com/optuna/optuna-dashboard/pull/328
* Make a lot of improvements in the new Dashboard UI by c-bata in https://github.com/optuna/optuna-dashboard/pull/329
* Add follow-up changes for 329 by c-bata in https://github.com/optuna/optuna-dashboard/pull/330
* Fix bug of markdown editor and add mathjax support. by c-bata in https://github.com/optuna/optuna-dashboard/pull/331
* Link to the GitHub Discussion for the feedback survey by c-bata in https://github.com/optuna/optuna-dashboard/pull/333
* Bump the version up to 0.9.0b1 by c-bata in https://github.com/optuna/optuna-dashboard/pull/334
* Add Python API to save the note by c-bata in https://github.com/optuna/optuna-dashboard/pull/337
* Add API to set objective names by c-bata in https://github.com/optuna/optuna-dashboard/pull/338
* Handle exceptions in optuna-fast-fanova by c-bata in https://github.com/optuna/optuna-dashboard/pull/339
* Fix the link to feedback survey by c-bata in https://github.com/optuna/optuna-dashboard/pull/340
* Use type instead of interface by c-bata in https://github.com/optuna/optuna-dashboard/pull/342
* Change Chip's colors and show durations by c-bata in https://github.com/optuna/optuna-dashboard/pull/343
* Customize TrialTable for new ui by c-bata in https://github.com/optuna/optuna-dashboard/pull/344
* Support trial user attributes on `GraphHistory` by c-bata in https://github.com/optuna/optuna-dashboard/pull/341
* Add button to rename study by c-bata in https://github.com/optuna/optuna-dashboard/pull/345
* Fix target arg for importance by c-bata in https://github.com/optuna/optuna-dashboard/pull/346
* Select multiple trials by Shift + Click by c-bata in https://github.com/optuna/optuna-dashboard/pull/347
* Make plot components faster and robust. by c-bata in https://github.com/optuna/optuna-dashboard/pull/348
* Fix seed visual regression tests by c-bata in https://github.com/optuna/optuna-dashboard/pull/349
* Simplify Python API to save notes by c-bata in https://github.com/optuna/optuna-dashboard/pull/350
* Improve graph components by c-bata in https://github.com/optuna/optuna-dashboard/pull/351
* Fix the link to trial detail page by c-bata in https://github.com/optuna/optuna-dashboard/pull/352
* Support fixed_params by c-bata in https://github.com/optuna/optuna-dashboard/pull/353
* Filter TrialState for GraphIntermediateValues by c-bata in https://github.com/optuna/optuna-dashboard/pull/310
* Fix bug of multiple select trials by c-bata in https://github.com/optuna/optuna-dashboard/pull/356
* Plot the hyperparameter importances for each objective value on a single bar chart. by c-bata in https://github.com/optuna/optuna-dashboard/pull/357
* Add global state filters for History and IntermediateValue plots by c-bata in https://github.com/optuna/optuna-dashboard/pull/358
* Use `theme.typography.fontWeightBold` instead of 600 by c-bata in https://github.com/optuna/optuna-dashboard/pull/359
* Remove paddingTop from CardAction on StudyList by c-bata in https://github.com/optuna/optuna-dashboard/pull/361
* Bump the version up to v0.9.0b2 by c-bata in https://github.com/optuna/optuna-dashboard/pull/360
* Add state filters in TrialList by c-bata in https://github.com/optuna/optuna-dashboard/pull/363
* Hide user_attrs on GraphParallelCoordinate by default by c-bata in https://github.com/optuna/optuna-dashboard/pull/365
* Update `TrialList` component by c-bata in https://github.com/optuna/optuna-dashboard/pull/364
* Support user attributes on GraphSlice by c-bata in https://github.com/optuna/optuna-dashboard/pull/366
* Remove TODOs in CachedExtraStudyProperty by c-bata in https://github.com/optuna/optuna-dashboard/pull/367
* Set `key` attributes in `TrialList` by c-bata in https://github.com/optuna/optuna-dashboard/pull/368
* Avoid to calculate importance when only available single trial by c-bata in https://github.com/optuna/optuna-dashboard/pull/369
* Add trial tell feature by keisuke-umezawa in https://github.com/optuna/optuna-dashboard/pull/355
* Introduce `Artifact` by c-bata in https://github.com/optuna/optuna-dashboard/pull/314
* Introducing Custom User Widget by c-bata in https://github.com/optuna/optuna-dashboard/pull/370
* Save reload interval on localStorage by c-bata in https://github.com/optuna/optuna-dashboard/pull/372
* Bump the version up to v0.9.0b3 by c-bata in https://github.com/optuna/optuna-dashboard/pull/373
* Fix bug of custom user widgets and enhance artifact support. by c-bata in https://github.com/optuna/optuna-dashboard/pull/375
* Update best trials when state is updated by c-bata in https://github.com/optuna/optuna-dashboard/pull/376
* Bump the version up to v0.9.0b4 by c-bata in https://github.com/optuna/optuna-dashboard/pull/377
* Fix artifact import issue by c-bata in https://github.com/optuna/optuna-dashboard/pull/381
* Bump the version up to v0.9.0b5 by c-bata in https://github.com/optuna/optuna-dashboard/pull/382
* Display objective forms even for completed trials by c-bata in https://github.com/optuna/optuna-dashboard/pull/387
* Remove redundant json dumps by c-bata in https://github.com/optuna/optuna-dashboard/pull/390
* Sort studies by `study_id` by c-bata in https://github.com/optuna/optuna-dashboard/pull/391
* Fix bug of `setStateValues` by c-bata in https://github.com/optuna/optuna-dashboard/pull/392
* Add an initial Audio support by c-bata in https://github.com/optuna/optuna-dashboard/pull/395
* Keep backward compatibility of widget definition by c-bata in https://github.com/optuna/optuna-dashboard/pull/393
* Introduce `--storage-class` CLi argument to support journal storage by c-bata in https://github.com/optuna/optuna-dashboard/pull/394
* Bump the version up to `v0.9.0b6` by c-bata in https://github.com/optuna/optuna-dashboard/pull/396
* Add Sphinx documentation by c-bata in https://github.com/optuna/optuna-dashboard/pull/399
* Render an empty graph at `plot_contour()` when the length of trials less than two. by c-bata in https://github.com/optuna/optuna-dashboard/pull/402
* Change yAxis on history plot when user attribute is selected by c-bata in https://github.com/optuna/optuna-dashboard/pull/403
* Update release procedure in CONTRIBUTING.md by keisuke-umezawa in https://github.com/optuna/optuna-dashboard/pull/408
* Simplify the logic of selecting trials in TrialList by keisuke-umezawa in https://github.com/optuna/optuna-dashboard/pull/405
* Handle RuntimeError while calculating importance by c-bata in https://github.com/optuna/optuna-dashboard/pull/409
* Separate tell api into complete api and fail api by keisuke-umezawa in https://github.com/optuna/optuna-dashboard/pull/407
* Fix `getDominatedTrials` by knshnb in https://github.com/optuna/optuna-dashboard/pull/413
* Minor improvements on human-in-the-loop UI by c-bata in https://github.com/optuna/optuna-dashboard/pull/414
* Bump the version up to v0.9.0 by c-bata in https://github.com/optuna/optuna-dashboard/pull/415

New Contributors
* knshnb made their first contribution in https://github.com/optuna/optuna-dashboard/pull/413

**Full Changelog**: https://github.com/optuna/optuna-dashboard/compare/v0.8.1...v0.9.0

0.9.0b6

What's Changed
* Display objective forms even for completed trials by c-bata in https://github.com/optuna/optuna-dashboard/pull/387
* Remove redundant json dumps by c-bata in https://github.com/optuna/optuna-dashboard/pull/390
* Sort studies by `study_id` by c-bata in https://github.com/optuna/optuna-dashboard/pull/391
* Fix bug of `setStateValues` by c-bata in https://github.com/optuna/optuna-dashboard/pull/392
* Add an initial Audio support by c-bata in https://github.com/optuna/optuna-dashboard/pull/395
* Keep backward compatibility of widget definition by c-bata in https://github.com/optuna/optuna-dashboard/pull/393
* Introduce `--storage-class` CLi argument to support journal storage by c-bata in https://github.com/optuna/optuna-dashboard/pull/394
* Bump the version up to `v0.9.0b6` by c-bata in https://github.com/optuna/optuna-dashboard/pull/396


**Full Changelog**: https://github.com/optuna/optuna-dashboard/compare/v0.9.0b5...v0.9.0b6

0.9.0b5

What's Changed
* Fix artifact import issue by c-bata in https://github.com/optuna/optuna-dashboard/pull/381
* Bump the version up to v0.9.0b5 by c-bata in https://github.com/optuna/optuna-dashboard/pull/382

**Full Changelog**: https://github.com/optuna/optuna-dashboard/compare/v0.9.0b4...v0.9.0b5

0.9.0b4

python
from __future__ import annotations

import os
import textwrap
import threading
import time
from typing import NoReturn
from wsgiref.simple_server import make_server

import optuna
from PIL import Image
from optuna.trial import TrialState

from optuna_dashboard import ObjectiveChoiceWidget, save_note, ObjectiveSliderWidget
from optuna_dashboard import register_objective_form_widgets
from optuna_dashboard import set_objective_names
from optuna_dashboard import wsgi
from optuna_dashboard.artifact import upload_artifact
from optuna_dashboard.artifact.file_system import FileSystemBackend


storage = optuna.storages.InMemoryStorage()
base_path = os.path.join(os.path.dirname(__file__), "artifact")
artifact_backend = FileSystemBackend(base_path=base_path)


def suggest_and_generate_image(study: optuna.Study) -> None:
Ask new parameters
trial = study.ask()
r = trial.suggest_int("r", 0, 255)
g = trial.suggest_int("g", 0, 255)
b = trial.suggest_int("b", 0, 255)

Generate image
image_path = f"tmp/sample-{trial.number}.png"
image = Image.new("RGB", (320, 240), color=(r,g,b))
image.save(image_path)

Upload Artifact
artifact_id = upload_artifact(artifact_backend, trial, image_path)

Save Note
note = textwrap.dedent(f'''\
Trial {trial.number}

![generated-image](/artifacts/{study._study_id}/{trial._trial_id}/{artifact_id})
''')
save_note(trial, note)


def start_preferential_optimization() -> NoReturn:
Create Study
study = optuna.create_study(
study_name="Human-in-the-loop Optimization",
storage=storage,
directions=["minimize", "maximize"]
)
set_objective_names(study, ["Human Perception Score", "Looks Yellow?"])
register_objective_form_widgets(study, widgets=[
ObjectiveChoiceWidget(
choices=["Good 👍", "Bad 👎"],
values=[-1, 1],
description="Please input your score!",
),
ObjectiveSliderWidget(
min=1,
max=10,
step=1,
description="Higher is better.",
),
])

Start Human-in-the-loop Optimization
n_batch = 3
while True:
running_trials = study.get_trials(deepcopy=False, states=(TrialState.RUNNING,))
if len(running_trials) >= n_batch:
time.sleep(5)
continue
suggest_and_generate_image(study)


def main() -> None:
if not os.path.exists(base_path):
os.mkdir(base_path)

Start Dashboard server on background
app = wsgi(storage, artifact_backend=artifact_backend)
httpd = make_server("127.0.0.1", 8080, app)
thread = threading.Thread(target=httpd.serve_forever)
thread.start()

Run optimize loop
try:
start_preferential_optimization()
except KeyboardInterrupt:
httpd.shutdown()
httpd.server_close()
thread.join()


if __name__ == "__main__":
main()


What's Changed
* Fix bug of custom user widgets and enhance artifact support. by c-bata in https://github.com/optuna/optuna-dashboard/pull/375
* Update best trials when state is updated by c-bata in https://github.com/optuna/optuna-dashboard/pull/376
* Bump the version up to v0.9.0b4 by c-bata in https://github.com/optuna/optuna-dashboard/pull/377


**Full Changelog**: https://github.com/optuna/optuna-dashboard/compare/v0.9.0b3...v0.9.0b4

Page 4 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.