divik package

divik.seeded(wrapped_requires_seed:bool=False)[source]

Create seeded scope for function call.

Parameters:
wrapped_requires_seed: bool, optional, default: False

if true, passes seed parameter to the inner function

class divik.DivikResult(clustering, feature_selector, merged, subregions)
Attributes:
clustering

Alias for field number 0

feature_selector

Alias for field number 1

merged

Alias for field number 2

subregions

Alias for field number 3

Methods

count()
index() Raises ValueError if the value is not present.
clustering

Alias for field number 0

count()
feature_selector

Alias for field number 1

index()

Raises ValueError if the value is not present.

merged

Alias for field number 2

subregions

Alias for field number 3

divik.plot(tree, with_size=False)[source]

Plot visualization of splits.

divik.reject_split(tree:Union[divik._utils.DivikResult, NoneType], rejection_size:int=0) → Union[divik._utils.DivikResult, NoneType][source]

Re-apply rejection condition on known result tree.