views:

25

answers:

1

Need 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?

+1  A: 

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

jathanism