There are many reasons you may be getting a bad prediction. One major reason could be that the data is not predictable.
By the way, you can run the exact experiment you're trying with a very simple Menorah script: https://gist.github.com/rhyolight/d9342c4f0ada961ee406 You just need to "pip install menorah" first. When I ran, I got the following from the swarm: Field Contributions: { u'chicago-beach-water-quality Calumet Beach turbidity': 13.665743305632503, u'chicago-beach-water-quality Calumet Beach water_temperature': 10.618651892890124, u'chicago-beach-water-quality Calumet Beach wave_height': 4.709141274238225, u'chicago-beach-water-quality Calumet Beach wave_period': 16.712834718374882, u'timestamp_dayOfWeek': 15.050784856879035, u'timestamp_timeOfDay': -11.04578340758864, u'timestamp_weekend': 0.0} These numbers are rather low, which tells us that wave_period may not be very predictable. --------- Matt Taylor OS Community Flag-Bearer Numenta On Tue, Nov 10, 2015 at 5:39 AM, Weiru Zeng <[email protected]> wrote: > Hi nupic: > > Recent I used the nupic to make prediction, and I attached my data and the > .json file with this email. Run the swarming with my code and data, you > will find the low constribution of the field, and it makes a bad prediction. > My question is below: > > First: Is the bad predicion caused by my .json file? > Second: The low contribution of all the fields means that the feature in the > data is not enough to make a good prediction. Is that right? > Last: This is about the .json file. I found that there is a item named > "aggregation" in some other .json file, the detail is below: > > "aggregation": { > "hours": 1, > "microseconds": 0, > "seconds": 0, > "fields": [ > [ > "consumption", > "sum" > ], > [ > "gym", > "first" > ], > [ > "timestamp", > "first" > ] > ], > "weeks": 0, > "months": 0, > "minutes": 0, > "days": 0, > "milliseconds": 0, > "years": 0 > } > > I atempted to set it, but fieled. I want to know what's the means of the > time and the fields?. When should I set the time to 1, and how to set the > "fields"?. > > Thanks in advance! > > Weiru Zeng
