class_docstr: Repository storing possible Api parameters and their default values. Also returns parameters required
  for data classes (``PipelineComposerRequirements``, ``GPAlgorithmParameters``, ``GraphGenerationParams``)
  used while model composition.
   
docstr: Returns a dict with default parameters
docstr_tok: ["Returns","a","dict","with","default","parameters"]
code: def default_params_for_task(task_type: TaskTypesEnum) -> dict:
      """Returns a dict with default parameters"""
      if task_type in [
          TaskTypesEnum.classification,
          TaskTypesEnum.regression,
      ]:
          cv_folds = 5
  
      elif task_type == TaskTypesEnum.ts_forecasting:
          cv_folds = 3
  
      # Dict with allowed keyword attributes for Api and their default values. If None - default value set
      # in dataclasses ``PipelineComposerRequirements``, ``GPAlgorithmParameters``, ``GraphGenerationParams``
      # will be used.
      default_param_values_dict = dict(
          parallelization_mode="populational",
          show_progress=True,
          max_depth=6,
          max_arity=3,
          pop_size=20,
          num_of_generations=None,
          keep_n_best=1,
          available_operations=None,
          metric=None,
          cv_folds=cv_folds,
          genetic_scheme=None,
          early_stopping_iterations=None,
          early_stopping_timeout=10,
          optimizer=None,
          collect_intermediate_metric=False,
          max_pipeline_fit_time=None,
          initial_assumption=None,
          preset=AUTO_PRESET_NAME,
          use_pipelines_cache=True,
          use_preprocessing_cache=True,
          use_input_preprocessing=True,
          use_auto_preprocessing=False,
          use_meta_rules=False,
          cache_dir=default_fedot_data_dir(),
          keep_history=True,
          history_dir=default_fedot_data_dir(),
          with_tuning=True,
      )
      return default_param_values_dict
  
file_path: FEDOT/fedot/api/api_utils/api_params_repository.py
imports: import datetime
  from typing import Sequence
  from golem.core.optimisers.genetic.operators.inheritance import GeneticSchemeTypesEnum
  from golem.core.optimisers.genetic.operators.mutation import MutationTypesEnum
  from fedot.core.composer.gp_composer.specific_operators import parameter_change_mutation, add_resample_mutation
  from fedot.core.constants import AUTO_PRESET_NAME
  from fedot.core.repository.tasks import TaskTypesEnum
  from fedot.core.utils import default_fedot_data_dir
label_desc: Use image node_id 2 for calling the ApiParamsRepository obj's underlying member method code with example usage: obj.default_params_for_task(task_type) and returns: default_param_values_dict