i use yahoo's finance csv and change to binary number and separate each one and zero with a space
and then save as hmm-input and run example command below however the output number are not exactly the future and even not a decimal number mahout/bin/mahout baumwelch -i hmm-input -o hmm-model -nh 3 -no 4 -e .0001 -m 1000 mahout/bin/mahout hmmpredict -m hmm-model -o hmm-predictions -l 216 f = open('/home/martin/Downloads/hmm-predictions2','a') with open('/home/martin/Downloads/hmm-predictions', 'r') as content_file: content = content_file.read() allones = content.split(" ") counter = 0 for eachone in allones: print(eachone) f.write(eachone) counter = counter + 1 if counter == 8: counter = 0 print(' ') f.write(' ')