DeepLearning - Maple Programming Help

Home : Support : Online Help : Programming : DeepLearning Package : Estimators : Constructing Estimators : DeepLearning/LinearClassifier

DeepLearning

 LinearClassifier
 construct a linear classifier

 Calling Sequence LinearClassifier(fc,opts)

Parameters

 fc - list of FeatureColumn objects opts - (optional) one or more keyword options described below

Options

 • num_classes : nonnegative integer
 Specifies the number of distinct classes into which the data should be classified.
 • optimizer : function or Optimizer object
 Specifies the optimizer to use to train the model. The default is the FTRL optimizer.

Description

 • The LinearClassifier(fc,opts) command creates a linear classifier for the feature columns specified in fc.
 • This function is part of the DeepLearning package, so it can be used in the short form LinearClassifier(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[LinearClassifier](..).

Compatibility

 • The DeepLearning[LinearClassifier] command was introduced in Maple 2018.