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

Bayesian Optimization #102

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

Bayesian Optimization #102

wants to merge 23 commits into from

Conversation

Ryo0731
Copy link

@Ryo0731 Ryo0731 commented Jan 31, 2023

implement bayesian optimization

Cargo.toml Outdated
@@ -20,6 +20,8 @@ num-integer = "0.1"
opensrdk-linear-algebra = "0.8.4"
opensrdk-kernel-method = "0.2.0"
special = "0.8.1"
optimize = "0.1.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なんでそうなるー
いらない
ndarrayもいらない

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

外部ライブラリ使うことがそもそも不要

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

そうなるとここの最適化ってどうやればいいでしょう?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

まずはグリッドサーチって言ってなかったっけ

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最適化よりむしろlinear algebraとndarrayを同居させるほうがよくない
それにどうしてもグリッドサーチいやだっていうならなんで直近使っててndarrayいらないcmaesを使わないんだ

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

グリッドサーチの件は多分初耳ですけど覚えときます。
cmaesも考えたんですけど、あれってブラックボックス関数の最適化用だと思っていたので、今回はブラックボックス関数じゃないからcmaesより速いのがあるかなって勝手に考えちゃいました

use super::AcquisitionFunctions;

pub struct UpperConfidenceBound {
trial: f64,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

明らかにusizeで保持して計算の時に都度キャストすべき

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最初適当にf64で設計してたのが残ってますね、そのように修正しておきます。

@Ryo0731 Ryo0731 requested a review from kimurayu45z February 14, 2023 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants