dlpy.applications.LeNet5¶
-
dlpy.applications.
LeNet5
(conn, model_table='LENET5', n_classes=10, n_channels=1, width=28, height=28, scale=0.00392156862745098, random_flip='none', random_crop='none', offsets=0)¶ Generates a deep learning model with the LeNet5 architecture.
Parameters: - conn : CAS
Specifies the CAS connection object.
- model_table : string, optional
Specifies the name of CAS table to store the model.
- n_classes : int, optional
Specifies the number of classes. If None is assigned, the model will automatically detect the number of classes based on the training set.
Default: 10- n_channels : int, optional
Specifies the number of the channels (i.e., depth) of the input layer.
Default: 1- width : int, optional
Specifies the width of the input layer.
Default: 28- height : int, optional
Specifies the height of the input layer.
Default: 28- scale : double, optional
Specifies a scaling factor to be applied to each pixel intensity values.
Default: 1.0 / 255- random_flip : string, optional
Specifies how to flip the data in the input layer when image data is used. Approximately half of the input data is subject to flipping.
Valid Values: ‘h’, ‘v’, ‘hv’, ‘none’
Default: ‘none’- random_crop : string, optional
Specifies how to crop the data in the input layer when image data is used. Images are cropped to the values that are specified in the width and height parameters. Only the images with one or both dimensions that are larger than those sizes are cropped.
Valid Values: ‘none’, ‘unique’, ‘randomresized’, ‘resizethencrop’
Default: ‘none’- offsets : double or iter-of-doubles, optional
Specifies an offset for each channel in the input data. The final input data is set after applying scaling and subtracting the specified offsets.
Default: 0
Returns: References