repo stringclasses 454
values | file_path stringlengths 5 201 | extension stringclasses 1
value | content stringlengths 8 509k | num_lines int64 3 16.9k | size_bytes int64 8 511k |
|---|---|---|---|---|---|
probability | spinoffs/inference_gym/inference_gym/internal/datasets/synthetic_log_gaussian_cox_process.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 472 | 5,386 |
probability | spinoffs/inference_gym/inference_gym/internal/datasets/synthetic_plasma_spectroscopy_with_bump.py | .py | # Copyright 2021 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 557 | 9,359 |
probability | spinoffs/inference_gym/inference_gym/internal/datasets/synthetic_plasma_spectroscopy.py | .py | # Copyright 2021 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 1,777 | 28,308 |
probability | spinoffs/inference_gym/inference_gym/backends/rewrite.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 286 | 10,112 |
probability | spinoffs/inference_gym/inference_gym/backends/util.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 50 | 1,595 |
probability | spinoffs/inference_gym/inference_gym/backends/jax_integration_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 31 | 1,111 |
probability | spinoffs/inference_gym/inference_gym/backends/numpy_integration_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 31 | 1,119 |
probability | spinoffs/inference_gym/inference_gym/backends/tensorflow_integration_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 34 | 1,190 |
probability | spinoffs/inference_gym/inference_gym/targets/brownian_motion_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 166 | 6,226 |
probability | spinoffs/inference_gym/inference_gym/targets/neals_funnel.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 149 | 5,089 |
probability | spinoffs/inference_gym/inference_gym/targets/logistic_regression_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 123 | 4,297 |
probability | spinoffs/inference_gym/inference_gym/targets/vectorized_stochastic_volatility_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 376 | 13,752 |
probability | spinoffs/inference_gym/inference_gym/targets/item_response_theory.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 319 | 13,118 |
probability | spinoffs/inference_gym/inference_gym/targets/banana_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 59 | 1,966 |
probability | spinoffs/inference_gym/inference_gym/targets/non_identifiable_quartic.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 117 | 3,898 |
probability | spinoffs/inference_gym/inference_gym/targets/sparse_logistic_regression.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 210 | 7,731 |
probability | spinoffs/inference_gym/inference_gym/targets/item_response_theory_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 148 | 5,381 |
probability | spinoffs/inference_gym/inference_gym/targets/model.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 321 | 11,735 |
probability | spinoffs/inference_gym/inference_gym/targets/dirichlet_test.py | .py | # Copyright 2025 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 79 | 2,558 |
probability | spinoffs/inference_gym/inference_gym/targets/lorenz_system.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 435 | 16,566 |
probability | spinoffs/inference_gym/inference_gym/targets/__init__.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 109 | 5,838 |
probability | spinoffs/inference_gym/inference_gym/targets/sparse_logistic_regression_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 157 | 5,455 |
probability | spinoffs/inference_gym/inference_gym/targets/log_gaussian_cox_process.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 201 | 7,644 |
probability | spinoffs/inference_gym/inference_gym/targets/radon_contextual_effects_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 234 | 8,509 |
probability | spinoffs/inference_gym/inference_gym/targets/probit_regression.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 175 | 6,080 |
probability | spinoffs/inference_gym/inference_gym/targets/non_identifiable_quartic_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 52 | 1,909 |
probability | spinoffs/inference_gym/inference_gym/targets/neals_funnel_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 59 | 2,011 |
probability | spinoffs/inference_gym/inference_gym/targets/brownian_motion.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 339 | 12,422 |
probability | spinoffs/inference_gym/inference_gym/targets/probit_regression_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 123 | 4,324 |
probability | spinoffs/inference_gym/inference_gym/targets/vector_model.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 248 | 8,900 |
probability | spinoffs/inference_gym/inference_gym/targets/plasma_spectroscopy.py | .py | # Copyright 2021 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 431 | 15,183 |
probability | spinoffs/inference_gym/inference_gym/targets/radon_contextual_effects.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 459 | 18,877 |
probability | spinoffs/inference_gym/inference_gym/targets/banana.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 157 | 5,334 |
probability | spinoffs/inference_gym/inference_gym/targets/logistic_regression.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 174 | 6,048 |
probability | spinoffs/inference_gym/inference_gym/targets/plasma_spectroscopy_test.py | .py | # Copyright 2021 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 146 | 4,703 |
probability | spinoffs/inference_gym/inference_gym/targets/bayesian_model.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 103 | 3,650 |
probability | spinoffs/inference_gym/inference_gym/targets/stochastic_volatility.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 264 | 10,061 |
probability | spinoffs/inference_gym/inference_gym/targets/ill_conditioned_gaussian_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 85 | 2,821 |
probability | spinoffs/inference_gym/inference_gym/targets/eight_schools.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 154 | 5,656 |
probability | spinoffs/inference_gym/inference_gym/targets/vector_model_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 325 | 12,119 |
probability | spinoffs/inference_gym/inference_gym/targets/vectorized_stochastic_volatility.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 442 | 16,363 |
probability | spinoffs/inference_gym/inference_gym/targets/eight_schools_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 59 | 2,116 |
probability | spinoffs/inference_gym/inference_gym/targets/stochastic_volatility_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 105 | 4,274 |
probability | spinoffs/inference_gym/inference_gym/targets/bayesian_model_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 77 | 2,402 |
probability | spinoffs/inference_gym/inference_gym/targets/model_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 99 | 3,417 |
probability | spinoffs/inference_gym/inference_gym/targets/ill_conditioned_gaussian.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 130 | 4,363 |
probability | spinoffs/inference_gym/inference_gym/targets/log_gaussian_cox_process_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 129 | 4,308 |
probability | spinoffs/inference_gym/inference_gym/targets/dirichlet.py | .py | # Copyright 2025 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 107 | 3,369 |
probability | spinoffs/inference_gym/inference_gym/targets/lorenz_system_test.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 197 | 7,913 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/radon_contextual_effects_minnesota_halfnormal.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 345 | 8,673 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/convection_lorenz_bridge.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 306 | 7,766 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/stochastic_volatility_sp500_small.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 372 | 9,219 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/stochastic_volatility_log_sp500_small.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 372 | 9,300 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/synthetic_item_response_theory.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 1,559 | 39,578 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/radon_contextual_effects_indiana.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 363 | 9,168 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/stochastic_volatility_log_sp500.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 7,620 | 185,245 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/brownian_motion_missing_middle_observations.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 126 | 3,424 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/radon_contextual_effects_indiana_halfnormal.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 363 | 9,186 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/convection_lorenz_bridge_unknown_scales.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 330 | 8,383 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/german_credit_numeric_sparse_logistic_regression.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 207 | 5,398 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/brownian_motion_unknown_scales_missing_middle_observations.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 150 | 4,047 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/eight_schools.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 84 | 2,210 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/synthetic_log_gaussian_cox_process.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 362 | 8,978 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/german_credit_numeric_probit_regression.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 111 | 3,039 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/radon_contextual_effects_minnesota.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 345 | 8,662 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/stochastic_volatility_sp500.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 7,620 | 182,503 |
probability | spinoffs/inference_gym/inference_gym/targets/ground_truth/german_credit_numeric_logistic_regression.py | .py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 111 | 3,031 |
pyro | tutorial/source/cleannb.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import argparse
import io # for py2/py3 compatible
import nbformat
def cleannb(nbfile):
with io.open(nbfile, "r", encoding="utf8") as f:
nb = nbformat.read(f, as_version=nbformat.NO_CONVERT)
nb["metadata"]["ker... | 33 | 1,002 |
pyro | tutorial/source/search_inference.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
"""
Inference algorithms and utilities used in the RSA example models.
Adapted from: http://dippl.org/chapters/03-enumeration.html
"""
import collections
import functools
import queue
import torch
import pyro.distributions as d... | 226 | 7,589 |
pyro | profiler/hmm.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import argparse
import os
import pickle
import re
import subprocess
import sys
from collections import defaultdict
from os.path import abspath, join
from numpy import median
from pyro.util import timed
EXAMPLES_DIR = join(abspat... | 86 | 2,834 |
pyro | profiler/distributions.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import argparse
import torch
from torch.autograd import Variable
from profiler.profiling_utils import Profile, profile_print
from pyro.distributions import (
Bernoulli,
Beta,
Categorical,
Cauchy,
Dirichlet,
... | 191 | 5,360 |
pyro | profiler/profiling_utils.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import cProfile
import functools
import os
import pstats
import timeit
from contextlib import contextmanager
from io import StringIO
from prettytable import ALL, PrettyTable
FILE = os.path.abspath(__file__)
PROF_DIR = os.path.joi... | 125 | 4,006 |
pyro | profiler/gaussianhmm.py | .py | # Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
import argparse
import torch
from tqdm.auto import tqdm
import pyro.distributions as dist
def random_mvn(batch_shape, dim, requires_grad=False):
rank = dim + dim
loc = torch.randn(batch_shape + (dim,), requires_grad=require... | 84 | 2,678 |
pyro | tests/test_settings.py | .py | # Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
import pytest
from pyro import settings
_TEST_SETTING: float = 0.1
pytestmark = pytest.mark.stage("unit")
def test_settings():
v0 = settings.get()
assert isinstance(v0, dict)
assert all(isinstance(alias, str) for alias... | 51 | 1,420 |
pyro | tests/test_generic.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import pytest
from pyroapi.testing import MODELS
from pyro.generic import handlers, infer, ops, pyro, pyro_backend
from tests.common import xfail_if_not_implemented
pytestmark = pytest.mark.stage("unit")
@pytest.mark.filterwarn... | 94 | 3,354 |
pyro | tests/test_util.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import warnings
import pytest
import torch
from pyro import util
pytestmark = pytest.mark.stage("unit")
def test_warn_if_nan():
# scalar case
with warnings.catch_warnings(record=True) as w:
warnings.simplefilte... | 106 | 3,150 |
pyro | tests/test_examples.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import logging
import os
import sys
from subprocess import check_call
import pytest
import torch
from tests.common import (
EXAMPLES_DIR,
requires_cuda,
requires_funsor,
requires_horovod,
requires_lightning,
... | 410 | 22,086 |
pyro | tests/test_primitives.py | .py | # Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
from typing import Optional
import pytest
import torch
import pyro
import pyro.distributions as dist
from pyro import poutine
pytestmark = pytest.mark.stage("unit")
def test_sample_ok():
x = pyro.sample("x", dist.Normal(0, 1))... | 64 | 1,459 |
pyro | tests/common.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import contextlib
import numbers
import os
import re
import warnings
from itertools import product
import numpy as np
import pytest
import torch
import torch.cuda
from numpy.testing import assert_allclose
from pytest import approx... | 297 | 9,455 |
pyro | tests/doctest_fixtures.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import numpy
import pytest
import torch
import pyro
import pyro.contrib.autoname.named as named
import pyro.contrib.gp as gp
import pyro.distributions as dist
import pyro.poutine as poutine
from pyro.infer import EmpiricalMarginal... | 36 | 1,075 |
pyro | tests/conftest.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import os
import warnings
import pytest
import torch
import pyro
DTYPE = getattr(torch, os.environ.get("PYRO_DTYPE", "float64"))
torch.set_default_dtype(DTYPE)
torch.set_default_device(os.environ.get("PYRO_DEVICE", "cpu"))
def... | 116 | 3,380 |
pyro | tests/params/test_param.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
from copy import copy
from unittest import TestCase
import numpy as np
import torch
import torch.optim
from torch import nn as nn
from torch.distributions import constraints
import pyro
from tests.common import assert_equal
cla... | 246 | 8,707 |
pyro | tests/params/test_module.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import pytest
import torch
import torch.nn as nn
from torch.nn import Parameter
import pyro
import pyro.distributions as dist
import pyro.optim
class outest(nn.Module):
def __init__(self):
super().__init__()
... | 95 | 2,567 |
pyro | tests/params/conftest.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import pytest
def pytest_collection_modifyitems(items):
for item in items:
if item.nodeid.startswith("tests/params"):
if "stage" not in item.keywords:
item.add_marker(pytest.mark.stage("uni... | 14 | 433 |
pyro | tests/nn/test_module.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import io
import math
import warnings
from typing import Callable, Iterable
import pytest
import torch
from torch import nn
from torch.distributions import constraints, transform_to
import pyro
import pyro.distributions as dist
f... | 1,087 | 35,470 |
pyro | tests/nn/test_autoregressive.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
from unittest import TestCase
import pytest
import torch
from pyro.nn import AutoRegressiveNN, ConditionalAutoRegressiveNN
from pyro.nn.auto_reg_nn import create_mask
pytestmark = pytest.mark.init(rng_seed=123)
class AutoRegre... | 140 | 5,475 |
pyro | tests/nn/conftest.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import pytest
def pytest_collection_modifyitems(items):
for item in items:
if item.nodeid.startswith("tests/nn"):
if "stage" not in item.keywords:
item.add_marker(pytest.mark.stage("unit"))... | 14 | 429 |
pyro | tests/distributions/test_independent.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import pytest
import torch
from torch.distributions.utils import _sum_rightmost
import pyro.distributions as dist
from pyro.util import torch_isnan
from tests.common import assert_equal
@pytest.mark.parametrize("sample_shape", [... | 152 | 5,135 |
pyro | tests/distributions/test_cuda.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import pytest
import torch
from torch.autograd import grad
from tests.common import (
assert_equal,
requires_cuda,
xfail_if_not_implemented,
)
@requires_cuda
def test_sample(dist):
for idx in range(len(dist.dist_... | 97 | 3,189 |
pyro | tests/distributions/test_conjugate.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import math
import pytest
import torch
import pyro.distributions as dist
from pyro.distributions import BetaBinomial, DirichletMultinomial, GammaPoisson
from tests.common import assert_close
@pytest.mark.parametrize(
"dist"... | 127 | 4,358 |
pyro | tests/distributions/test_categorical.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
from unittest import TestCase
import numpy as np
import pytest
import scipy.stats as sp
import torch
import pyro.distributions as dist
from tests.common import assert_equal
class TestCategorical(TestCase):
"""
Tests met... | 117 | 3,591 |
pyro | tests/distributions/test_lowrank_mvn.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import torch
from pyro.distributions import LowRankMultivariateNormal, MultivariateNormal
from tests.common import assert_equal
def test_scale_tril():
loc = torch.tensor([1.0, 2.0, 1.0, 2.0, 0.0])
D = torch.tensor([1.0, ... | 45 | 1,451 |
pyro | tests/distributions/test_tensor_type.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import pytest
import scipy.stats as sp
import torch
import pyro.distributions as dist
from tests.common import assert_equal
@pytest.fixture()
def test_data():
return torch.DoubleTensor([0.4])
@pytest.fixture()
def alpha():... | 78 | 2,032 |
pyro | tests/distributions/test_gaussian_mixtures.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import logging
import math
import pytest
import torch
from pyro.distributions import (
GaussianScaleMixture,
MixtureOfDiagNormals,
MixtureOfDiagNormalsSharedCovariance,
)
from tests.common import assert_equal
logger ... | 306 | 10,771 |
pyro | tests/distributions/test_transforms.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import operator
from functools import partial, reduce
from unittest import TestCase
import pytest
import torch
import pyro.distributions as dist
import pyro.distributions.transforms as T
from pyro.distributions import constraints... | 582 | 22,417 |
pyro | tests/distributions/test_stable.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import warnings
import pytest
import torch
from scipy.integrate.quadpack import IntegrationWarning
from scipy.stats import ks_2samp, kstest, levy_stable
import pyro.distributions as dist
import pyro.distributions.stable
from test... | 152 | 5,202 |
pyro | tests/distributions/test_zero_inflated.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import math
import pytest
import torch
from pyro.distributions import (
Delta,
NegativeBinomial,
Normal,
Poisson,
ZeroInflatedDistribution,
ZeroInflatedNegativeBinomial,
ZeroInflatedPoisson,
)
from pyr... | 141 | 4,929 |
pyro | tests/distributions/test_log_normal_negative_binomial.py | .py | # Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
import pytest
import torch
from pyro.distributions import LogNormalNegativeBinomial
from tests.common import assert_close
@pytest.mark.parametrize("num_quad_points", [2, 4])
@pytest.mark.parametrize("shape", [(2,), (4, 3)])
def test... | 48 | 1,588 |
pyro | tests/distributions/test_unit.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import pytest
import torch
import pyro.distributions as dist
from tests.common import assert_equal
@pytest.mark.parametrize("batch_shape", [(), (4,), (3, 2)])
def test_shapes(batch_shape):
log_factor = torch.randn(batch_shap... | 33 | 966 |
pyro | tests/distributions/test_shapes.py | .py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import torch
import pyro.distributions as dist
def test_categorical_shape():
probs = torch.ones(3, 2) / 2
d = dist.Categorical(probs)
assert d.batch_shape == (3,)
assert d.event_shape == ()
assert d.shape() =... | 96 | 2,509 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.