src.main.main_predict

Classes

MainPredict()

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 extract_input_path(spec)

See MainMine and main_mine.MainMine.extract_input_path().

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:

Model

static export_predictions(spec, pcloud, preds)

Export the predictions as requested. There are two potential exports.

  1. Exporting the input point cloud with a new attribute named

    “prediction”.

  2. 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.