class_docstr: INC Custom strategy definition
class_docstr_tok: ["INC","Custom","strategy","definition"]
docstr: Creating configuration from params - changing configurations' indexes for real configurations
docstr_tok: ["Creating","configuration","from","params","-","changing","configurations","'","indexes","for","real","configurations"]
code: def bayesian_params_to_tune_configs(self, params):
      """
      Creating configuration from params - changing configurations' indexes for real configurations
      """
      node_cfgs = {}
      for node_key, configs in self.opwise_quant_cfgs.items():
          if node_key in params:
              value = int(params[node_key])
              value = min(value, len(configs) - 1)
              node_cfgs[node_key] = copy.deepcopy(configs[value])
      return node_cfgs
  
file_path: gluon-nlp/docs/model_zoo/question_answering/custom_strategy.py
imports: import copy
  import numpy
  from collections import OrderedDict
  from neural_compressor.strategy.strategy import TuneStrategy, strategy_registry
label_desc: Use image node_id 4 for calling the MyCustomTuneStrategy obj's underlying member method code with example usage: obj.bayesian_params_to_tune_configs(params) and returns: node_cfgs