Skip to content

Commit

Permalink
Merging some changes made up on gitub.com
Browse files Browse the repository at this point in the history
Merge branch 'master' into develop
  • Loading branch information
Don Dini committed Dec 16, 2016
2 parents 7b028b0 + 2968dce commit 4097136
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# How to contribute

Our contributing policy will be documented here.
19 changes: 19 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
The MIT License (MIT)

Copyright <year> AT&T Intellectual Property. All other rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ An example of using this library to accomplish this specific application is cont
~~~~
from belief_network_lib import network
nodeA = network.Node([0,1], id="A")
nodeB = network.Node([0,1], id="B")
nodeA = network.Node(id="A")
nodeB = network.Node(id="B")
nodeA.cpt = {None: [0.4, 0.6]} #Node A has no parents, thus the key in the conditional probability table is None
Expand All @@ -30,7 +30,7 @@ nodeA.add_child(nodeB)
nodeB.add_parent(nodeA)
nodes = [nodeA, nodeB]
aBN = network.BeliefNetwork(nodes)
aBN = network.BeliefNetwork(nodes) #Nodes must be in topologically sorted order.
samples = [aBN.sample() for x in range(1000)]
~~~~
Expand Down

0 comments on commit 4097136

Please sign in to comment.