当前位置: 首页>>代码示例>>Python>>正文


Python nnet.network函数代码示例

本文整理汇总了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;
开发者ID:annoviko,项目名称:pyclustering,代码行数:7,代码来源:ut_nnet.py

示例2: testAllToAllConnectionsListRepresentation

 def testAllToAllConnectionsListRepresentation(self):
     net = network(10, type_conn = conn_type.ALL_TO_ALL, conn_represent = conn_represent.LIST);
     self.templateAllToAllConnectionsTest(net);        
开发者ID:alishakiba,项目名称:pyclustering,代码行数:3,代码来源:nnet_tests.py

示例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);
开发者ID:alishakiba,项目名称:pyclustering,代码行数:4,代码来源:nnet_tests.py

示例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);
开发者ID:alishakiba,项目名称:pyclustering,代码行数:4,代码来源:nnet_tests.py

示例5: testAllToAll25Connections

 def testAllToAll25Connections(self):
     net = network(25, type_conn = conn_type.ALL_TO_ALL);
     self.templateAllToAllConnectionsTest(net);
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:ut_nnet.py

示例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);
开发者ID:alishakiba,项目名称:pyclustering,代码行数:4,代码来源:nnet_tests.py

示例7: testGridFourConnectionsListRepresentation

 def testGridFourConnectionsListRepresentation(self):
     net = network(25, type_conn = conn_type.GRID_FOUR, conn_repr = conn_represent.LIST);
     self.templateGridFourConnectionsTest(net);
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:ut_nnet.py

示例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);
开发者ID:annoviko,项目名称:pyclustering,代码行数:6,代码来源:ut_nnet.py

示例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);
开发者ID:annoviko,项目名称:pyclustering,代码行数:6,代码来源:ut_nnet.py

示例10: testGridEightConnections1MatrixRepresentation

 def testGridEightConnections1MatrixRepresentation(self):
     net = network(1, type_conn = conn_type.GRID_EIGHT);
     self.templateGridEightConnectionsTest(net);
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:ut_nnet.py

示例11: testGridEightConnections1ListRepresentation

 def testGridEightConnections1ListRepresentation(self):
     net = network(1, type_conn = conn_type.GRID_EIGHT, conn_repr = conn_represent.LIST);
     self.templateGridEightConnectionsTest(net);
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:ut_nnet.py

示例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);
开发者ID:annoviko,项目名称:pyclustering,代码行数:6,代码来源:ut_nnet.py

示例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);
开发者ID:annoviko,项目名称:pyclustering,代码行数:6,代码来源:ut_nnet.py

示例14: testGridFourConnections1MatrixRepresentation

 def testGridFourConnections1MatrixRepresentation(self):
     net = network(1, type_conn = conn_type.GRID_FOUR);
     self.templateGridFourConnectionsTest(net);
开发者ID:annoviko,项目名称:pyclustering,代码行数:3,代码来源:ut_nnet.py

示例15: testNoneConnections

 def testNoneConnections(self):
     net = network(10, type_conn = conn_type.NONE);
     self.templateNoneConnectionsTest(net);
开发者ID:alishakiba,项目名称:pyclustering,代码行数:3,代码来源:nnet_tests.py


注:本文中的pyclustering.nnet.network函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。