src.model.deeplearn.rbf_net_pwise_classif_model

Classes

RBFNetPwiseClassifModel(**kwargs)

class src.model.deeplearn.rbf_net_pwise_classif_model.RBFNetPwiseClassifModel(**kwargs)
Author:

Alberto M. Esmoris Pena

RBFNet model for point-wise classification tasks. See ClassificationModel.

Variables:

model (DLModelHandler) – The deep learning model wrapped by the corresponding handler, i.e., the RBFNetPwiseClassif model wrapped by a SimpleDLModelHandler handler.

static extract_model_args(spec)

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

Parameters:

spec – The key-word specification containing the arguments.

Returns:

The arguments to initialize/instantiate a RBFNetPwiseClassifModel.

__init__(**kwargs)

Initialize an instance of RBFNetPwiseClassifModel.

Parameters:

kwargs – The attributes for the RBFNetPwiseClassifModel that will also be passed to the parent.

is_deep_learning_model()

See Model and model.Model.is_deep_learning_model().

prepare_model()

Prepare a RBFNet point-wise classifier with current model arguments.

Returns:

The prepared model itself. Note it is also assigned as the model attribute of the object/instance.

Return type:

RBFNetPwiseClassif

overwrite_pretrained_model(spec)

See model.Model.overwrite_pretrained_model().

update_paths()

Consider the current specification of model args (self.model_args) to update the paths.

predict(pcloud, X=None, F=None, plots_and_reports=True)

Use the model to compute predictions on the input point cloud.

The behavior of the base implementation (see model.Model.predict()) is extended to account for X as a coordinates matrix and to ignore F. In other words, this RBFNet implementation does not support input features.

Parameters:
  • pcloud (PointCloud) – The input point cloud

  • X (np.ndarray) – The input matrix of coordinates where each row represents a point from the point cloud: If not given, it will be retrieved from the point cloud.

  • F – Ignored.

get_input_from_pcloud(pcloud)

See model.Model.get_input_from_pcloud().

training(X, y, F=None, info=True)

The fundamental training logic to train a RBFNet-based point-wise classifier.

See ClassificationModel and Model. Also see model.Model.training().

Parameters:

F – Ignored.

on_training_finished(X, y, yhat=None)

See model.Model.on_training_finished().

compute_pwise_activations(X)

Compute the point wise activations of the last layer before the output softmax layer in the RBFNet-based point-wise classification model.

Parameters:

X (np.ndarray) – The matrix of coordinates representing the point cloud.

Returns:

The matrix of point wise activations where points are rows and the columns are the components of the output activation function (activated vector or point-wise features).

Return type:

np.ndarray