ConditionalKNN implements ConditionalKNN
More...
◆ ConditionalKNN() [1/2]
Synapse.ML.Nn.ConditionalKNN.ConditionalKNN |
( |
| ) |
|
|
inline |
◆ ConditionalKNN() [2/2]
Synapse.ML.Nn.ConditionalKNN.ConditionalKNN |
( |
string |
uid | ) |
|
|
inline |
Creates a ConditionalKNN with a UID that is used to give the ConditionalKNN 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
- ConditionalKNNModel
◆ GetConditionerCol()
string Synapse.ML.Nn.ConditionalKNN.GetConditionerCol |
( |
| ) |
|
Gets conditionerCol value
- Returns
- conditionerCol: column holding identifiers for features that will be returned when queried
◆ GetFeaturesCol()
string Synapse.ML.Nn.ConditionalKNN.GetFeaturesCol |
( |
| ) |
|
Gets featuresCol value
- Returns
- featuresCol: The name of the features column
◆ GetK()
int Synapse.ML.Nn.ConditionalKNN.GetK |
( |
| ) |
|
Gets k value
- Returns
- k: number of matches to return
◆ GetLabelCol()
string Synapse.ML.Nn.ConditionalKNN.GetLabelCol |
( |
| ) |
|
Gets labelCol value
- Returns
- labelCol: The name of the label column
◆ GetLeafSize()
int Synapse.ML.Nn.ConditionalKNN.GetLeafSize |
( |
| ) |
|
Gets leafSize value
- Returns
- leafSize: max size of the leaves of the tree
◆ GetOutputCol()
string Synapse.ML.Nn.ConditionalKNN.GetOutputCol |
( |
| ) |
|
Gets outputCol value
- Returns
- outputCol: The name of the output column
◆ GetValuesCol()
string Synapse.ML.Nn.ConditionalKNN.GetValuesCol |
( |
| ) |
|
Gets valuesCol value
- Returns
- valuesCol: column holding values for each feature (key) that will be returned when queried
◆ Load()
static ConditionalKNN Synapse.ML.Nn.ConditionalKNN.Load |
( |
string |
path | ) |
|
|
static |
◆ Read()
Get the corresponding JavaMLReader instance.
- Returns
- an JavaMLReader<ConditionalKNN> instance for this ML instance.
◆ Save()
void Synapse.ML.Nn.ConditionalKNN.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 |
◆ SetConditionerCol()
ConditionalKNN Synapse.ML.Nn.ConditionalKNN.SetConditionerCol |
( |
string |
value | ) |
|
Sets value for conditionerCol
- Parameters
-
value | column holding identifiers for features that will be returned when queried |
- Returns
- New ConditionalKNN object
◆ SetFeaturesCol()
ConditionalKNN Synapse.ML.Nn.ConditionalKNN.SetFeaturesCol |
( |
string |
value | ) |
|
Sets value for featuresCol
- Parameters
-
value | The name of the features column |
- Returns
- New ConditionalKNN object
◆ SetK()
Sets value for k
- Parameters
-
value | number of matches to return |
- Returns
- New ConditionalKNN object
◆ SetLabelCol()
ConditionalKNN Synapse.ML.Nn.ConditionalKNN.SetLabelCol |
( |
string |
value | ) |
|
Sets value for labelCol
- Parameters
-
value | The name of the label column |
- Returns
- New ConditionalKNN object
◆ SetLeafSize()
Sets value for leafSize
- Parameters
-
value | max size of the leaves of the tree |
- Returns
- New ConditionalKNN object
◆ SetOutputCol()
ConditionalKNN Synapse.ML.Nn.ConditionalKNN.SetOutputCol |
( |
string |
value | ) |
|
Sets value for outputCol
- Parameters
-
value | The name of the output column |
- Returns
- New ConditionalKNN object
◆ SetValuesCol()
ConditionalKNN Synapse.ML.Nn.ConditionalKNN.SetValuesCol |
( |
string |
value | ) |
|
Sets value for valuesCol
- Parameters
-
value | column holding values for each feature (key) that will be returned when queried |
- Returns
- New ConditionalKNN object
The documentation for this class was generated from the following file:
- synapse/ml/nn/ConditionalKNN.cs