class_docstr: This class deals with all model-related storage requirements, from setting status to storing artifacts.
class_docstr_tok: ["This","class","deals","with","all","model-related","storage","requirements",",","from","setting","status","to","storing","artifacts","."]
code: def training_state_set(
      self, current_state_num=None, total_states=None, state_name=None
  ):
      rec = self._get_model_record(self.predictor_id)
      if current_state_num is not None:
          rec.training_phase_current = current_state_num
      if total_states is not None:
          rec.training_phase_total = total_states
      if state_name is not None:
          rec.training_phase_name = state_name
      db.session.commit()
  
imports: import os
  import re
  import io
  import zipfile
  from typing import Union
  import mindsdb.interfaces.storage.db
  from .fs import RESOURCE_GROUP, FileStorageFactory, SERVICE_FILES_NAMES
  from .json import get_json_storage
label_desc: Use image node_id 5 for calling the ModelStorage obj's underlying member method code with example usage: obj.training_state_set(current_state_num, total_states, state_name) without return types