Add SoftKNNClassifierModel (#5072)#5072
Open
sunnyshen321 wants to merge 1 commit intofacebook:mainfrom
Open
Conversation
|
@sunnyshen321 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90894389. |
sunnyshen321
pushed a commit
to sunnyshen321/botorch
that referenced
this pull request
Mar 19, 2026
Summary: X-link: facebook/Ax#5072 Add a differentiable Soft K-Nearest Neighbors classifier model for failure-aware Bayesian optimization. Unlike tree-based classifiers (RF, XGBoost), SoftKNN is fully differentiable, enabling gradient-based acquisition function optimization. The model uses Gaussian kernel weights: P(y=1|x) = sum(w_i * y_i) / sum(w_i) where w_i = exp(-||x - x_i||^2 / (2 * sigma^2)) Implements construct_inputs classmethod for seamless Ax integration. Differential Revision: D90894389
ba554b3 to
f523295
Compare
sunnyshen321
pushed a commit
to sunnyshen321/Ax
that referenced
this pull request
Mar 19, 2026
Summary: X-link: meta-pytorch/botorch#3243 Add a differentiable Soft K-Nearest Neighbors classifier model for failure-aware Bayesian optimization. Unlike tree-based classifiers (RF, XGBoost), SoftKNN is fully differentiable, enabling gradient-based acquisition function optimization. The model uses Gaussian kernel weights: P(y=1|x) = sum(w_i * y_i) / sum(w_i) where w_i = exp(-||x - x_i||^2 / (2 * sigma^2)) Implements construct_inputs classmethod for seamless Ax integration. Differential Revision: D90894389
sunnyshen321
pushed a commit
to sunnyshen321/Ax
that referenced
this pull request
Mar 19, 2026
Summary: X-link: meta-pytorch/botorch#3243 Add a differentiable Soft K-Nearest Neighbors classifier model for failure-aware Bayesian optimization. Unlike tree-based classifiers (RF, XGBoost), SoftKNN is fully differentiable, enabling gradient-based acquisition function optimization. The model uses Gaussian kernel weights: P(y=1|x) = sum(w_i * y_i) / sum(w_i) where w_i = exp(-||x - x_i||^2 / (2 * sigma^2)) Implements construct_inputs classmethod for seamless Ax integration. Differential Revision: D90894389
f523295 to
f01f0f9
Compare
sunnyshen321
pushed a commit
to sunnyshen321/botorch
that referenced
this pull request
Mar 19, 2026
Summary: X-link: facebook/Ax#5072 Add a differentiable Soft K-Nearest Neighbors classifier model for failure-aware Bayesian optimization. Unlike tree-based classifiers (RF, XGBoost), SoftKNN is fully differentiable, enabling gradient-based acquisition function optimization. The model uses Gaussian kernel weights: P(y=1|x) = sum(w_i * y_i) / sum(w_i) where w_i = exp(-||x - x_i||^2 / (2 * sigma^2)) Implements construct_inputs classmethod for seamless Ax integration. Differential Revision: D90894389
sunnyshen321
pushed a commit
to sunnyshen321/Ax
that referenced
this pull request
Mar 19, 2026
Summary: X-link: meta-pytorch/botorch#3243 Add a differentiable Soft K-Nearest Neighbors classifier model for failure-aware Bayesian optimization. Unlike tree-based classifiers (RF, XGBoost), SoftKNN is fully differentiable, enabling gradient-based acquisition function optimization. The model uses Gaussian kernel weights: P(y=1|x) = sum(w_i * y_i) / sum(w_i) where w_i = exp(-||x - x_i||^2 / (2 * sigma^2)) Implements construct_inputs classmethod for seamless Ax integration. Differential Revision: D90894389
f01f0f9 to
6bc88c5
Compare
Summary: X-link: meta-pytorch/botorch#3243 Add a differentiable Soft K-Nearest Neighbors classifier model for failure-aware Bayesian optimization. Unlike tree-based classifiers (RF, XGBoost), SoftKNN is fully differentiable, enabling gradient-based acquisition function optimization. The model uses Gaussian kernel weights: P(y=1|x) = sum(w_i * y_i) / sum(w_i) where w_i = exp(-||x - x_i||^2 / (2 * sigma^2)) Implements construct_inputs classmethod for seamless Ax integration. Differential Revision: D90894389
6bc88c5 to
6d73f2c
Compare
sunnyshen321
pushed a commit
to sunnyshen321/botorch
that referenced
this pull request
Mar 19, 2026
Summary: X-link: facebook/Ax#5072 Add a differentiable Soft K-Nearest Neighbors classifier model for failure-aware Bayesian optimization. Unlike tree-based classifiers (RF, XGBoost), SoftKNN is fully differentiable, enabling gradient-based acquisition function optimization. The model uses Gaussian kernel weights: P(y=1|x) = sum(w_i * y_i) / sum(w_i) where w_i = exp(-||x - x_i||^2 / (2 * sigma^2)) Implements construct_inputs classmethod for seamless Ax integration. Differential Revision: D90894389
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
X-link: meta-pytorch/botorch#3243
Add a differentiable Soft K-Nearest Neighbors classifier model for failure-aware
Bayesian optimization. Unlike tree-based classifiers (RF, XGBoost), SoftKNN is
fully differentiable, enabling gradient-based acquisition function optimization.
The model uses Gaussian kernel weights:
P(y=1|x) = sum(w_i * y_i) / sum(w_i)
where w_i = exp(-||x - x_i||^2 / (2 * sigma^2))
Implements construct_inputs classmethod for seamless Ax integration.
Differential Revision: D90894389