You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DeepDiagnostics is a package for diagnosing the posterior from an inference method. It is flexible, applicable for both simulation-based and likelihood-based inference.
[View the template yaml here for a minimally working example with our supplied sample data to get started.](https://github.com/deepskies/DeepDiagnostics/blob/main/config.yml.template)
30
36
37
+
### Data and Model Requirements
38
+
39
+
To access your trained model, use the `SBIModel` class to load in a trained model in the form of a `.pkl` file.
40
+
[This format specifics are shown here](https://sbi-dev.github.io/sbi/latest/faq/question_05_pickling/)
41
+
If you wish to use a different model format, we encourage you to open a [new issue](https://github.com/deepskies/DeepDiagnostics/issues) requesting it, or even better, write an subclass of `deepdiagnostics.models.Model` to include it!
42
+
43
+
To read in your own data, supply an `.h5` or `.pkl` file and specify your format in the `data`.`data_engine` field of the configuration file. [The possible fields are listed here.](https://deepskies.github.io/DeepDiagnostics/data.html) We recommend an `.h5` file.
44
+
45
+
The data must have the following fields:
46
+
*`xs` - The range of data your parameters have been tested against. For example, if you are modeling `y = mx + b`, your `xs` are the values you have tested for `x`. Please ensure they are of the shape (x_size, n_samples).
47
+
*`thetas` - The parameters that characterize your problem. For example, if you are modeling `y = mx + b`, your `thetas` are `m` and `b`. Please ensure they are in the shape of (n_parameters, n_samples) and ordered the same way `parameter_labels` is supplied in your configuration file to prevent mislabelled plots.
48
+
49
+
If you do not supply a simulator method, including a `ys` field can allow for the use of a `lookup-table` simulator substitute.
50
+
51
+
31
52
### Pipeline
32
53
`DeepDiagnostics` includes a CLI tool for analysis.
33
54
* To run the tool using a configuration file:
@@ -45,6 +66,7 @@ pytest
45
66
46
67
Additional arguments can be found using ``diagnose -h``
47
68
69
+
48
70
### Standalone
49
71
50
72
`DeepDiagnostics` comes with the option to run different plots and metrics independently.
@@ -78,6 +100,8 @@ These child classes need a few methods. A minimal example of both a metric and a
78
100
79
101
It is strongly encouraged to provide typing for all inputs of the `plot` and `calculate` methods so they can be automatically documented.
80
102
103
+
Please ensure the proxy format `DataDisplay` is used for all plots, which ensures results can be re-plotted.
0 commit comments