Turning a column to months into number equivalent

1 回表示 (過去 30 日間)
Antonio Lorenzo Sahagun
Antonio Lorenzo Sahagun 2021 年 9 月 8 日
回答済み: KSSV 2021 年 9 月 8 日
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!

採用された回答

KSSV
KSSV 2021 年 9 月 8 日
a = {'Apr', 'Jan','Feb', 'Apr', 'Jan'} ;
iwant = findgroups(a) ;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by