class_docstr: An alternative FEDOT API version with optional attributes being documented
  and separated into groups by meaning.
  Each of the groups has corresponding setter method, named starting with :obj:`setup_*`.
  Use these methods to set corresponding API attributes:
  
  * :meth:`~FedotBuilder.setup_composition` -> general AutoML parameters
  
  * :meth:`~FedotBuilder.setup_parallelization` -> parameters of computational parallelization by CPU jobs
  
  * :meth:`~FedotBuilder.setup_output` -> parameters of outputs: logging, cache directories, etc.
  
  * :meth:`~FedotBuilder.setup_evolution` -> parameters of ML pipelines evolutionary optimization
  
  * :meth:`~FedotBuilder.setup_pipeline_structure` -> constrains on ML pipeline structure
  
  * :meth:`~FedotBuilder.setup_pipeline_evaluation` -> parameters of ML pipelines quality evaluation
  
  * :meth:`~FedotBuilder.setup_data_preprocessing` -> parameters of input data preprocessing
  
  After all demanded attributes are set, use :meth:`~FedotBuilder.build` to get a parametrized instance of
  :class:`~fedot.api.main.Fedot`.
  
  Examples:
      Example 1:
  
      .. literalinclude:: ../../../examples/simple/api_builder/classification_with_api_builder.py
  
      Example 2:
  
      .. literalinclude:: ../../../examples/simple/api_builder/multiple_ts_forecasting_tasks.py
  
  Args:
      problem: name of a modelling problem to solve.
  
          .. details:: Possible options:
  
              - ``classification`` -> for classification task
              - ``regression`` -> for regression task
              - ``ts_forecasting`` -> for time series forecasting task
class_docstr_tok: ["An","alternative","FEDOT","API","version","with","optional","attributes","being","documented","and","separated","into","groups","by","meaning",".","Each","of","the","groups","has","corresponding","setter","method",",","named","starting","with",":","obj",":","`","setup_","*","`",".","Use","these","methods","to","set","corresponding","API","attributes",":","*",":","meth",":","`","~FedotBuilder.setup_composition","`","-",">","general","AutoML","parameters","*",":","meth",":","`","~FedotBuilder.setup_parallelization","`","-",">","parameters","of","computational","parallelization","by","CPU","jobs","*",":","meth",":","`","~FedotBuilder.setup_output","`","-",">","parameters","of","outputs",":","logging",",","cache","directories",",","etc",".","*",":","meth",":","`","~FedotBuilder.setup_evolution","`","-",">","parameters","of","ML","pipelines","evolutionary","optimization","*",":","meth",":","`","~FedotBuilder.setup_pipeline_structure","`","-",">","constrains","on","ML","pipeline","structure","*",":","meth",":","`","~FedotBuilder.setup_pipeline_evaluation","`","-",">","parameters","of","ML","pipelines","quality","evaluation","*",":","meth",":","`","~FedotBuilder.setup_data_preprocessing","`","-",">","parameters","of","input","data","preprocessing","After","all","demanded","attributes","are","set",",","use",":","meth",":","`","~FedotBuilder.build","`","to","get","a","parametrized","instance","of",":","class",":","`","~fedot.api.main.Fedot","`",".","Examples",":","Example","1",":","..","literalinclude",":",":","..","\/","..","\/","..","\/examples\/simple\/api_builder\/classification_with_api_builder.py","Example","2",":","..","literalinclude",":",":","..","\/","..","\/","..","\/examples\/simple\/api_builder\/multiple_ts_forecasting_tasks.py","Args",":","problem",":","name","of","a","modelling","problem","to","solve",".","..","details",":",":","Possible","options",":","-","``","classification","``","-",">","for","classification","task","-","``","regression","``","-",">","for","regression","task","-","``","ts_forecasting","``","-",">","for","time","series","forecasting","task"]
docstr: Sets parameters of outputs: logging, cache directories, etc.
  
  Args:
      logging_level: logging levels are the same as in
          `built-in logging library <https://docs.python.org/3/library/logging.html>`_.
  
          .. details:: Possible options:
  
              - ``50`` -> critical
              - ``40`` -> error
              - ``30`` -> warning
              - ``20`` -> info
              - ``10`` -> debug
              - ``0`` -> nonset
  
      show_progress: indicates whether to show progress using tqdm/tuner or not. Defaults to ``True``.
  
      keep_history: indicates if the framework should track evolutionary optimization history
          for possible further analysis. Defaults to ``True``.
  
      history_dir: relative or absolute path of a folder for composing history.
          By default, creates a folder named "FEDOT" in temporary system files of an OS.
          A relative path is relative to the default value.
  
      cache_dir: path to a directory containing cache files (if any cache is enabled).
          By default, creates a folder named "FEDOT" in temporary system files of an OS.
  
  Returns:
      :class:`FedotBuilder` instance.
