Commit d98ceab
Deprecate last_dim_is_batch (bump PyTorch version to >= 2.0) (#2549)
* Update PyTorch requirement to >=2.0
* Add sum_interaction_terms utility to replace functionality of
NewtonGirardAdditiveKernel
This kernel will be deprecated and removed as part of GPyTorch 2.0.
* Add tutorial on additive and product kernels.
Include instructions for alternative implementation for the following deprecated kernels:
- AdditiveStructureKernel
- ProductStructureKernel
- NewtonGirardAdditiveKernel
* Add deprecation warnings for removal of last_dim_is_batch:
- Kernels called with last_dim_is_batch raise a DeprecationWarning
- AdditiveStructureKernel, ProductStructureKernel, and
NewtonGirardAdditiveKernel raise DeprecationWarnings when instantiated.
- Update example notebooks to remove usage of these deprecated kernels.
* Apply suggestions from code review
Co-authored-by: Jonathan Wenger <[email protected]>
* Fix linting error
---------
Co-authored-by: Jonathan Wenger <[email protected]>1 parent 26997ef commit d98ceab
File tree
17 files changed
+829
-155
lines changed- .conda
- .github/workflows
- docs/source
- examples
- 00_Basic_Usage
- 02_Scalable_Exact_GPs
- gpytorch
- kernels
- utils
- test/utils
17 files changed
+829
-155
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
| |||
0 commit comments