src.mining.recount_minerpp

Classes

RecountMinerPP(**kwargs)

class src.mining.recount_minerpp.RecountMinerPP(**kwargs)
Author:

Alberto M. Esmoris Pena

C++ version of the RecountMiner data miner.

It supports more neighborhoods like 2D k-nearest neighbors, bounded cylindrical neighborhoods, and 2D and 3D rectangular neighborhoods.

It also supports more recount-based features per filter like ring-based features, radial boundaries, 2D sectors, and 3D sectors.

See Miner and RecountMiner.

static extract_miner_args(spec)

Extract the arguments to initialize/instantiate a RecountMinerPP from a key-word specification.

Parameters:

spec – The key-word specification containing the arguments.

Returns:

The arguments to initialize/instantiate a RecountMinerPP.

__init__(**kwargs)

Initialize an instance of RecountMinerPP.

See RecountMiner.__init__().

mine(pcloud)

Mine recount features from the given point cloud.

Parameters:

pcloud – The point cloud to be mined.

Returns:

The point cloud extended with recount-based features.

Return type:

PointCloud

extract_cpp_conditions()

Obtain the conditions as arguments for the C++ recount miner. Each filter can have many conditions and each condition is represented by the index of the considered feature, the condition type, and the target value.

See the RecountMiner documentation for more information.

Returns:

Three different lists of lists. The first one for feature indices (integer), the second one for the condition types (string), and the third one for the target values (list of numbers). The first element of each list is a list whose elements define the different conditions for the corresponding filter.

Return type:

tuple of three lists of lists

get_recount_names_from_filter(f)

Override the RecountMiner.get_recount_names_from_filter() to support the extra features generated by the C++ version.

See RecountMiner and RecountMiner.get_recount_names_from_filter().