Neuralk.analysis.create_enrichment_fit#

Neuralk.analysis.create_enrichment_fit(dataset, name, taxonomy_file=None, target_columns=None, id_columns=None, generic_attributes_schema=None, specific_attributes_schema=None, feature_cols=None)#

Create a new enrichment fit analysis.

Parameters:
  • dataset (Dataset) – The dataset to use for the analysis.

  • name (str) – The name of the analysis.

  • taxonomy_file (ProjectFile | str, optional) – The taxonomy file to use or its id.

  • target_columns (list[str], optional) – The target column name.

  • id_columns (list[str], optional) – List of ID column names.

  • generic_attributes_schema (list[str], optional) – Generic attributes schema

  • specific_attributes_schema (dict[str, list[str]], optional) – Specific attributes schema

  • feature_cols (list[str], optional) – List of feature columns.

Returns:

The created analysis object.

Return type:

Analysis

Raises:

NeuralkException – If the analysis creation fails.