From 4aada0538a7c5a86aab0c3b0de84e9275c58d10d Mon Sep 17 00:00:00 2001
From: dmt <>
Date: Thu, 10 Oct 2019 17:48:45 +0200
Subject: [PATCH] Add density estimator and relative extrema finder to
 preprocessing request.

---
 cml/shared/request.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/cml/shared/request.py b/cml/shared/request.py
index 3119879..fb2c5e2 100644
--- a/cml/shared/request.py
+++ b/cml/shared/request.py
@@ -1,13 +1,16 @@
 from dataclasses import dataclass
+from typing import Callable, Iterable
 
 from cml.ports.source_adapters import Adapter
+from cml.ports.scikit_adapter import MachineLearningModel
 from cml.domain.reconstruction import Reconstructor
 from cml.domain.data_source import DataSource
 from cml.domain.construction import Constructor
 from cml.shared.settings import (
     PreprocessingSettings,
     BlockProcessingSettings,
-    DeconstructionSettings
+    DeconstructionSettings,
+    ConstructionSettings
 )
 
 
@@ -16,6 +19,8 @@ class PreprocessRequest:
     source_adapter: Adapter
     pre_settings: PreprocessingSettings
     block_settings: BlockProcessingSettings
+    density_estimator: MachineLearningModel
+    relative_extrema: Callable
 
 
 @dataclass
-- 
GitLab