-
Notifications
You must be signed in to change notification settings - Fork 38
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 #106 from PaulTalbot-INL/raven_romapi_fix
updated to work with new raven
- Loading branch information
Showing
13 changed files
with
171 additions
and
19 deletions.
There are no files selected for viewing
Binary file not shown.
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,3 @@ | ||
scaling,Year,filename | ||
1,10,Data_0.csv | ||
1,40,Data_0.csv |
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,22 @@ | ||
,Time,Signal | ||
0,0,0 | ||
1,0.1,0.06279052 | ||
2,0.2,0.125333234 | ||
3,0.3,0.187381315 | ||
4,0.4,0.248689887 | ||
5,0.5,0.309016994 | ||
6,0.6,0.368124553 | ||
7,0.7,0.425779292 | ||
8,0.8,0.481753674 | ||
9,0.9,0.535826795 | ||
10,1,0.587785252 | ||
11,1.1,0.63742399 | ||
12,1.2,0.684547106 | ||
13,1.3,0.728968627 | ||
14,1.4,0.770513243 | ||
15,1.5,0.809016994 | ||
16,1.6,0.844327926 | ||
17,1.7,0.87630668 | ||
18,1.8,0.904827052 | ||
19,1.9,0.929776486 | ||
20,2,0.951056516 |
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
<?xml version="1.0" ?> | ||
<Simulation verbosity="debug"> | ||
<TestInfo> | ||
<name>ARMA_sine_30yr</name> | ||
<author>talbpaul</author> | ||
<created>2021-10-19</created> | ||
<description> | ||
This trains a non-stochastic sine function for use in HERON tests. | ||
Extends training data to 30 years, albeit same 21 data points. | ||
</description> | ||
<classesTested>SupervisedLearning.ARMA</classesTested> | ||
</TestInfo> | ||
|
||
<RunInfo> | ||
<WorkingDir>Sine30yr</WorkingDir> | ||
<Sequence>load, train, meta, serialize, sample</Sequence> | ||
</RunInfo> | ||
|
||
<Steps> | ||
<IOStep name="load"> | ||
<Input class="Files" type="">input</Input> | ||
<Output class="DataObjects" type="HistorySet">input</Output> | ||
</IOStep> | ||
<RomTrainer name="train"> | ||
<Input class="DataObjects" type="HistorySet">input</Input> | ||
<Output class="Models" type="ROM">arma</Output> | ||
</RomTrainer> | ||
<IOStep name="meta"> | ||
<Input class="Models" type="ROM">arma</Input> | ||
<Output class="DataObjects" type="DataSet">meta</Output> | ||
<Output class="OutStreams" type="Print">romMeta</Output> | ||
</IOStep> | ||
<IOStep name="serialize"> | ||
<Input class="Models" type="ROM">arma</Input> | ||
<Output class="Files" type="">pk</Output> | ||
</IOStep> | ||
<MultiRun name="sample"> | ||
<Input class="DataObjects" type="PointSet">placeholder</Input> | ||
<Model class="Models" type="ROM">arma</Model> | ||
<Sampler class="Samplers" type="MonteCarlo">mc</Sampler> | ||
<Output class="DataObjects" type="DataSet">synthetic</Output> | ||
<Output class="OutStreams" type="Print">synthetic</Output> | ||
</MultiRun> | ||
</Steps> | ||
|
||
<Files> | ||
<Input name="input">Data.csv</Input> | ||
<Input name="pk">arma_30yr.pk</Input> | ||
</Files> | ||
|
||
<DataObjects> | ||
<PointSet name="placeholder"> | ||
<Input>scaling</Input> | ||
<Output>OutputPlaceHolder</Output> | ||
</PointSet> | ||
<HistorySet name="input"> | ||
<Input>scaling, Year</Input> | ||
<Output>Signal, Time</Output> | ||
<options> | ||
<pivotParameter>Time</pivotParameter> | ||
</options> | ||
</HistorySet> | ||
<DataSet name="synthetic"> | ||
<Input>scaling</Input> | ||
<Output>Signal</Output> | ||
<Index var="Time">Signal</Index> | ||
<Index var="Year">Signal</Index> | ||
</DataSet> | ||
<DataSet name="meta"/> | ||
</DataObjects> | ||
|
||
<Models> | ||
<ROM name="arma" subType="ARMA"> | ||
<Target>Signal, Time</Target> | ||
<Features>scaling</Features> | ||
<pivotParameter>Time</pivotParameter> | ||
<P>0</P> | ||
<Q>0</Q> | ||
<Fourier>10</Fourier> | ||
<Segment grouping="interpolate"> | ||
<macroParameter>Year</macroParameter> | ||
<Classifier class="Models" type="PostProcessor">classifier</Classifier> | ||
<subspace divisions="1">Time</subspace> | ||
</Segment> | ||
<reseedCopies>False</reseedCopies> | ||
<seed>42</seed> | ||
</ROM> | ||
<PostProcessor name="classifier" subType="DataMining"> | ||
<KDD labelFeature="labels" lib="SciKitLearn"> | ||
<Features>Signal</Features> | ||
<SKLtype>cluster|KMeans</SKLtype> | ||
<n_clusters>1</n_clusters> | ||
</KDD> | ||
</PostProcessor> | ||
</Models> | ||
|
||
<Metrics> | ||
<Metric name="metric" subType="SKL"> | ||
<metricType>regression|mean_squared_error</metricType> | ||
</Metric> | ||
</Metrics> | ||
|
||
<OutStreams> | ||
<Print name="romMeta"> | ||
<type>csv</type> | ||
<source>meta</source> | ||
</Print> | ||
<Print name="synthetic"> | ||
<type>csv</type> | ||
<source>synthetic</source> | ||
</Print> | ||
</OutStreams> | ||
|
||
<Samplers> | ||
<MonteCarlo name="mc"> | ||
<samplerInit> | ||
<limit>1</limit> | ||
<initialSeed>42</initialSeed> | ||
</samplerInit> | ||
<constant name="scaling">1.0</constant> | ||
</MonteCarlo> | ||
</Samplers> | ||
|
||
</Simulation> |
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
Binary file not shown.
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
6 changes: 3 additions & 3 deletions
6
tests/integration_tests/mechanics/cashflows/gold/Runs_o/sweep.csv
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
source_capacity,sink_capacity,mean_NPV,std_NPV,med_NPV,max_NPV,min_NPV,perc_5_NPV,perc_95_NPV,samp_NPV,var_NPV,prefix,ProbabilityWeight-source_capacity,PointProbability,ProbabilityWeight | ||
1.0,-2.0,3894.83025031,0.0,3894.83025031,3894.83025031,3894.83025031,3894.83025031,3894.83025031,3.0,0.0,1,0.5,1.0,0.5 | ||
2.0,-2.0,7791.81176253,1.11389897155e-12,7791.81176253,7791.81176253,7791.81176253,7791.81176253,7791.81176253,3.0,1.24077091883e-24,2,0.5,1.0,0.5 | ||
source_capacity,sink_capacity,mean_NPV,std_NPV,med_NPV,max_NPV,min_NPV,perc_5_NPV,perc_95_NPV,samp_NPV,var_NPV,ProbabilityWeight-source_capacity,ProbabilityWeight,prefix,PointProbability | ||
1.0,-2.0,3894.83025031,0.0,3894.83025031,3894.83025031,3894.83025031,3894.83025031,3894.83025031,3.0,0.0,0.5,0.5,1,1.0 | ||
2.0,-2.0,7791.81176253,1.11389897155e-12,7791.81176253,7791.81176253,7791.81176253,7791.81176253,7791.81176253,3.0,1.24077091883e-24,0.5,0.5,2,1.0 |
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