sideop Package¶
sideop
Package¶
This module contains the filter and regressor managers used by task to apply the filters and regressors. Both those classes use a side operation manager that implement the generic functions. This allow to apply the filters and regressors as early as possible during the triplet generation to optimise the performances.
filter_manager
Module¶
-
class
ABXpy.sideop.filter_manager.
FilterManager
(db_hierarchy, on, across, by, filters)[source]¶ Bases:
ABXpy.sideop.side_operations_manager.SideOperationsManager
Manage the filters on attributes (on, across, by) or elements (A, B, X) for further processing
regressor_manager
Module¶
-
class
ABXpy.sideop.regressor_manager.
RegressorManager
(db, db_hierarchy, on, across, by, regressors)[source]¶ Bases:
ABXpy.sideop.side_operations_manager.SideOperationsManager
Manage the regressors on attributes (on, across, by) or elements (A, B, X) for further processing
side_operations_manager
Module¶
Class providing services for task.py
finds out the best point to execute side-operations (such as filtering and regressor generation) in the ABX task computation flow:
basically the more related a given side-operation is to the on/across/by structure of the ABX task, the earlier it can be executed and the lowest the computational cost is
providing methods to actually carry out these side-operations at the point in the execution flow to which they were attributed
-
class
ABXpy.sideop.side_operations_manager.
SideOperationsManager
(db_hierarchy, on, across, by)[source]¶ Bases:
object
-
check_extensions
(elements)[source]¶ Check that something with a AX, AB or 1, 2 extension is an on/across descendant and a correct one for AX, AB.
-
classify_ABX
(elements, db_fun, db_variables)[source]¶ the only left extensions are either not descendant of on/across/by or descendant of across and _X or descendant of on and _B (i.e. _2) we do not try to batch the _2 because we think they are potentially too small, instead if necessary we should batch several consecutive calls
-
classify_by
(elements, db_fun, db_variables)[source]¶ Detect operations that depend only on a variable that is used as a ‘by’ factor in the ABX task.
-
classify_generic
(elements, db_fun, db_variables)[source]¶ Detect operations that can be applied directly to the columns of the original database. This is subclass specific…
-
classify_on_across_by
(elements, db_fun, db_variables)[source]¶ Detect operations that can be applied at the level of an on/across/by block during the generation of the ABX triplets.
-