Class MatchboxRecommenderSettings
Settings of the Matchbox recommender (settable by the developer).
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Learners
Assembly: Microsoft.ML.Probabilistic.Learners.Recommender.dll
Syntax
[Serializable]
public class MatchboxRecommenderSettings : ISettings, ICustomSerializable
Constructors
MatchboxRecommenderSettings(IReader, Func<Boolean>)
Initializes a new instance of the MatchboxRecommenderSettings class from a reader of a binary stream.
Declaration
public MatchboxRecommenderSettings(IReader reader, Func<bool> isTrained)
Parameters
Type | Name | Description |
---|---|---|
IReader | reader | The binary reader to read the settings of the Matchbox recommender from. |
Func<Boolean> | isTrained | Indicates whether the Matchbox recommender is trained. |
MatchboxRecommenderSettings(Func<Boolean>)
Initializes a new instance of the MatchboxRecommenderSettings class.
Declaration
public MatchboxRecommenderSettings(Func<bool> isTrained)
Parameters
Type | Name | Description |
---|---|---|
Func<Boolean> | isTrained | Indicates whether the Matchbox recommender is trained. |
Properties
Prediction
Gets the settings of the Matchbox recommender which affect prediction.
Declaration
public MatchboxRecommenderPredictionSettings Prediction { get; }
Property Value
Type | Description |
---|---|
MatchboxRecommenderPredictionSettings |
Training
Gets the settings of the Matchbox recommender which affect training.
Declaration
public MatchboxRecommenderTrainingSettings Training { get; }
Property Value
Type | Description |
---|---|
MatchboxRecommenderTrainingSettings |
Methods
SaveForwardCompatible(IWriter)
Saves the settings of the Matchbox recommender using the specified writer to a binary stream.
Declaration
public void SaveForwardCompatible(IWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IWriter | writer | The writer to save the settings to. |