def runExperiment6(dirName):
  """
  This runs the experiment the section "Simulations with Combined Sequences",
  an example stream containing a mixture of temporal and sensorimotor sequences.
  """
  # Results are put into a pkl file which can be used to generate the plots.
  # dirName is the absolute path where the pkl file will be placed.
  resultsFilename = os.path.join(dirName, "combined_results.pkl")
  results = runExperiment(
    {
      "numSequences": 50,
      "seqLength": 10,
      "numObjects": 50,
      "numFeatures": 500,
      "trialNum": 8,
      "numLocations": 100,
      "settlingTime": 1,
      "figure": "6",
      "numRepetitions": 30,
      "basalPredictedSegmentDecrement": 0.001,
      "stripStats": False,
    }
  )

  # Pickle results for plotting and possible later debugging
  with open(resultsFilename, "wb") as f:
    cPickle.dump(results, f)
def runExperiment6 ( dirName ) : resultsFilename = os . path . join ( dirName , "combined_results.pkl" ) results = runExperiment ( { "numSequences" : 50 , "seqLength" : 10 , "numObjects" : 50 , "numFeatures" : 500 , "trialNum" : 8 , "numLocations" : 100 , "settlingTime" : 1 , "figure" : "6" , "numRepetitions" : 30 , "basalPredictedSegmentDecrement" : 0.001 , "stripStats" : False , } ) with open ( resultsFilename , "wb" ) as f : cPickle . dump ( results , f )
This runs the experiment the section "Simulations with Combined Sequences",
  an example stream containing a mixture of temporal and sensorimotor sequences.