TrainClassifier implements TrainClassifier
More...
◆ TrainClassifier() [1/2]
Synapse.ML.Train.TrainClassifier.TrainClassifier |
( |
| ) |
|
|
inline |
◆ TrainClassifier() [2/2]
Synapse.ML.Train.TrainClassifier.TrainClassifier |
( |
string |
uid | ) |
|
|
inline |
Creates a TrainClassifier with a UID that is used to give the TrainClassifier a unique ID.
- Parameters
-
uid | An immutable unique ID for the object and its derivatives. |
◆ Fit()
Fits a model to the input data.
- Parameters
-
dataset | The DataFrame to fit the model to. |
- Returns
- TrainedClassifierModel
◆ GetFeaturesCol()
string Synapse.ML.Train.TrainClassifier.GetFeaturesCol |
( |
| ) |
|
Gets featuresCol value
- Returns
- featuresCol: The name of the features column
◆ GetLabelCol()
string Synapse.ML.Train.TrainClassifier.GetLabelCol |
( |
| ) |
|
Gets labelCol value
- Returns
- labelCol: The name of the label column
◆ GetLabels()
string [] Synapse.ML.Train.TrainClassifier.GetLabels |
( |
| ) |
|
Gets labels value
- Returns
- labels: Sorted label values on the labels column
◆ GetModel()
IEstimator<object> Synapse.ML.Train.TrainClassifier.GetModel |
( |
| ) |
|
|
inline |
Gets model value
- Returns
- model: Classifier to run
◆ GetNumFeatures()
int Synapse.ML.Train.TrainClassifier.GetNumFeatures |
( |
| ) |
|
Gets numFeatures value
- Returns
- numFeatures: Number of features to hash to
◆ GetReindexLabel()
bool Synapse.ML.Train.TrainClassifier.GetReindexLabel |
( |
| ) |
|
Gets reindexLabel value
- Returns
- reindexLabel: Re-index the label column
◆ Load()
static TrainClassifier Synapse.ML.Train.TrainClassifier.Load |
( |
string |
path | ) |
|
|
static |
◆ Read()
Get the corresponding JavaMLReader instance.
- Returns
- an JavaMLReader<TrainClassifier> instance for this ML instance.
◆ Save()
void Synapse.ML.Train.TrainClassifier.Save |
( |
string |
path | ) |
|
Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala.
- Parameters
-
path | The path to save the object to |
◆ SetFeaturesCol()
TrainClassifier Synapse.ML.Train.TrainClassifier.SetFeaturesCol |
( |
string |
value | ) |
|
Sets value for featuresCol
- Parameters
-
value | The name of the features column |
- Returns
- New TrainClassifier object
◆ SetLabelCol()
TrainClassifier Synapse.ML.Train.TrainClassifier.SetLabelCol |
( |
string |
value | ) |
|
Sets value for labelCol
- Parameters
-
value | The name of the label column |
- Returns
- New TrainClassifier object
◆ SetLabels()
TrainClassifier Synapse.ML.Train.TrainClassifier.SetLabels |
( |
string [] |
value | ) |
|
Sets value for labels
- Parameters
-
value | Sorted label values on the labels column |
- Returns
- New TrainClassifier object
◆ SetModel< M >()
TrainClassifier Synapse.ML.Train.TrainClassifier.SetModel< M > |
( |
JavaEstimator< M > |
value | ) |
|
Sets value for model
- Parameters
-
- Returns
- New TrainClassifier object
- Type Constraints
-
M | : | JavaModel<M> | |
M | : | WrapAsTrainClassifier | |
M | : | Reference.Invoke | |
M | : | setModel | |
M | : | object | |
M | : | value | |
◆ SetNumFeatures()
TrainClassifier Synapse.ML.Train.TrainClassifier.SetNumFeatures |
( |
int |
value | ) |
|
Sets value for numFeatures
- Parameters
-
value | Number of features to hash to |
- Returns
- New TrainClassifier object
◆ SetReindexLabel()
TrainClassifier Synapse.ML.Train.TrainClassifier.SetReindexLabel |
( |
bool |
value | ) |
|
Sets value for reindexLabel
- Parameters
-
value | Re-index the label column |
- Returns
- New TrainClassifier object
The documentation for this class was generated from the following file:
- synapse/ml/train/TrainClassifier.cs