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
dataCASTable or string or dict

Specifies the table containing the image data

dense_layerstring

Specifies the name of the layer that is extracted

targetstring, optional

Specifies the name of the column including the response variable

**kwargskeyword 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.