create a shuffleable datastore
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
FERNANDO CALVO RODRIGUEZ
el 6 de Mzo. de 2023
Comentada: Philip Brown
el 4 de Mayo de 2023
Good morning to all!
I am developing a neural network with deep network designer and for this I need a datastore. I have hundreds of numerical data in an excel table and I have converted it to a csv, which I transformed into a datastore with the following code:
DataTableTrain = tabularTextDatastore("TableTrain_Borrar.csv","VariableNamingRule","preserve");
NewDataTableTrain = transform(DataTableTrain, @(x) [cellfun(@transpose,mat2cell(x{:,1:end-1},ones(1,numTrain)),...
'UniformOutput',false) , mat2cell((x{:,end}),ones(1,numTrain))]);
When I write the function "isShuffleable" it throws a value 0 since it is not, so I don't explain how to create a datastore of this type. I have tried with the function "shuffle" but it tells me that all the cells must be shuffleable. I think that a datastore that is shuffleable has several advantages over one that is not, that's why I insist.
Thank you very much!
0 comentarios
Respuesta aceptada
Askic V
el 6 de Mzo. de 2023
A different approach would be to read csv file in a table and create datastore from the table.
this datastore issubsetable and therefore shuffleable:
T = readtable("airlinesmall.csv");
ds = arrayDatastore(T,"OutputType","same")
isSubsettable(ds)
isShuffleable(ds)
7 comentarios
Askic V
el 9 de Mzo. de 2023
Great, thank you. It will be useful for anyone who has similar problem.
Philip Brown
el 4 de Mayo de 2023
Were you able to make use of this doc page: https://uk.mathworks.com/help/deeplearning/ug/import-data-into-deep-network-designer.html - was it any help?
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with Statistics and Machine Learning Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!