Turning a column to months into number equivalent
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Antonio Lorenzo Sahagun
el 8 de Sept. de 2021
Respondida: KSSV
el 8 de Sept. de 2021
Hey everyone!
I came across a data set with 8631 rows and 19 cloumns to use as the training set for a prediction model using neural networking. One of the columns is filled with months in short versions (Jan, Feb, Mar, Apr,..., Dec). What would be the most efficient way of converting this into their numerical equivalent for me to put into the model? Just need to convert this one column, will using grp2idx work expiecially when I put in the test data set for the actual prediction? Thanks in advanced!
0 comentarios
Respuesta aceptada
KSSV
el 8 de Sept. de 2021
a = {'Apr', 'Jan','Feb', 'Apr', 'Jan'} ;
iwant = findgroups(a) ;
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Deep 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!