class_docstr: Utilities to generate and save model card. Recommended attributes from https://arxiv.org/abs/1810.03993 (see papers)
  https://catalog.ngc.nvidia.com/orgs/nvidia/teams/tao/models/actionrecognitionnet
  
  Args:
      model_name (`Optional[str]`):
          model name
      model_architecture (`Optional[str]`):
          model structure
      model_overview (`Optional[str] = None`):
      language (`Optional[Union[str, List[str]]]`):
          language
      tags (`Optional[Union[str, List[str]]]`):
          tags
      tasks (`Optional[Union[str, List[str]]]`):
          model tasks (eg. classification, prediction, etc.)
      datasets (`Optional[Union[str, List[str]]]`):
          datasets used to train/test the model
      datasets_tags (`Optional[Union[str, List[str]]]`):
          tags of datasets
      dataset_args (`Optional[Union[str, List[str]]]`):
          arguments of dataset
      eval_results (`Optional[Dict[str, float]]`):
          evaluation results recorded
      eval_lines (`Optional[List[str]]`):
          evaluation baselines
      training_summary (`Optional[Dict[str, Any]]`):
          training summary include training information
      training_config (`Optional[TrainingConfig]`):
          training configurations
      source (`Optional[str]`):
          source of model card (default = "trainer")
  
  Example:
      >>> from towhee.trainer.modelcard import ModelCard
      >>> model_card = ModelCard(model_name='test')
      >>> # Print out model name stored in model card
      >>> model_card.model_name
      'test'
      >>> # Save model card to "path/to/my_dir" as README.md
      >>> model_card.save_model_card('/path/to/my_dir')
      >>> # Save model card as "/path/to/my_dir/model_card.md"
      >>> model_card.save_model_card('/path/to/my_dir/model_card.md')
class_docstr_tok: ["Utilities","to","generate","and","save","model","card",".","Recommended","attributes","from","https",":","\/\/arxiv.org\/abs\/1810.03993","(","see","papers",")","https",":","\/\/catalog.ngc.nvidia.com\/orgs\/nvidia\/teams\/tao\/models\/actionrecognitionnet","Args",":","model_name","(","`","Optional","[","str","]","`",")",":","model","name","model_architecture","(","`","Optional","[","str","]","`",")",":","model","structure","model_overview","(","`","Optional","[","str","]","=","None","`",")",":","language","(","`","Optional","[","Union","[","str",",","List","[","str","]","]","]","`",")",":","language","tags","(","`","Optional","[","Union","[","str",",","List","[","str","]","]","]","`",")",":","tags","tasks","(","`","Optional","[","Union","[","str",",","List","[","str","]","]","]","`",")",":","model","tasks","(","eg",".","classification",",","prediction",",","etc",".",")","datasets","(","`","Optional","[","Union","[","str",",","List","[","str","]","]","]","`",")",":","datasets","used","to","train\/test","the","model","datasets_tags","(","`","Optional","[","Union","[","str",",","List","[","str","]","]","]","`",")",":","tags","of","datasets","dataset_args","(","`","Optional","[","Union","[","str",",","List","[","str","]","]","]","`",")",":","arguments","of","dataset","eval_results","(","`","Optional","[","Dict","[","str",",","float","]","]","`",")",":","evaluation","results","recorded","eval_lines","(","`","Optional","[","List","[","str","]","]","`",")",":","evaluation","baselines","training_summary","(","`","Optional","[","Dict","[","str",",","Any","]","]","`",")",":","training","summary","include","training","information","training_config","(","`","Optional","[","TrainingConfig","]","`",")",":","training","configurations","source","(","`","Optional","[","str","]","`",")",":","source","of","model","card","(","default","=","``","trainer","''",")","Example",":",">",">",">","from","towhee.trainer.modelcard","import","ModelCard",">",">",">","model_card","=","ModelCard","(","model_name='test","'",")",">",">",">","#","Print","out","model","name","stored","in","model","card",">",">",">","model_card.model_name","'test'",">",">",">","#","Save","model","card","to","``","path\/to\/my_dir","''","as","README.md",">",">",">","model_card.save_model_card","(","'\/path\/to\/my_dir","'",")",">",">",">","#","Save","model","card","as","``","\/path\/to\/my_dir\/model_card.md","''",">",">",">","model_card.save_model_card","(","'\/path\/to\/my_dir\/model_card.md","'",")"]
docstr: Serializes this instance to a JSON string.
docstr_tok: ["Serializes","this","instance","to","a","JSON","string","."]
code: def _to_json_string(self):
      """Serializes this instance to a JSON string."""
      pass
  
file_path: towhee/towhee/trainer/modelcard.py
imports: from pathlib import Path
  from dataclasses import dataclass
  from typing import Union, Dict, Any, Optional, List
  from towhee.trainer.training_config import TrainingConfig
label_desc: Use image node_id 6 for calling the ModelCard obj's underlying member method code with example usage: obj._to_json_string() without return types