コード例 #1
0
ファイル: cds_unit_test.py プロジェクト: cooledge/nn
  def check_current_joins_three_two_edges_case1_next_2_l1_cN(self, l0_col_second, l0_col, l1_col):
    next_row = 2

    cds = CDS(self.session, 3, 2)
    self.session.run(tf.global_variables_initializer())
    cds.initialize(["l0_c0", "l0_c1", "l0_c2"])
    cds.joins([(0, l0_col)], (1, l1_col), "l1_c0")
    cds.joins([(0, l0_col_second), (1, l1_col)], (next_row, 0), "next")
    return cds
コード例 #2
0
ファイル: cds_unit_test.py プロジェクト: cooledge/nn
 def check_current_joins_three_one_edge_case5(self, next_row):
   cds = CDS(self.session, 3, 2)
   self.session.run(tf.global_variables_initializer())
   cds.initialize(["l0_c0", "l0_c1", "l0_c2"])
   cds.joins([(0, 1)], (next_row, 1), "next")
   self.assertEqual([((0, 0), "l0_c0"), ((next_row, 1), "next"), ((0, 2), "l0_c2")], cds.current())
コード例 #3
0
ファイル: cds_unit_test.py プロジェクト: cooledge/nn
 def check_current_joins_three_three_edges_case1(self, to_column):
   cds = CDS(self.session, 3, 2)
   self.session.run(tf.global_variables_initializer())
   cds.initialize(["l0_c0", "l0_c1", "l0_c2"])
   cds.joins([(0, 0), (0, 1), (0, 2)], (1, to_column), "next")
   self.assertEqual([((1, to_column), "next")], cds.current())