dlpy.model.Model.get_features

Model.get_features(data, dense_layer, target='_label_', **kwargs)

Extract linear features for a data table from the layer specified by dense_layer

Parameters:
data : CASTable or string or dict

Specifies the table containing the image data

dense_layer : string

Specifies the name of the layer that is extracted

target : string, optional

Specifies the name of the column including the response variable

**kwargs : keyword arguments, optional

Specifies the optional arguments for the dlScore action. For more details, see deepLearn.dlScore

Returns:
( nxp-ndarray, n-ndarray )

The first ndarray is of size n by p, where n is the sample size and p is the number of features. The features extracted by the model at the specified dense_layer. The second ndarray is of size n and contains the response variable of the original data.