Skip to content

Commit

Permalink
add xsd for Metropolis
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcj05 committed Jul 6, 2020
1 parent a0d2813 commit 5d61ba4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions developer_tools/XSDSchemas/Samplers.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<xsd:element name="AdaptiveSobol" type="AdaptiveSobolSampler" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="EnsembleForward" type="EnsembleForwardSampler" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="AdaptiveMonteCarlo" type="AdaptiveMCSampler" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Metropolis" type="MetropolisSampler" minOccurs="0" maxOccurs="unbounded"/>

</xsd:sequence>
<xsd:attribute name="verbosity" type="verbosityAttr" default="all"/>
Expand Down Expand Up @@ -525,4 +526,40 @@
<xsd:attribute name="mode" type="modeAttr" default="post"/>
<xsd:attribute name="updateGrid" type="RavenBool" default="true"/>
</xsd:complexType>

<!-- *********************************************************************** -->
<!-- Markov Chain Monte Carlo -->
<!-- *********************************************************************** -->
<xsd:complexType name="metropolisInitType">
<xsd:all>
<xsd:element name="limit" type="xsd:string" minOccurs="0"/>
<xsd:element name="initialSeed" type="xsd:integer" minOccurs="0"/>
<xsd:element name="tune" type="xsd:string" minOccurs="0"/>
</xsd:all>
</xsd:complexType>

<xsd:complexType name="metropolisVariableType">
<xsd:complexContent>
<xsd:extension base="variableType">
<xsd:sequence>
<xsd:element name="initial" type="xsd:string" minOccurs="0"/>
<xsd:element name="proposal" type="AssemblerObjectType" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

<xsd:complexType name="MetropolisSampler">
<xsd:sequence>
<xsd:element name="samplerInit" type="metropolisInitType" minOccurs="1"/>
<xsd:element name="likelihood" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="variable" type="metropolisVariableType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="TargetEvaluation" type="AssemblerObjectType" minOccurs="1" maxOccurs="1"/>
<xsd:element name="constant" type="constantVarType" minOccurs="0" maxOccurs='unbounded'/>
<xsd:element name="Restart" type="AssemblerObjectType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="restartTolerance" type="xsd:float" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="verbosity" type="verbosityAttr" default="all"/>
</xsd:complexType>
</xsd:schema>

0 comments on commit 5d61ba4

Please sign in to comment.