Bayonet Object is the base object for all the essential objects used in Bayonet System. They are the basic components of managing and constructing networks.
Here are the bayonet objects used mainly in Bayonet System.
Check out the GUI operations related to these objects in the chapter, GUI Help.
A project is a starting point for constructing the network of Bayonet System. All the rest of the bayonet objects are included in the project.
<project id="1" name="Project0" type="BNProject"> <path value="C:\Bayonet\newbn0806\projects\Project0" /> <description value="" /> </project>
Where
The network commands related to project are,
Action | Command | Arguments |
NewProject To create a new project. |
NewProject <name> / <type> / <path> | name – The project name
type – The project type path – The project path for the project directory |
LoadProject To load an existing project from the file. |
LoadProject <path> | path – The project path for the project directory |
SaveProject To save a project to file. |
SaveProject <name> | name – The project name to be saved |
CloseProject To close the project. |
CloseProject <name> | name – The project name to be closed |
SetProject To set the specified project to current project. |
SetProject <name> | name – The project name to be set as the current project |
ShowProjectInfo To display the current projects information. |
ShowProjectInfo <name> | name – The project name that the information to be shown |
A Node is the most important bayonet object in Bayonet Network System. A node acts as either input or output entity of the network. Also it stores the information of the network structure as well as the conditional probability.
<node id="2" name="Node1" type="DNode"> <dimension value="1" /> <description value="" /> <display x="55" y="226" width="54" height="24" /> </node>
Where,
The network commands related to node are,
Action | Command | Arguments |
CreateNode To create a node on a project. |
CreateNode <project> / <node1> : <type1>,<node2> : <type2>... | project - The project name (Note: "." means the current project)
node n - The node name (Note: "." means the current selected node) type n - The node type |
RemoveNode To remove a node from a project. |
RemoveNode <project> / <node1>,<node2>... | project - The project name (Note: "." means the current project)
node n - The node name (Note: "." means the current selected node) type n - The node type |
SetNode To set the specified node as current node. |
SetNode <project> / <node1>,<node2>... | project - The project name (Note: "." means the current project)
node n - The node name (Note: "." means the current selected node) |
SetNodeProp To set the node property. |
SetNodeProp <project> / <node> / <attribute1> : <value1>,<attribute2> : <value2>... | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node(s)) attribute n - The attribute value n - The value |
ShowNodeInfo To display the node information. |
ShowNodeInfo <project> / <node> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) |
ConnectNodes To connect nodes together. |
ConnectNodes <project> / <sNode1>,<sNode2>,<sNodes3>...../<eNode> | project - The project name (Note: "." means the current project)
sNode - The starting node (Note: "." means the current selected node(s)) eNode - The ending node, the node to be connected by the starting node(s) |
RemoveLink To remove links from the current tree. |
RemoveLink <project> / <node> / <parent1>,<parent2>,... | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) parent n - The parents |
State is an object that represents a probabilistic variable. There must be at least two states in the node.
This is the example for DState,
<state id="-1" name="s0" type="DState"> <value value="1.0" /> </state>
Where,
Action | Command | Arguments |
AddState To add state(s) to the node. |
AddState <project> / <node> / <state1>,<state2>... | project - The project name (Note: "." means the current project)
node n - The node name (Note: "." means the current selected node) state n - The state name |
DeleteState To delete(s) state from the node. |
DeleteState <project> / <node> / <number> | project - The project name (Note: "." means the current project)
node n - The node name (Note: "." means the current selected node) number - The number of states to be deleted |
NormaliseState To normalise states. |
NormaliseState <project> / <node> / <state1>,<state2>... | project - The project name (Note: "." means the current project)
node n - The node name (Note: "." means the current selected node) state n - The state name |
UpdateState To update the states status for the current node. |
UpdateState <project> / <node> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) |
A Tree represents the structure of a node. It contains the information of both parent node(s) and child node. A node can have more than 1 tree(s) that allows a node to represents many kinds of bayonet network structure.
This is the example for BNTree
<tree id="1" name="Tree0" type="BNTree"> <parents value="Node0" /> <child value="Node1" /> </tree>
The network commands related to state
Action | Command | Arguments |
AddTree To add tree(s) to a specified node. |
AddTree <project> / <node> / <tree1> : <type1>,<tree2> : <type2>... | project - The project name (Note: "." means the current project)
node n - The node name (Note: "." means the current selected node) tree n - The tree name type n - The tree type |
CloneTree To clone a tree to a specified node. |
CloneTree <project> / <node> / <tree1> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name |
RemoveTree To remove tree(s) from a node. |
RemoveTree <project> / <node> / <tree1>,<tree2>... | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree n - The tree name |
PrevTree Set the previous tree to the current tree. |
RemoveTree <project> / <node> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) |
NextTree Set the next tree to the current tree. |
NextTree <project> / <node> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) |
SetTree Set the specified tree to the current tree. |
SetTree <project> / <node> / <tree1>,<tree2>... | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree n - The tree name |
SetTreeProp Set the tree properties. |
SetTreeProp <project> / <node> / <tree1> / <attribute1><value1>,/<attribute2><value2>:... | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree n - The tree name attribute n - The attribute value n - The value |
ShowTreeInfo Set the tree properties. |
ShowTreeInfo <project> / <node> / <tree1> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name |
Tree selector consists of tree-selecting algorithm that calculates the best value and selects the best tree.
The network commands related to state
Action | Command | Arguments |
ActivateTreeSelector To activate the tree selecting algorithm for the current network. |
ActivateTreeSelector <project> / <node> / <treeselector>... | project - The project name (Note: "." means the current project)
node n - The node name (Note: "." means the current selected node) treeselector - The treeselector type |
CPT(Conditional Probability Table) represents conditional probabilities in two-dimensional table format.
This is the example for BNCPT
<cpt type="BNCPT" value="0.5 0.5|0.5 0.5" /> </cpt>
Where,
The network commands related to CPT
Action | Command | Arguments |
CreateCPT To create the CPT for the current tree. |
CreateCPT <project> / <node> / <tree1> / <CPTType>... | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name CPTType - The CPT type |
SetCPTValue To set CPT value for the current CPT. |
SetCPTValue <project> / <node> / <tree> / <col1> : <value1>,<col2> : <value2>... | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name col n - The column row n - The row value n - The value |
CPA2CPT Pass the CPA training result to CPT. |
CPA2CPT <project> / <node> / <tree> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) |
DST2CPT Pass the DST counting result to CPT. |
DST2CPT <project> / <node> / <tree> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) |
NormaliseCPT Normalize the CPT value. |
NormaliseCPT <project> / <node> / <tree> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) |
CPA(Conditional Probability Approximation) represents a Learning Module for Data training.
This is the example for NeuralNetwork
<cpa type="NeuralNetwork"> <insize value="1.0" /> <momentum value="0.0050" /> <efficiency value="0.01" /> <hidden value="10.0" /> <outsize value="2.0" /> <error value="0.489 0.474 0.460 0.446 0.432 0.418 " /> </cpa>
Where
The network commands related to CPA
Action | Command | Arguments |
CreateCPA To create the CPT for the current tree. |
CreateCPA <project> / <node> / <tree> / <type> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) type - The CPA type |
RemoveCPA To remove the CPA for the current tree. |
RemoveCPA <project> / <node> / <tree> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) |
LearnApprox To remove the CPA for the current tree. |
LearnApprox <project> / <node> / <tree> / <filepath> / <iteration> / <error> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) filepath - The path of the file being trained tree - The iteration error - The error |
SetCPAProp To set the CPA property. |
SetCPAProp <project> / <node> / <tree> / <attribute1>?<value1>,<attribute2>?<value2> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) attribute n - The attribute value n - The value |
SetCPA To set the CPA attributes. |
SetCPA <project> / <node> / <tree> / <attribute1> : <value1> / <attribute2> : <value2> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) attribute n - The attribute value n - The value |
UpdateCPA To update the CPA. |
UpdateCPA <project> / <node> / <tree> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) |
DST(Data Set Table) represents the data from the data source (like DB, file etc)in CPT format.
This is an example for DataBaseDST.
<dst type="DataBaseDST"> <driver value="org.postgresql.Driver" /> <url value="jdbc:postgresql://hanka2:5432/jijo2db" /> <user value="bayonet" /> <password value="bayonet" /> <select value="*" /> <from value="" /> <condition value="" /> <child value="" /> <parent value="" /> </dst>
Where,
The network commands related to DST
Action | Command | Arguments |
CreateDST To create the DST for the current tree. |
CreateDST <project> / <node> / <tree> / <type> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) type - The DST type |
RemoveDST To remove the DST from the current tree. |
RemoveDST <project> / <node> / <tree> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) |
DST2CPT Pass the DST counting result to CPT. |
DST2CPT <project> / <node> / <tree> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) |
SetDSTProp To set the DST property. |
SetDSTProp <project> / <node> / <tree> / <attribute1> : <value1> / <attribute2> : <value2> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) attribute n - The attribute value n - The value |
UpdateDST To update the DST. |
UpdateDST <project> / <node> / <tree> / <child1> : <data1>,<child2> : <data12>... / <parent1> : <data1>,<parent2> : <data2>... / <source> | project - The project name (Note: "." means the current project)
node - The node name (Note: "." means the current selected node) tree - The tree name (Note: "." Means the current selected tree) child n - The child parent n - The parent data n - The data for the child or parent source - The data source |