pm4py.algo.transformation.log_to_features package

Subpackages

Submodules

pm4py.algo.transformation.log_to_features.algorithm module

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.algo.transformation.log_to_features.algorithm.Variants(value)[source]

Bases: enum.Enum

An enumeration.

EVENT_BASED = <module 'pm4py.algo.transformation.log_to_features.variants.event_based' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\transformation\\log_to_features\\variants\\event_based.py'>
TRACE_BASED = <module 'pm4py.algo.transformation.log_to_features.variants.trace_based' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\transformation\\log_to_features\\variants\\trace_based.py'>
pm4py.algo.transformation.log_to_features.algorithm.apply(log: Union[pm4py.objects.log.obj.EventLog, pandas.core.frame.DataFrame, pm4py.objects.log.obj.EventStream], variant: Any = Variants.TRACE_BASED, parameters: Optional[Dict[Any, Any]] = None) Tuple[Any, List[str]][source]

Extracts the features from a log object

Parameters
  • log – Event log

  • variant – Variant of the feature extraction to use: - Variants.EVENT_BASED => (default) extracts, for each trace, a list of numerical vectors containing for each

    event the corresponding features

    • Variants.TRACE_BASED => extracts for each trace a single numerical vector containing the features

      of the trace

Returns

  • data – Data to provide for decision tree learning

  • feature_names – Names of the features, in order

Module contents

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.