| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
[Hint:] Drill down into each topic (by clicking the header) for more info.
NOTE: Not yet fully complete - all items will have links to more in-depth detail soon - stay tuned!
Top down...
Network network = Network.create("Network API Demo", p)
.add(Network.createRegion("Region 1")
.add(Network.createLayer("Layer 2/3", p)
**.alterParameter(KEY.AUTO_CLASSIFY, Boolean.TRUE)**
.add(new SpatialPooler())There are two things of note here. The first is that only a Boolean is declared here to indicate that a classifier is desired at this location; and secondly there is this method:
alterParameter(KEY.AUTO_CLASSIFY, Boolean.TRUE) This method statement which is specifically injected here, tells the framework to use a copy of the Parameters object within this Layer. Normally, Parameters are inherited from the parent container (i.e. Region or Network), but when used, this method allows local altering of a given parameter without affecting the Parameters object used throughout the network.
timestamp,consumption,type
datetime,float,list
T,,C
HTM.java follows the NuPIC Input File Format seen at the link above - except - for a couple of flags (see HTM.java SensorFlags). These are the "L" flag which specifies a "learning" column, and the "B" flag which is automatically inserted into the file when no flag is specified for a column (which you don't have to be concerned with really). The "T" flag while encouraged, does not mean that the encoders cycle through known datetime formats.
For the time being, date formats are specified in the Parameters object like this:
Parameters p = ...
p.put(KEY.DATEFIELD_PATTERN.getFieldName(), "MM/dd/YY HH:mm");Where all Date formats follow the normal Java conventions seen here: from Joda Time Library
For example formats, see the DateEncoder class
Example used in the Quick Start Guide
Parameters p = NetworkDemoHarness.getParameters();
p = p.union(NetworkDemoHarness.getNetworkDemoTestEncoderParams());Next: Roadmap
| Back | FazBrowse Home | New Git URL |