NuPIC  0.2.7.dev0
Numenta Platform for Intelligent Computing
 All Classes Namespaces Files Functions Variables Pages
Static Public Member Functions | List of all members
ModelFactory Class Reference

Static factory class that produces a Model based on a description dict. More...

Inherits object.

Static Public Member Functions

def create
 Create a new model instance, given a description dictionary. More...
 
def loadFromCheckpoint
 Load saved model. More...
 

Detailed Description

Static factory class that produces a Model based on a description dict.

Eventually this will be the source for all Model creation, CLA and otherwise. We may also implement building the description dict from a database or a description.py file. For now, this is a very skeletal implementation.

Member Function Documentation

def create (   modelConfig,
  logLevel = logging.ERROR 
)
static

Create a new model instance, given a description dictionary.

Parameters
modelConfig(dict) A dictionary describing the current model (TODO: schema)
logLevel(int) The level of logging output that should be generated
Exceptions
(Exception)Unsupported model type
Returns
(nupic.frameworks.opf.model.Model) A model.
def loadFromCheckpoint (   savedModelDir)
static

Load saved model.

Parameters
savedModelDir(string) Directory of where the experiment is to be or was saved
Returns
(nupic.frameworks.opf.model.Model) The loaded model instance.

The documentation for this class was generated from the following file: