class_docstr: Factory for instantiating SDR classifiers.
docstr: Create a SDR classifier factory.
  The implementation of the SDR Classifier can be specified with
  the "implementation" keyword argument.
  
  The SDRClassifierFactory uses the implementation as specified in
   `Default NuPIC Configuration <default-config.html>`_.
docstr_tok: ["Create","a","SDR","classifier","factory",".","The","implementation","of","the","SDR","Classifier","can","be","specified","with","the","``","implementation","''","keyword","argument",".","The","SDRClassifierFactory","uses","the","implementation","as","specified","in","`","Default","NuPIC","Configuration","<","default-config.html",">","`","_","."]
code: def create(*args, **kwargs):
      """
      Create a SDR classifier factory.
      The implementation of the SDR Classifier can be specified with
      the "implementation" keyword argument.
  
      The SDRClassifierFactory uses the implementation as specified in
       `Default NuPIC Configuration <default-config.html>`_.
      """
      impl = kwargs.pop("implementation", None)
      if impl is None:
          impl = Configuration.get(
              "nupic.opf.sdrClassifier.implementation"
          )
      if impl == "py":
          return SDRClassifier(*args, **kwargs)
      elif impl == "cpp":
          return FastSDRClassifier(*args, **kwargs)
      elif impl == "diff":
          return SDRClassifierDiff(*args, **kwargs)
      else:
          raise ValueError(
              "Invalid classifier implementation (%r). Value must be "
              '"py", "cpp" or "diff".' % impl
          )
  
file_path: nupic-legacy/src/nupic/algorithms/sdr_classifier_factory.py
imports: from nupic.algorithms.sdr_classifier import SDRClassifier
  from nupic.algorithms.sdr_classifier_diff import SDRClassifierDiff
  from nupic.bindings.algorithms import SDRClassifier
  from nupic.support.configuration import Configuration
label_desc: Use image node_id 1 for calling the SDRClassifierFactory obj's underlying member method code with example usage: obj.create() and returns: SDRClassifier, FastSDRClassifier, SDRClassifierDiff