class_docstr: Q-learning agent with tabular representation.
class_docstr_tok: ["Q-learning","agent","with","tabular","representation","."]
docstr: Save best model to file.
docstr_tok: ["Save","best","model","to","file","."]
code: def save(self, filename):
      """Save best model to file."""
      with open(filename, "w") as f:
          for s in range(self._num_states):
              f.write("{0}\t{1}\n".format(s, str(self._best_model[s])))
  
file_path: CNTK/bindings/python/cntk/contrib/deeprl/agent/tabular_qlearning.py
imports: import copy
  import numpy
  from .agent import AgentBaseClass
  from .shared.qlearning_parameters import QLearningParameters
label_desc: Use image node_id 6 for calling the TabularQLearning obj's underlying member method code with example usage: obj.save(filename) without return types