Skip to content
Snippets Groups Projects
Commit 13c036ee authored by dmt's avatar dmt
Browse files

Define temporary methods to extract blocks, time_sigma_relatives and estimate density.

parent 312493e0
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,16 @@ class DataSource:
def __len__(self):
return self.__source.length
def get_block(self, indices=None):
return self.__source.get_block_via_index(indices)
def time_sigma_relatives(self, block):
return next(iter(self.__learnblock_identifier._identify_relatives(
block, "T", "Sigma")))
def estimate_density(self, data):
return self.__learnblock_identifier.density_estimator(data).density()
class Preprocessor:
TIME_COLUMN = "T"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment