-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathBUILD.bazel
268 lines (262 loc) · 10.9 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
load("@rules_swiftnav//cc:defs.bzl", "UNIT", "swift_cc_test", "swift_cc_test_library")
load("//:copts.bzl", "COPTS")
load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands")
refresh_compile_commands(
name = "gen_compile_commands",
visibility = ["//visibility:public"],
)
alias(
name = "clang_format",
actual = "@rules_swiftnav//clang_format",
)
filegroup(
name = "clang_format_config",
srcs = [".clang-format"],
visibility = ["//visibility:public"],
)
cc_library(
name = "albatross",
hdrs = [
"include/albatross/Common",
"include/albatross/Core",
"include/albatross/CovarianceFunctions",
"include/albatross/Dataset",
"include/albatross/Distribution",
"include/albatross/Evaluation",
"include/albatross/ForwardDeclarations",
"include/albatross/GP",
"include/albatross/Graph",
"include/albatross/Indexing",
"include/albatross/LeastSquares",
"include/albatross/NullModel",
"include/albatross/Ransac",
"include/albatross/Samplers",
"include/albatross/SparseGP",
"include/albatross/Stats",
"include/albatross/Tune",
"include/albatross/Typecast",
"include/albatross/linalg/Block",
"include/albatross/linalg/Utils",
"include/albatross/serialize/Common",
"include/albatross/serialize/Core",
"include/albatross/serialize/Evaluation",
"include/albatross/serialize/GP",
"include/albatross/serialize/LeastSquares",
"include/albatross/serialize/Ransac",
"include/albatross/src/cereal/ThreadPool.hpp",
"include/albatross/src/cereal/block_utils.hpp",
"include/albatross/src/cereal/dataset.hpp",
"include/albatross/src/cereal/distribution.hpp",
"include/albatross/src/cereal/eigen.hpp",
"include/albatross/src/cereal/evaluation.hpp",
"include/albatross/src/cereal/fit_model.hpp",
"include/albatross/src/cereal/gp.hpp",
"include/albatross/src/cereal/least_squares.hpp",
"include/albatross/src/cereal/model.hpp",
"include/albatross/src/cereal/parameters.hpp",
"include/albatross/src/cereal/priors.hpp",
"include/albatross/src/cereal/ransac.hpp",
"include/albatross/src/cereal/representations.hpp",
"include/albatross/src/cereal/serializable_ldlt.hpp",
"include/albatross/src/cereal/serializable_spqr.hpp",
"include/albatross/src/cereal/suitesparse.hpp",
"include/albatross/src/cereal/traits.hpp",
"include/albatross/src/cereal/variant.hpp",
"include/albatross/src/core/concatenate.hpp",
"include/albatross/src/core/dataset.hpp",
"include/albatross/src/core/declarations.hpp",
"include/albatross/src/core/distribution.hpp",
"include/albatross/src/core/fit_model.hpp",
"include/albatross/src/core/keys.hpp",
"include/albatross/src/core/linear_combination.hpp",
"include/albatross/src/core/model.hpp",
"include/albatross/src/core/parameter_handling_mixin.hpp",
"include/albatross/src/core/parameter_macros.hpp",
"include/albatross/src/core/parameters.hpp",
"include/albatross/src/core/prediction.hpp",
"include/albatross/src/core/priors.hpp",
"include/albatross/src/core/traits.hpp",
"include/albatross/src/core/transformed_distribution.hpp",
"include/albatross/src/covariance_functions/call_trace.hpp",
"include/albatross/src/covariance_functions/callers.hpp",
"include/albatross/src/covariance_functions/covariance_function.hpp",
"include/albatross/src/covariance_functions/distance_metrics.hpp",
"include/albatross/src/covariance_functions/mean_function.hpp",
"include/albatross/src/covariance_functions/measurement.hpp",
"include/albatross/src/covariance_functions/noise.hpp",
"include/albatross/src/covariance_functions/nugget.hpp",
"include/albatross/src/covariance_functions/polynomials.hpp",
"include/albatross/src/covariance_functions/radial.hpp",
"include/albatross/src/covariance_functions/representations.hpp",
"include/albatross/src/covariance_functions/scaling_function.hpp",
"include/albatross/src/covariance_functions/traits.hpp",
"include/albatross/src/details/error_handling.hpp",
"include/albatross/src/details/method_inspection_macros.hpp",
"include/albatross/src/details/traits.hpp",
"include/albatross/src/details/typecast.hpp",
"include/albatross/src/details/unused.hpp",
"include/albatross/src/eigen/serializable_ldlt.hpp",
"include/albatross/src/eigen/serializable_spqr.hpp",
"include/albatross/src/evaluation/cross_validation.hpp",
"include/albatross/src/evaluation/cross_validation_utils.hpp",
"include/albatross/src/evaluation/differential_entropy.hpp",
"include/albatross/src/evaluation/folds.hpp",
"include/albatross/src/evaluation/likelihood.hpp",
"include/albatross/src/evaluation/model_metrics.hpp",
"include/albatross/src/evaluation/prediction_metrics.hpp",
"include/albatross/src/evaluation/traits.hpp",
"include/albatross/src/graph/minimum_spanning_tree.hpp",
"include/albatross/src/indexing/apply.hpp",
"include/albatross/src/indexing/block.hpp",
"include/albatross/src/indexing/declarations.hpp",
"include/albatross/src/indexing/filter.hpp",
"include/albatross/src/indexing/group_by.hpp",
"include/albatross/src/indexing/subset.hpp",
"include/albatross/src/indexing/traits.hpp",
"include/albatross/src/indexing/unique.hpp",
"include/albatross/src/linalg/block_diagonal.hpp",
"include/albatross/src/linalg/block_symmetric.hpp",
"include/albatross/src/linalg/block_utils.hpp",
"include/albatross/src/linalg/print_eigen_directions.hpp",
"include/albatross/src/linalg/qr_utils.hpp",
"include/albatross/src/linalg/spqr_utils.hpp",
"include/albatross/src/models/conditional_gaussian.hpp",
"include/albatross/src/models/gp.hpp",
"include/albatross/src/models/least_squares.hpp",
"include/albatross/src/models/null_model.hpp",
"include/albatross/src/models/ransac.hpp",
"include/albatross/src/models/ransac_gp.hpp",
"include/albatross/src/models/sparse_gp.hpp",
"include/albatross/src/samplers/callbacks.hpp",
"include/albatross/src/samplers/ensemble.hpp",
"include/albatross/src/samplers/initialization.hpp",
"include/albatross/src/samplers/state.hpp",
"include/albatross/src/stats/chi_squared.hpp",
"include/albatross/src/stats/gauss_legendre.hpp",
"include/albatross/src/stats/gaussian.hpp",
"include/albatross/src/stats/incomplete_gamma.hpp",
"include/albatross/src/stats/ks_test.hpp",
"include/albatross/src/tune/finite_difference.hpp",
"include/albatross/src/tune/greedy_tuner.hpp",
"include/albatross/src/tune/tune.hpp",
"include/albatross/src/tune/tuning_metrics.hpp",
"include/albatross/src/utils/async_utils.hpp",
"include/albatross/src/utils/compress.hpp",
"include/albatross/src/utils/csv_utils.hpp",
"include/albatross/src/utils/eigen_utils.hpp",
"include/albatross/src/utils/map_utils.hpp",
"include/albatross/src/utils/random_utils.hpp",
"include/albatross/src/utils/variant_utils.hpp",
"include/albatross/src/utils/vector_utils.hpp",
"include/albatross/tests/Utils",
"include/albatross/utils/AsyncUtils",
"include/albatross/utils/CsvUtils",
"include/albatross/utils/MapUtils",
"include/albatross/utils/RandomUtils",
"include/albatross/utils/VariantUtils",
"tests/mock_model.h",
"tests/test_covariance_utils.h",
"tests/test_utils.h",
],
copts = ["-Itests"],
includes = [
"include",
],
visibility = ["//visibility:public"],
deps = [
"@ThreadPool",
"@cereal",
"@eigen",
"@fast_csv",
"@gzip",
"@nlopt",
"@zlib",
"@variant",
"@zstd",
"@suitesparse//:spqr",
],
)
swift_cc_test_library(
name = "serialize-testsuite",
srcs = ["tests/test_serialize.h"],
includes = [
"tests",
],
visibility = ["//visibility:public"],
deps = ["@gtest"],
)
swift_cc_test(
name = "albatross-test",
srcs = [
"tests/mock_model.h",
"tests/test_apply.cc",
"tests/test_async_utils.cc",
"tests/test_block_utils.cc",
"tests/test_call_trace.cc",
"tests/test_callers.cc",
"tests/test_chi_squared_versus_gsl.cc",
"tests/test_compression.cc",
"tests/test_concatenate.cc",
"tests/test_conditional_gaussian.cc",
"tests/test_core_dataset.cc",
"tests/test_core_distribution.cc",
"tests/test_core_distribution.h",
"tests/test_core_model.cc",
"tests/test_covariance_function.cc",
"tests/test_covariance_functions.cc",
"tests/test_covariance_utils.h",
"tests/test_cross_validation.cc",
"tests/test_csv_utils.cc",
"tests/test_distance_metrics.cc",
"tests/test_eigen_utils.cc",
"tests/test_error_handling.cc",
"tests/test_evaluate.cc",
"tests/test_gp.cc",
"tests/test_group_by.cc",
"tests/test_indexing.cc",
"tests/test_linalg_utils.cc",
"tests/test_linear_combination.cc",
"tests/test_map_utils.cc",
"tests/test_minimum_spanning_tree.cc",
"tests/test_model_adapter.cc",
"tests/test_model_metrics.cc",
"tests/test_models.cc",
"tests/test_models.h",
"tests/test_parameter_handling_mixin.cc",
"tests/test_prediction.cc",
"tests/test_radial.cc",
"tests/test_random_utils.cc",
"tests/test_ransac.cc",
"tests/test_samplers.cc",
"tests/test_scaling_function.cc",
"tests/test_serializable_ldlt.cc",
"tests/test_serialize.cc",
"tests/test_sparse_gp.cc",
"tests/test_stats.cc",
"tests/test_thread_pool.cc",
"tests/test_traits_cereal.cc",
"tests/test_traits_core.cc",
"tests/test_traits_covariance_functions.cc",
"tests/test_traits_details.cc",
"tests/test_traits_evaluation.cc",
"tests/test_traits_indexing.cc",
"tests/test_tune.cc",
"tests/test_utils.h",
"tests/test_unique.cc",
"tests/test_variant_utils.cc",
"tests/test_vector_utils.cc",
],
copts = COPTS,
includes = ["tests"],
linkopts = ["-lz"],
local_defines = ["CSV_IO_NO_THREAD"],
type = UNIT,
size = "large",
deps = [
":albatross",
":serialize-testsuite",
"@zlib",
"@gtest//:gtest_main",
"@suitesparse//:spqr",
],
)