Turning a column to months into number equivalent

1 visualización (últimos 30 días)
Antonio Lorenzo Sahagun
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!

Respuesta aceptada

KSSV
KSSV el 8 de Sept. de 2021
a = {'Apr', 'Jan','Feb', 'Apr', 'Jan'} ;
iwant = findgroups(a) ;

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by