Perhaps I'm misunderstanding confluence.py, but I thought it was taking the 
last updated value of the slower stream, i.e. the input becomes,


t1 A1 B1

t2 A2 B1

t3 A3 B1

t4 A4 B2

t5 A5 B2

t6 A6 B2

t7 A7 B3

etc.


Whereas what I'm thinking of is,

t1 A1 B1

t2 A2 ignore

t3 A3 ignore

t4 A4 B2

t5 A5 ignore

t6 A6 ignore

t7 A7 B3

etc.


Phil.


________________________________
From: nupic <[email protected]> on behalf of Matthew Taylor 
<[email protected]>
Sent: Wednesday, 6 April 2016 7:32 PM
To: [email protected]
Subject: Re: Multi-input and multi-level models

Yes, that is what menorah does in the "Confluence" class. It merges multiple 
Rivers into one stream of data.

https://github.com/nupic-community/menorah/blob/master/menorah/confluence.py
[https://avatars2.githubusercontent.com/u/8866221?v=3&s=400]<https://github.com/nupic-community/menorah/blob/master/menorah/confluence.py>

nupic-community/menorah<https://github.com/nupic-community/menorah/blob/master/menorah/confluence.py>
github.com
menorah - Menorah is a NuPIC experiment framework for River View.



---------
Matt Taylor
OS Community Flag-Bearer
Numenta

On Wed, Apr 6, 2016 at 11:39 AM, Phil Goddard 
<[email protected]<mailto:[email protected]>> wrote:

Hi Matt,


these examples are useful, particularly for showing input data that is all 
dependent on the same time stamp.


However, is it possible to input multiple series where each is dependent on a 
different time?

i.e. signal A arrives every 1 minute, but signal B arrives every 5 minutes, etc?


Thanks

Phil.


________________________________
From: nupic 
<[email protected]<mailto:[email protected]>> on 
behalf of Matthew Taylor <[email protected]<mailto:[email protected]>>
Sent: Monday, 28 March 2016 3:13 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: Multi-input and multi-level models

Phil, I have an example project that will converge multiple River View data 
streams into one model properly with NuPIC. It is called Menorah, check it out 
here: https://github.com/nupic-community/menorah
[https://avatars2.githubusercontent.com/u/8866221?v=3&s=400]<https://github.com/nupic-community/menorah>

nupic-community/menorah<https://github.com/nupic-community/menorah>
github.com<http://github.com>
menorah - Menorah is a NuPIC experiment framework for River View.


If nothing else, it is an example of converging disparate data sources into a 
multi-field model.

---------
Matt Taylor
OS Community Flag-Bearer
Numenta

On Mon, Mar 28, 2016 at 7:34 AM, Phil Goddard 
<[email protected]<mailto:[email protected]>> wrote:

Hi Marcus,


thanks for the links, I'll take a look at them shortly.


In terms of the hotgym example, I think of that as really being 1 time series 
input rather than multiple inputs.


One thing I need is to be able to input multiple time series'.

In particular, inputs that arrive at different time intervals.

(The inputs can't be handled by aligning them with just one time vector - each 
input needs it's own time vector.)


Thanks

Phil.

________________________________
From: nupic 
<[email protected]<mailto:[email protected]>> on 
behalf of Marcus Lewis <[email protected]<mailto:[email protected]>>
Sent: Monday, 28 March 2016 5:49 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: Multi-input and multi-level models

Hi Phil,

Multiple inputs are pretty easy with the OPF (i.e. the CLAModel). For example, 
hotgym<https://github.com/numenta/nupic/blob/master/examples/opf/clients/hotgym/simple/model_params.py#L66>
 uses the timestamp and the current power consumption.

For multi-level models, you'll probably want to use the Network API. Subutai 
gave a recent talk: https://www.youtube.com/watch?v=g9yS9zFt3dM . Here's a demo 
that uses multiple levels: 
https://github.com/numenta/nupic/blob/master/examples/network/hierarchy_network_demo.py

Strictly speaking, from the Network API's perspective, the CLAModel only has 
one input, since it 
concatenates<https://github.com/numenta/nupic/blob/master/src/nupic/frameworks/opf/clamodel.py#L1108>
 the encodings via a MultiEncoder, but that's just an implementation detail. I 
recently created a demo that puts multiple inputs into a Network: 
https://github.com/numenta/nupic/blob/master/examples/network/core_encoders_demo.py

Hope that helps!
Marcus

On Sun, Mar 27, 2016 at 10:06 PM, Phil Goddard 
<[email protected]<mailto:[email protected]>> wrote:


I'm looking for an example (or examples) of using NuPIC with either (or both 
of) multiple inputs and multiple levels.


With multiple inputs, the nearest example I can find is the NY Taxi example.

However the technical paper I have indicates that the 3 inputs are aggregated 
into one input (via competitive polling) before being fed into the model.

Can anyone tell me if it possible to have multiple inputs?

Or do multiple inputs have to be processed into one input as per that example?

I can't find the code for the NY taxi example (in the NuPIC GitHub repository).

Is it available, and if so where?


Also, is it possible to develop multi-level models?

If anyone can point me at any technical description of such models, or a code 
example, I'd appreciate it.


thanks

Phil.






Reply via email to