src.mining.take_closest_miner
Classes
|
- class src.mining.take_closest_miner.TakeClosestMiner(**kwargs)
- Author:
Alberto M. Esmoris Pena
Take closest miner. See
Miner.The take closest miner considers a pool of point clouds and for each point in the input point cloud takes the requested features from the closest neighbor in the entire pool. It can be useful, for example, to have a set of mined point clouds and take just some points for training that have been manually labeled in the non mined point clouds (e.g., uncertainty point clouds, see
ClassificationUncertaintyEvaluator).- Variables:
fnames (list of str) – The names of the features that must be taken from the closest neighbor in the pool.
frenames (list of str) – The names of the features in the output point cloud. When not given (i.e., None), they will be the feature names.
y_default (int) – The default value for classification labels. If not given, it is the max value for integers
np.iinfo(int).max.pcloud_pool (list of str) – The list of paths to the point clouds composing the pool.
distance_upper_bound (float) – The max supported distance. It can be used to prune tree searches to speed-up the computations.
nthreads (int) – The number of threads for the parallel closest neighbors query. Using -1 implies considering as many threads as available cores.
- static extract_miner_args(spec)
Extract the arguments to initialize/instantiate a TakeClosestMiner from a key-word specification.
- Parameters:
spec – The key-word specification containing the arguments.
- Returns:
The arguments to initialize/instantiate a TakeClosestMiner.
- __init__(**kwargs)
Initialize an instance of TakeClosestMiner.
- Parameters:
kwargs (dict) – The attributes for the TakeClosestMiner that will also be passed to the parent.
- mine(pcloud)
Mine feature from closest neighbor in pool.
- Parameters:
pcloud – The point cloud to be mined.
- Returns:
The point cloud extended with taken features.
- Return type: