src.mining.recount_minerpp
Classes
|
- class src.mining.recount_minerpp.RecountMinerPP(**kwargs)
- Author:
Alberto M. Esmoris Pena
C++ version of the
RecountMinerdata 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
MinerandRecountMiner.- 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.
- 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:
- 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
RecountMinerdocumentation 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
RecountMinerandRecountMiner.get_recount_names_from_filter().