本文整理汇总了Python中pyclustering.nnet.network函数的典型用法代码示例。如果您正苦于以下问题:Python network函数的具体用法?Python network怎么用?Python network使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了network函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: templateAssertRaises
def templateAssertRaises(self, size, type_conn, height, width):
try:
network(size, type_conn, height, width);
assert(False); # assert must occure
except:
pass;
示例2: testAllToAllConnectionsListRepresentation
def testAllToAllConnectionsListRepresentation(self):
net = network(10, type_conn = conn_type.ALL_TO_ALL, conn_represent = conn_represent.LIST);
self.templateAllToAllConnectionsTest(net);
示例3: testAllToAllConnections
def testAllToAllConnections(self):
# Check creation of coupling between oscillator in all-to-all case
net = network(10, type_conn = conn_type.ALL_TO_ALL);
self.templateAllToAllConnectionsTest(net);
示例4: testGridFourConnectionsListRepresentation
def testGridFourConnectionsListRepresentation(self):
# Check creation of coupling between oscillator in grid with four neighbors case
net = network(25, type_conn = conn_type.GRID_FOUR, conn_represent = conn_represent.LIST);
self.templateGridFourConnectionsTest(net);
示例5: testAllToAll25Connections
def testAllToAll25Connections(self):
net = network(25, type_conn = conn_type.ALL_TO_ALL);
self.templateAllToAllConnectionsTest(net);
示例6: testBidirListConnections
def testBidirListConnections(self):
# Check creation of coupling between oscillator in bidirectional list case
net = network(10, type_conn = conn_type.LIST_BIDIR);
self.templateBidirListConnectionsTest(net);
示例7: testGridFourConnectionsListRepresentation
def testGridFourConnectionsListRepresentation(self):
net = network(25, type_conn = conn_type.GRID_FOUR, conn_repr = conn_represent.LIST);
self.templateGridFourConnectionsTest(net);
示例8: testGridEightConnectionsRectange10MatrixRepresentation
def testGridEightConnectionsRectange10MatrixRepresentation(self):
net = network(10, type_conn = conn_type.GRID_EIGHT, conn_repr = conn_represent.MATRIX, height = 1, width = 10);
self.templateGridEightConnectionsTest(net);
net = network(10, type_conn = conn_type.GRID_EIGHT, conn_repr = conn_represent.MATRIX, height = 10, width = 1);
self.templateGridEightConnectionsTest(net);
示例9: testGridEightConnectionsRectangeList1Representation
def testGridEightConnectionsRectangeList1Representation(self):
net = network(1, type_conn = conn_type.GRID_EIGHT, conn_repr = conn_represent.LIST, height = 1, width = 1);
self.templateGridEightConnectionsTest(net);
net = network(1, type_conn = conn_type.GRID_EIGHT, conn_repr = conn_represent.LIST, height = 1, width = 1);
self.templateGridEightConnectionsTest(net);
示例10: testGridEightConnections1MatrixRepresentation
def testGridEightConnections1MatrixRepresentation(self):
net = network(1, type_conn = conn_type.GRID_EIGHT);
self.templateGridEightConnectionsTest(net);
示例11: testGridEightConnections1ListRepresentation
def testGridEightConnections1ListRepresentation(self):
net = network(1, type_conn = conn_type.GRID_EIGHT, conn_repr = conn_represent.LIST);
self.templateGridEightConnectionsTest(net);
示例12: testGridFourConnectionsRectange1MatrixRepresentation
def testGridFourConnectionsRectange1MatrixRepresentation(self):
net = network(1, type_conn = conn_type.GRID_FOUR, conn_repr = conn_represent.MATRIX, height = 1, width = 1);
self.templateGridFourConnectionsTest(net);
net = network(1, type_conn = conn_type.GRID_FOUR, conn_repr = conn_represent.MATRIX, height = 1, width = 1);
self.templateGridFourConnectionsTest(net);
示例13: testGridFourConnectionsRectangeList10Representation
def testGridFourConnectionsRectangeList10Representation(self):
net = network(10, type_conn = conn_type.GRID_FOUR, conn_repr = conn_represent.LIST, height = 1, width = 10);
self.templateGridFourConnectionsTest(net);
net = network(10, type_conn = conn_type.GRID_FOUR, conn_repr = conn_represent.LIST, height = 10, width = 1);
self.templateGridFourConnectionsTest(net);
示例14: testGridFourConnections1MatrixRepresentation
def testGridFourConnections1MatrixRepresentation(self):
net = network(1, type_conn = conn_type.GRID_FOUR);
self.templateGridFourConnectionsTest(net);
示例15: testNoneConnections
def testNoneConnections(self):
net = network(10, type_conn = conn_type.NONE);
self.templateNoneConnectionsTest(net);