Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/support optuna dashboard #46

Merged
merged 3 commits into from
Jun 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -451,5 +451,4 @@ $RECYCLE.BIN/
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
Tunny/Lib/
!.vscode/extensions.json
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Please see [here](https://github.com/hrntsm/Tunny/releases) for the data release
- Feature to display results side by side in a viewport like a fish market.
- Version info to result rdb file
- To avoid problems with different versions in the future
- Support Optuna-Dashboard
- Real-time Web Dashboard for Optuna.
- https://github.com/optuna/optuna-dashboard#features

### Change

Expand Down
Binary file added Tunny/Lib/GalapagosComponents.dll
Binary file not shown.
13 changes: 13 additions & 0 deletions Tunny/UI/OptimizationWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions Tunny/UI/OptimizeWindowTab/ResultTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,27 @@

using Tunny.Optimization;
using Tunny.Solver;
using Tunny.Util;

namespace Tunny.UI
{
public partial class OptimizationWindow : Form
{
private void DashboardButton_Click(object sender, EventArgs e)
{
var dashboard = new Process();
dashboard.StartInfo.FileName = PythonInstaller.GetEmbeddedPythonPath() + @"\Scripts\optuna-dashboard.exe";
dashboard.StartInfo.Arguments = @"sqlite:///" + _component.GhInOut.ComponentFolder + @"\Tunny_Opt_Result.db";
dashboard.StartInfo.UseShellExecute = false;
dashboard.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
dashboard.Start();

var browser = new Process();
browser.StartInfo.FileName = @"http://127.0.0.1:8080/";
browser.StartInfo.UseShellExecute = true;
browser.Start();
}

private void VisualizeButton_Click(object sender, EventArgs e)
{
var optuna = new Optuna(_component.GhInOut.ComponentFolder);
Expand Down