开发者

need Advice on ID3 implementation and Datatype to be used

Nee开发者_JAVA百科d advice: I am implementing ID3 algorithm in Machine Learning. I am using dictionary to read the training file and store into. But as I am going forward I am understanding that in dictionary v dont have fixed places for each key,value pair as in list or array. Now I might have problem in getting the position of the final attribute and passing it dynamically to other functions. Should i change to some other data structure?


Python 2.7 and 3.x have an OrderedDict that could be an option for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