docstr_tok: ["Sets","parameters","of","outputs",":","logging",",","cache","directories",",","etc",".","Args",":","logging_level",":","logging","levels","are","the","same","as","in","`","built-in","logging","library","<","https",":","\/\/docs.python.org\/3\/library\/logging.html",">","`","_",".","..","details",":",":","Possible","options",":","-","``","50","``","-",">","critical","-","``","40","``","-",">","error","-","``","30","``","-",">","warning","-","``","20","``","-",">","info","-","``","10","``","-",">","debug","-","``","0","``","-",">","nonset","show_progress",":","indicates","whether","to","show","progress","using","tqdm\/tuner","or","not",".","Defaults","to","``","True","``",".","keep_history",":","indicates","if","the","framework","should","track","evolutionary","optimization","history","for","possible","further","analysis",".","Defaults","to","``","True","``",".","history_dir",":","relative","or","absolute","path","of","a","folder","for","composing","history",".","By","default",",","creates","a","folder","named","``","FEDOT","''","in","temporary","system","files","of","an","OS",".","A","relative","path","is","relative","to","the","default","value",".","cache_dir",":","path","to","a","directory","containing","cache","files","(","if","any","cache","is","enabled",")",".","By","default",",","creates","a","folder","named","``","FEDOT","''","in","temporary","system","files","of","an","OS",".","Returns",":",":","class",":","`","FedotBuilder","`","instance","."]
code: def setup_output(
      self,
      logging_level: int = DEFAULT_VALUE,
      show_progress: bool = DEFAULT_VALUE,
      keep_history: bool = DEFAULT_VALUE,
      history_dir: Optional[str] = DEFAULT_VALUE,
      cache_dir: Optional[str] = DEFAULT_VALUE,
  ) -> FedotBuilder:
      """Sets parameters of outputs: logging, cache directories, etc.
  
      Args:
          logging_level: logging levels are the same as in
              `built-in logging library <https://docs.python.org/3/library/logging.html>`_.
  
              .. details:: Possible options:
  
                  - ``50`` -> critical
                  - ``40`` -> error
                  - ``30`` -> warning
                  - ``20`` -> info
                  - ``10`` -> debug
                  - ``0`` -> nonset
  
          show_progress: indicates whether to show progress using tqdm/tuner or not. Defaults to ``True``.
  
          keep_history: indicates if the framework should track evolutionary optimization history
              for possible further analysis. Defaults to ``True``.
  
          history_dir: relative or absolute path of a folder for composing history.
              By default, creates a folder named "FEDOT" in temporary system files of an OS.
              A relative path is relative to the default value.
  
          cache_dir: path to a directory containing cache files (if any cache is enabled).
              By default, creates a folder named "FEDOT" in temporary system files of an OS.
  
      Returns:
          :class:`FedotBuilder` instance.
      """
      self.__update_params(
          logging_level=logging_level,
          show_progress=show_progress,
          keep_history=keep_history,
          history_dir=history_dir,
          cache_dir=cache_dir,
      )
      return self
  
imports: from __future__ import annotations
  from typing import Any, Dict, List, Optional, Sequence, Type, Union
  from golem.core.optimisers.optimizer import GraphOptimizer
  from fedot.api.main import Fedot
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.repository.metrics_repository import MetricIDType
  from fedot.core.repository.tasks import TaskParams
label_desc: Use image node_id 5 for calling the FedotBuilder obj's underlying member method code with example usage: obj.setup_output(logging_level, show_progress, keep_history, history_dir, cache_dir) and returns: self