original_docstring:  Create a shipped-brain.yaml file in models artifacts
  
      :param model_name: the model's name on app.shippedbrain.com
      :param model_artifacts_path: the mlflow model's artifact path
      :param flavor: the flavor of the model (e.g. "pyfunc")
      :param target_dir: the directory to which to write the shipped-brain.yaml file
  
      :return: shipped-brain.yaml file absolute path
      
docstring: Create a shipped-brain.yaml file in models artifacts
docstring_tokens: Create a shipped - brain . yaml file in models artifacts
code: def _create_shipped_brain_yaml(model_name: str, model_artifacts_path: str, flavor: str, target_dir, metrics: dict = {}, params: dict = {}) -> str:
      """ Create a shipped-brain.yaml file in models artifacts
  
      :param model_name: the model's name on app.shippedbrain.com
      :param model_artifacts_path: the mlflow model's artifact path
      :param flavor: the flavor of the model (e.g. "pyfunc")
      :param target_dir: the directory to which to write the shipped-brain.yaml file
  
      :return: shipped-brain.yaml file absolute path
      """
      shipped_brain_yaml_file = os.path.join(target_dir, "shipped-brain.yaml")
      shipped_brain_yaml = {"model_name": model_name,
                            "model_artifacts_path": model_artifacts_path,
                            "flavor": flavor,
                            "metrics": metrics,
                            "params": params}
  
      with open(shipped_brain_yaml_file, "w") as yaml_file:
          yaml.dump(shipped_brain_yaml, yaml_file)
  
      return shipped_brain_yaml_file
code_tokens: def _create_shipped_brain_yaml ( model_name : str , model_artifacts_path : str , flavor : str , target_dir , metrics : dict = { } , params : dict = { } ) -> str : shipped_brain_yaml_file = os . path . join ( target_dir , "shipped-brain.yaml" ) shipped_brain_yaml = { "model_name" : model_name , "model_artifacts_path" : model_artifacts_path , "flavor" : flavor , "metrics" : metrics , "params" : params } with open ( shipped_brain_yaml_file , "w" ) as yaml_file : yaml . dump ( shipped_brain_yaml , yaml_file ) return shipped_brain_yaml_file
short_docstring: Create a shipped-brain.yaml file in models artifacts
short_docstring_tokens: Create a shipped - brain . yaml file in models artifacts
comment: """ Create a shipped-brain.yaml file in models artifacts
  
      :param model_name: the model's name on app.shippedbrain.com
      :param model_artifacts_path: the mlflow model's artifact path
      :param flavor: the flavor of the model (e.g. "pyfunc")
      :param target_dir: the directory to which to write the shipped-brain.yaml file
  
      :return: shipped-brain.yaml file absolute path
      """