{ "cells": [ { "metadata": { "ExecuteTime": { "end_time": "2026-05-29T14:06:54.888138200Z", "start_time": "2026-05-29T14:06:54.872138400Z" } }, "cell_type": "code", "source": [ "import warnings\n", "warnings.filterwarnings(\"ignore\", category=UserWarning)" ], "id": "2eaadc94ce460687", "outputs": [], "execution_count": 1 }, { "cell_type": "markdown", "id": "b3e8c31a", "metadata": {}, "source": [ "# Model Discovery with the DECLARE Miner\n", "\n", "This tutorial explains how to perform the discovery of a DECLARE model (without payload) and how to save the discovered model. We first import the relative `DeclareMiner` class and the load the log." ] }, { "cell_type": "code", "id": "14602e4d", "metadata": { "ExecuteTime": { "end_time": "2026-05-29T14:06:57.631493600Z", "start_time": "2026-05-29T14:06:54.899312300Z" } }, "source": [ "import os\n", "\n", "from Declare4Py.ProcessModels.DeclareModel import DeclareModel\n", "from Declare4Py.ProcessMiningTasks.Discovery.DeclareMiner import DeclareMiner\n", "from Declare4Py.D4PyEventLog import D4PyEventLog\n", "\n", "log_path = os.path.join(\"../../../\", \"tests\", \"test_logs\",\"Sepsis Cases.xes.gz\")\n", "event_log = D4PyEventLog(case_name=\"case:concept:name\")\n", "event_log.parse_xes_log(log_path)" ], "outputs": [ { "data": { "text/plain": [ "parsing log, completed traces :: 0%| | 0/1050 [00:00