src.main.main_predict
Classes
- class src.main.main_predict.MainPredict
- Author:
Alberto M. Esmoris Pena
Class handling the entry point for predictive tasks
- static main(spec)
Entry point logic for predictive tasks.
- Parameters:
spec – Key-word specification
- static load_model(spec)
Load the model from the specification of a predictive task.
- Parameters:
spec – Key-word specification
- Returns:
The loaded model.
- Return type:
- static export_predictions(spec, pcloud, preds)
Export the predictions as requested. There are two potential exports.
- Exporting the input point cloud with a new attribute named
“prediction”.
- Exporting the predictions as an ASCII CSV where each row (line)
represents a point.
- Parameters:
spec (dict) – The specification on how to export the predictions.
pcloud (
PointCloud) – The predicted point cloud.preds (
np.ndarray) – The predictions themselves.