示例#1
0
 def test_read_sparse_binary_file(self):
     filename = os.path.join(os.path.dirname(__file__),
                             '../.data/dorothea/dorothea_train.data')
     data = competition_c_functions.read_sparse_binary_file(
         filename, 800, 100000)
     self.assertEqual(data.nnz, 727760)
     data = competition_c_functions.read_sparse_binary_file(
         filename, 800, 100000, max_memory_in_mb=0.01)
     self.assertEqual(data.nnz, 8192)
 def test_read_sparse_binary_file(self):
     filename = os.path.join(os.path.dirname(__file__),
                             '../.data/dorothea/dorothea_train.data')
     data = competition_c_functions.read_sparse_binary_file(
         filename, 800, 100000)
     self.assertEqual(data.nnz, 727760)
     data = competition_c_functions.read_sparse_binary_file(
         filename, 800, 100000, max_memory_in_mb=0.01)
     self.assertEqual(data.nnz, 8192)
示例#3
0
 def test_read_sparse_binary_file(self):
     if self.travis:
         self.skipTest('Does not work on travis-ci and will be removed in '
                       'the near future.')
     filename = os.path.join(os.path.dirname(__file__),
                             '../.data/dorothea/dorothea_train.data')
     data = competition_c_functions.read_sparse_binary_file(
         filename, 800, 100000)
     self.assertEqual(data.nnz, 727760)
     data = competition_c_functions.read_sparse_binary_file(
         filename, 800, 100000, max_memory_in_mb=0.01)
     self.assertEqual(data.nnz, 8192)
    def test_read_sparse_binary_file(self):
        filename = os.path.join(os.path.dirname(__file__),
                                "../.data/dorothea/dorothea_train.data")
        data = competition_c_functions.read_sparse_binary_file(
            filename, 800, 100000)

        print data.indices
        print data.indptr
        print data.shape
        print data
 def test_read_sparse_binary_file(self):
     filename = os.path.join(os.path.dirname(__file__),
                             '../.data/dorothea/dorothea_train.data')
     data = competition_c_functions.read_sparse_binary_file(filename, 800,
                                                            100000)