mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lee Ho Yeung <jobmatt...@gmail.com>
Subject hmm prediction can not output normal character if predict binary
Date Tue, 21 Jun 2016 07:30:18 GMT
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(' ')

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message