Fixed the dataset loading so that it returns a correctly named Dataset.
This commit is contained in:
parent
f612dda72f
commit
33c51505c4
|
@ -473,11 +473,11 @@ def read_ftsv(fd):
|
|||
|
||||
# Create dataset of specified type
|
||||
if type == 'category':
|
||||
ds = CategoryDataset(matrix, dims)
|
||||
ds = CategoryDataset(matrix, dims, name)
|
||||
elif type == 'network':
|
||||
ds = GraphDataset(matrix, dims)
|
||||
ds = GraphDataset(matrix, dims, name)
|
||||
else:
|
||||
ds = Dataset(matrix, dims)
|
||||
ds = Dataset(matrix, dims, name)
|
||||
|
||||
return ds
|
||||
|
||||
|
|
Reference in New Issue