-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2254 from j-bryan/mvn-pickle
MultivariateNormal pickling fix
- Loading branch information
Showing
3 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
75 changes: 75 additions & 0 deletions
75
tests/framework/ROM/TimeSeries/SyntheticHistory/varma_sample.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?xml version="1.0" ?> | ||
<Simulation verbosity="debug"> | ||
<TestInfo> | ||
<name>framework/ROM/TimeSeries/SyntheticHistory.VARMASample</name> | ||
<author>j-bryan</author> | ||
<created>2024-01-26</created> | ||
<classesTested>SupervisedLearning.SyntheticHistory,TSA.VARMA</classesTested> | ||
<description>Tests the ability to load and sample VARMA created by SyntheticHistory ROM.</description> | ||
</TestInfo> | ||
|
||
<RunInfo> | ||
<WorkingDir>VARMA</WorkingDir> | ||
<Sequence>read, sample</Sequence> | ||
<batchSize>1</batchSize> | ||
</RunInfo> | ||
|
||
<Steps> | ||
<IOStep name="read"> | ||
<Input class="Files" type="">pk</Input> | ||
<Output class="Models" type="ROM">synth</Output> | ||
</IOStep> | ||
<MultiRun name="sample"> | ||
<Input class="DataObjects" type="PointSet">placeholder</Input> | ||
<Model class="Models" type="ROM">synth</Model> | ||
<Sampler class="Samplers" type="MonteCarlo">mc</Sampler> | ||
<Output class="DataObjects" type="HistorySet">samples</Output> | ||
<Output class="OutStreams" type="Print">pk_samples</Output> | ||
</MultiRun> | ||
</Steps> | ||
|
||
<Files> | ||
<Input name="pk">varma.pk</Input> | ||
</Files> | ||
|
||
<Samplers> | ||
<MonteCarlo name="mc"> | ||
<samplerInit> | ||
<limit>2</limit> | ||
<initialSeed>42</initialSeed> | ||
</samplerInit> | ||
<constant name="scaling">1.0</constant> | ||
</MonteCarlo> | ||
</Samplers> | ||
|
||
<Models> | ||
<ROM name="synth" subType="SyntheticHistory"> | ||
<Target>signal0, signal1, seconds</Target> | ||
<Features>scaling</Features> | ||
<pivotParameter>seconds</pivotParameter> | ||
<varma target="signal0, signal1" seed='42'> | ||
<P>1</P> | ||
<Q>0</Q> | ||
</varma> | ||
</ROM> | ||
</Models> | ||
|
||
<OutStreams> | ||
<Print name="pk_samples"> | ||
<type>csv</type> | ||
<source>samples</source> | ||
</Print> | ||
</OutStreams> | ||
|
||
<DataObjects> | ||
<PointSet name="placeholder"/> | ||
<HistorySet name="samples"> | ||
<Input>scaling</Input> | ||
<Output>signal0, signal1</Output> | ||
<options> | ||
<pivotParameter>seconds</pivotParameter> | ||
</options> | ||
</HistorySet> | ||
</DataObjects> | ||
|
||
</Simulation> |