Class MatchboxRatingPrediction_EP
Inheritance
MatchboxRatingPrediction_EP
Assembly: Microsoft.ML.Probabilistic.Learners.Recommender.dll
Syntax
public class MatchboxRatingPrediction_EP : IGeneratedAlgorithm
Fields
Changed_AffinityNoiseVariance_ItemBiasPrior_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_User27_isDone
True if Changed_AffinityNoiseVariance_ItemBiasPrior_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_User27 has executed. Set this to false to force re-execution of Changed_AffinityNoiseVariance_ItemBiasPrior_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_User27
Declaration
public bool Changed_AffinityNoiseVariance_ItemBiasPrior_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_User27_isDone
Field Value
Changed_AffinityNoiseVariance_ItemBiasPrior_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_User29_isDone
True if Changed_AffinityNoiseVariance_ItemBiasPrior_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_User29 has executed. Set this to false to force re-execution of Changed_AffinityNoiseVariance_ItemBiasPrior_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_User29
Declaration
public bool Changed_AffinityNoiseVariance_ItemBiasPrior_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_User29_isDone
Field Value
Changed_ItemBiasPrior_isDone
True if Changed_ItemBiasPrior has executed. Set this to false to force re-execution of Changed_ItemBiasPrior
Declaration
public bool Changed_ItemBiasPrior_isDone
Field Value
Changed_ItemBiasPrior_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_UserBiasPrior_UserIds_User26_isDone
True if Changed_ItemBiasPrior_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_UserBiasPrior_UserIds_User26 has executed. Set this to false to force re-execution of Changed_ItemBiasPrior_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_UserBiasPrior_UserIds_User26
Declaration
public bool Changed_ItemBiasPrior_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_UserBiasPrior_UserIds_User26_isDone
Field Value
Changed_ItemBiasPrior_ItemIds_ObservationCount_isDone
True if Changed_ItemBiasPrior_ItemIds_ObservationCount has executed. Set this to false to force re-execution of Changed_ItemBiasPrior_ItemIds_ObservationCount
Declaration
public bool Changed_ItemBiasPrior_ItemIds_ObservationCount_isDone
Field Value
Changed_ItemBiasPrior_ItemIds_ObservationCount_UserBiasPrior_UserIds_isDone
True if Changed_ItemBiasPrior_ItemIds_ObservationCount_UserBiasPrior_UserIds has executed. Set this to false to force re-execution of Changed_ItemBiasPrior_ItemIds_ObservationCount_UserBiasPrior_UserIds
Declaration
public bool Changed_ItemBiasPrior_ItemIds_ObservationCount_UserBiasPrior_UserIds_isDone
Field Value
Changed_ItemIds_ItemTraitsPrior_ObservationCount_isDone
True if Changed_ItemIds_ItemTraitsPrior_ObservationCount has executed. Set this to false to force re-execution of Changed_ItemIds_ItemTraitsPrior_ObservationCount
Declaration
public bool Changed_ItemIds_ItemTraitsPrior_ObservationCount_isDone
Field Value
Changed_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_isDone
True if Changed_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount has executed. Set this to false to force re-execution of Changed_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount
Declaration
public bool Changed_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_isDone
Field Value
Changed_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_UserIds_UserTraitsPrior_isDone
True if Changed_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_UserIds_UserTraitsPrior has executed. Set this to false to force re-execution of Changed_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_UserIds_UserTraitsPrior
Declaration
public bool Changed_ItemIds_ItemTraitsPrior_ObservationCount_TraitCount_UserIds_UserTraitsPrior_isDone
Field Value
Changed_ItemTraitsPrior_isDone
True if Changed_ItemTraitsPrior has executed. Set this to false to force re-execution of Changed_ItemTraitsPrior
Declaration
public bool Changed_ItemTraitsPrior_isDone
Field Value
Changed_ObservationCount_isDone
True if Changed_ObservationCount has executed. Set this to false to force re-execution of Changed_ObservationCount
Declaration
public bool Changed_ObservationCount_isDone
Field Value
Changed_ObservationCount_TraitCount_isDone
True if Changed_ObservationCount_TraitCount has executed. Set this to false to force re-execution of Changed_ObservationCount_TraitCount
Declaration
public bool Changed_ObservationCount_TraitCount_isDone
Field Value
Changed_ObservationCount_TraitCount_UserIds_UserTraitsPrior_isDone
True if Changed_ObservationCount_TraitCount_UserIds_UserTraitsPrior has executed. Set this to false to force re-execution of Changed_ObservationCount_TraitCount_UserIds_UserTraitsPrior
Declaration
public bool Changed_ObservationCount_TraitCount_UserIds_UserTraitsPrior_isDone
Field Value
Changed_ObservationCount_UserBiasPrior_UserIds_isDone
True if Changed_ObservationCount_UserBiasPrior_UserIds has executed. Set this to false to force re-execution of Changed_ObservationCount_UserBiasPrior_UserIds
Declaration
public bool Changed_ObservationCount_UserBiasPrior_UserIds_isDone
Field Value
Changed_ObservationCount_UserIds_UserThresholdCount_UserThresholdNoiseVariance_UserThresholdsPrior_U28_isDone
True if Changed_ObservationCount_UserIds_UserThresholdCount_UserThresholdNoiseVariance_UserThresholdsPrior_U28 has executed. Set this to false to force re-execution of Changed_ObservationCount_UserIds_UserThresholdCount_UserThresholdNoiseVariance_UserThresholdsPrior_U28
Declaration
public bool Changed_ObservationCount_UserIds_UserThresholdCount_UserThresholdNoiseVariance_UserThresholdsPrior_U28_isDone
Field Value
Changed_ObservationCount_UserIds_UserThresholdCount_UserThresholdsPrior_UseSharedUserThresholds_isDone
True if Changed_ObservationCount_UserIds_UserThresholdCount_UserThresholdsPrior_UseSharedUserThresholds has executed. Set this to false to force re-execution of Changed_ObservationCount_UserIds_UserThresholdCount_UserThresholdsPrior_UseSharedUserThresholds
Declaration
public bool Changed_ObservationCount_UserIds_UserThresholdCount_UserThresholdsPrior_UseSharedUserThresholds_isDone
Field Value
Changed_ObservationCount_UserIds_UserTraitsPrior_isDone
True if Changed_ObservationCount_UserIds_UserTraitsPrior has executed. Set this to false to force re-execution of Changed_ObservationCount_UserIds_UserTraitsPrior
Declaration
public bool Changed_ObservationCount_UserIds_UserTraitsPrior_isDone
Field Value
Changed_ObservationCount_UserThresholdCount_isDone
True if Changed_ObservationCount_UserThresholdCount has executed. Set this to false to force re-execution of Changed_ObservationCount_UserThresholdCount
Declaration
public bool Changed_ObservationCount_UserThresholdCount_isDone
Field Value
Changed_ObservationCount_UserThresholdCount_UserThresholdsPrior_UseSharedUserThresholds_isDone
True if Changed_ObservationCount_UserThresholdCount_UserThresholdsPrior_UseSharedUserThresholds has executed. Set this to false to force re-execution of Changed_ObservationCount_UserThresholdCount_UserThresholdsPrior_UseSharedUserThresholds
Declaration
public bool Changed_ObservationCount_UserThresholdCount_UserThresholdsPrior_UseSharedUserThresholds_isDone
Field Value
Changed_ObservationCount_UserThresholdCount_UseSharedUserThresholds_isDone
True if Changed_ObservationCount_UserThresholdCount_UseSharedUserThresholds has executed. Set this to false to force re-execution of Changed_ObservationCount_UserThresholdCount_UseSharedUserThresholds
Declaration
public bool Changed_ObservationCount_UserThresholdCount_UseSharedUserThresholds_isDone
Field Value
Changed_ObservationCount_UseSharedUserThresholds_isDone
True if Changed_ObservationCount_UseSharedUserThresholds has executed. Set this to false to force re-execution of Changed_ObservationCount_UseSharedUserThresholds
Declaration
public bool Changed_ObservationCount_UseSharedUserThresholds_isDone
Field Value
Changed_UserBiasPrior_isDone
True if Changed_UserBiasPrior has executed. Set this to false to force re-execution of Changed_UserBiasPrior
Declaration
public bool Changed_UserBiasPrior_isDone
Field Value
Changed_UserThresholdCount_isDone
True if Changed_UserThresholdCount has executed. Set this to false to force re-execution of Changed_UserThresholdCount
Declaration
public bool Changed_UserThresholdCount_isDone
Field Value
Changed_UserThresholdCount_UserThresholdsPrior_UseSharedUserThresholds_isDone
True if Changed_UserThresholdCount_UserThresholdsPrior_UseSharedUserThresholds has executed. Set this to false to force re-execution of Changed_UserThresholdCount_UserThresholdsPrior_UseSharedUserThresholds
Declaration
public bool Changed_UserThresholdCount_UserThresholdsPrior_UseSharedUserThresholds_isDone
Field Value
Changed_UserThresholdCount_UseSharedUserThresholds_isDone
True if Changed_UserThresholdCount_UseSharedUserThresholds has executed. Set this to false to force re-execution of Changed_UserThresholdCount_UseSharedUserThresholds
Declaration
public bool Changed_UserThresholdCount_UseSharedUserThresholds_isDone
Field Value
Changed_UserThresholdsPrior_isDone
True if Changed_UserThresholdsPrior has executed. Set this to false to force re-execution of Changed_UserThresholdsPrior
Declaration
public bool Changed_UserThresholdsPrior_isDone
Field Value
Changed_UserThresholdsPrior_UseSharedUserThresholds_isDone
True if Changed_UserThresholdsPrior_UseSharedUserThresholds has executed. Set this to false to force re-execution of Changed_UserThresholdsPrior_UseSharedUserThresholds
Declaration
public bool Changed_UserThresholdsPrior_UseSharedUserThresholds_isDone
Field Value
Changed_UserTraitsPrior_isDone
True if Changed_UserTraitsPrior has executed. Set this to false to force re-execution of Changed_UserTraitsPrior
Declaration
public bool Changed_UserTraitsPrior_isDone
Field Value
Changed_UseSharedUserThresholds_isDone
True if Changed_UseSharedUserThresholds has executed. Set this to false to force re-execution of Changed_UseSharedUserThresholds
Declaration
public bool Changed_UseSharedUserThresholds_isDone
Field Value
Constant_isDone
True if Constant has executed. Set this to false to force re-execution of Constant
Declaration
public bool Constant_isDone
Field Value
CurrentRating_reduced
Declaration
public int[] CurrentRating_reduced
Field Value
ItemBias_itemItemIds_observation__F
Declaration
public DistributionStructArray<Gaussian, double> ItemBias_itemItemIds_observation__F
Field Value
ItemBias_use_B
Message from use of 'ItemBias'
Declaration
public DistributionStructArray<Gaussian, double> ItemBias_use_B
Field Value
ItemBias_use_F_marginal
Buffer for GetItemsOp<double>.ItemsAverageConditional<DistributionStructArray<Gaussian, double>, Gaussian>
Declaration
public DistributionStructArray<Gaussian, double> ItemBias_use_F_marginal
Field Value
itemBiasObs_B
Declaration
public Gaussian[] itemBiasObs_B
Field Value
itemTrait_B
Declaration
public DistributionStructArray<Gaussian, double>[] itemTrait_B
Field Value
ItemTraits_itemItemIds_observation__F
Declaration
public DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]> ItemTraits_itemItemIds_observation__F
Field Value
ItemTraits_use_B
Message from use of 'ItemTraits'
Declaration
public DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]> ItemTraits_use_B
Field Value
ItemTraits_use_F_marginal
Buffer for GetItemsOp<double[]>.ItemsAverageConditional<DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]>, DistributionStructArray<Gaussian, double>>
Declaration
public DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]> ItemTraits_use_F_marginal
Field Value
Declaration
public int[] NextRating_reduced
Field Value
Ratings_F_reduced
Declaration
public Discrete Ratings_F_reduced
Field Value
Ratings_marginal_F
Message to marginal of 'Ratings'
Declaration
public DistributionRefArray<Discrete, int> Ratings_marginal_F
Field Value
Ratings_observation__selector_cases_B
Declaration
public DistributionStructArray<Bernoulli, bool>[] Ratings_observation__selector_cases_B
Field Value
Ratings_observation__selector_cases_uses_B
Messages from uses of 'Ratings_observation__selector_cases'
Declaration
public Bernoulli[][][] Ratings_observation__selector_cases_uses_B
Field Value
Ratings_observation__selector_uses_B
Messages from uses of 'Ratings_observation__selector'
Declaration
public Discrete[][] Ratings_observation__selector_uses_B
Field Value
Ratings_observation__selector_uses_B_toDef
Buffer for ReplicateOp_Divide.Marginal<Discrete>
Declaration
public Discrete[] Ratings_observation__selector_uses_B_toDef
Field Value
true_logZ
Buffer for IsBetweenGaussianOp.LogEvidenceRatio
Declaration
public double[][] true_logZ
Field Value
UserBias_itemUserIds_observation__F
Declaration
public DistributionStructArray<Gaussian, double> UserBias_itemUserIds_observation__F
Field Value
UserBias_use_B
Message from use of 'UserBias'
Declaration
public DistributionStructArray<Gaussian, double> UserBias_use_B
Field Value
UserBias_use_F_marginal
Buffer for GetItemsOp<double>.ItemsAverageConditional<DistributionStructArray<Gaussian, double>, Gaussian>
Declaration
public DistributionStructArray<Gaussian, double> UserBias_use_F_marginal
Field Value
userBiasObs_B
Declaration
public Gaussian[] userBiasObs_B
Field Value
UserThresholds_0__gi_0__F
Declaration
public DistributionStructArray<Gaussian, double>[] UserThresholds_0__gi_0__F
Field Value
UserThresholds_depth2_rep_B_toDef
Buffer for ReplicateOp_Divide.Marginal<Gaussian>
Declaration
public Gaussian[] UserThresholds_depth2_rep_B_toDef
Field Value
UserThresholds_depth2_rep_F
Declaration
public Gaussian[][] UserThresholds_depth2_rep_F
Field Value
UserThresholds_depth2_rep_F_marginal
Buffer for ReplicateOp_Divide.UsesAverageConditional<Gaussian>
Declaration
public Gaussian[] UserThresholds_depth2_rep_F_marginal
Field Value
UserThresholds_itemUserIds_observation__F
Declaration
public DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]> UserThresholds_itemUserIds_observation__F
Field Value
UserThresholds_use_B
Message from use of 'UserThresholds'
Declaration
public DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]> UserThresholds_use_B
Field Value
UserThresholds_use_F_marginal
Buffer for GetItemsOp<double[]>.ItemsAverageConditional<DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]>, DistributionStructArray<Gaussian, double>>
Declaration
public DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]> UserThresholds_use_F_marginal
Field Value
UserThresholdsObs_B
Declaration
public DistributionStructArray<Gaussian, double>[] UserThresholdsObs_B
Field Value
UserThresholdsObs_B_reduced
Declaration
public Gaussian UserThresholdsObs_B_reduced
Field Value
UserThresholdsObs_F
Declaration
public DistributionStructArray<Gaussian, double>[] UserThresholdsObs_F
Field Value
userTrait_B
Declaration
public DistributionStructArray<Gaussian, double>[] userTrait_B
Field Value
UserTraits_itemUserIds_observation__F
Declaration
public DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]> UserTraits_itemUserIds_observation__F
Field Value
UserTraits_use_B
Message from use of 'UserTraits'
Declaration
public DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]> UserTraits_use_B
Field Value
UserTraits_use_F_marginal
Buffer for GetItemsOp<double[]>.ItemsAverageConditional<DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]>, DistributionStructArray<Gaussian, double>>
Declaration
public DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]> UserTraits_use_F_marginal
Field Value
vbool9_reduced
Declaration
public bool vbool9_reduced
Field Value
vdouble__78_F
Declaration
public DistributionStructArray<Gaussian, double>[] vdouble__78_F
Field Value
vdouble__88_F
Declaration
public DistributionStructArray<Gaussian, double>[] vdouble__88_F
Field Value
vdouble__89_F
Declaration
public DistributionStructArray<Gaussian, double>[] vdouble__89_F
Field Value
vdouble163_F
Declaration
public Gaussian[] vdouble163_F
Field Value
vdouble165_F
Declaration
public Gaussian[] vdouble165_F
Field Value
vdouble166_F
Declaration
public Gaussian[] vdouble166_F
Field Value
vdouble167_F
Declaration
public Gaussian[] vdouble167_F
Field Value
vdouble168_F
Declaration
public Gaussian[] vdouble168_F
Field Value
vdouble169_F
Declaration
public Gaussian[] vdouble169_F
Field Value
vint45
Declaration
Field Value
Properties
AffinityNoiseVariance
The externally-specified value of 'AffinityNoiseVariance'
Declaration
public double AffinityNoiseVariance { get; set; }
Property Value
ItemBiasPrior
The externally-specified value of 'ItemBiasPrior'
Declaration
public DistributionStructArray<Gaussian, double> ItemBiasPrior { get; set; }
Property Value
ItemCount
The externally-specified value of 'ItemCount'
Declaration
public int ItemCount { get; set; }
Property Value
ItemIds
The externally-specified value of 'ItemIds'
Declaration
public IReadOnlyList<int> ItemIds { get; set; }
Property Value
ItemTraitsPrior
The externally-specified value of 'ItemTraitsPrior'
Declaration
public DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]> ItemTraitsPrior { get; set; }
Property Value
NumberOfIterationsDone
The number of iterations done from the initial state
Declaration
public int NumberOfIterationsDone { get; }
Property Value
ObservationCount
The externally-specified value of 'ObservationCount'
Declaration
public int ObservationCount { get; set; }
Property Value
TraitCount
The externally-specified value of 'TraitCount'
Declaration
public int TraitCount { get; set; }
Property Value
UserBiasPrior
The externally-specified value of 'UserBiasPrior'
Declaration
public DistributionStructArray<Gaussian, double> UserBiasPrior { get; set; }
Property Value
UserCount
The externally-specified value of 'UserCount'
Declaration
public int UserCount { get; set; }
Property Value
UserIds
The externally-specified value of 'UserIds'
Declaration
public IReadOnlyList<int> UserIds { get; set; }
Property Value
UserThresholdCount
The externally-specified value of 'UserThresholdCount'
Declaration
public int UserThresholdCount { get; set; }
Property Value
UserThresholdNoiseVariance
The externally-specified value of 'UserThresholdNoiseVariance'
Declaration
public double UserThresholdNoiseVariance { get; set; }
Property Value
UserThresholdsPrior
The externally-specified value of 'UserThresholdsPrior'
Declaration
public DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]> UserThresholdsPrior { get; set; }
Property Value
UserTraitsPrior
The externally-specified value of 'UserTraitsPrior'
Declaration
public DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]> UserTraitsPrior { get; set; }
Property Value
UseSharedUserThresholds
The externally-specified value of 'UseSharedUserThresholds'
Declaration
public bool UseSharedUserThresholds { get; set; }
Property Value
Methods
Execute(Int32)
Update all marginals, by iterating message-passing the given number of times
Declaration
public void Execute(int numberOfIterations)
Parameters
| Type |
Name |
Description |
| Int32 |
numberOfIterations |
The total number of iterations that should be executed for the current set of observed values. If this is more than the number already done, only the extra iterations are done. If this is less than the number already done, message-passing is restarted from the beginning. Changing the observed values resets the iteration count to 0.
|
GetObservedValue(String)
Get the observed value of the specified variable.
Declaration
public object GetObservedValue(string variableName)
Parameters
| Type |
Name |
Description |
| String |
variableName |
Variable name
|
Returns
Marginal(String)
Get the marginal distribution (computed up to this point) of a variable
Declaration
public object Marginal(string variableName)
Parameters
| Type |
Name |
Description |
| String |
variableName |
Name of the variable in the generated code
|
Returns
| Type |
Description |
| Object |
The marginal distribution computed up to this point
|
Marginal(String, String)
Get the query-specific marginal distribution of a variable.
Declaration
public object Marginal(string variableName, string query)
Parameters
| Type |
Name |
Description |
| String |
variableName |
Name of the variable in the generated code
|
| String |
query |
QueryType name. For example, GibbsSampling answers 'Marginal', 'Samples', and 'Conditionals' queries
|
Returns
Marginal<T>(String)
Get the marginal distribution (computed up to this point) of a variable, converted to type T
Declaration
public T Marginal<T>(string variableName)
Parameters
| Type |
Name |
Description |
| String |
variableName |
Name of the variable in the generated code
|
Returns
| Type |
Description |
| T |
The marginal distribution computed up to this point
|
Type Parameters
| Name |
Description |
| T |
The distribution type.
|
Marginal<T>(String, String)
Get the query-specific marginal distribution of a variable, converted to type T
Declaration
public T Marginal<T>(string variableName, string query)
Parameters
| Type |
Name |
Description |
| String |
variableName |
Name of the variable in the generated code
|
| String |
query |
QueryType name. For example, GibbsSampling answers 'Marginal', 'Samples', and 'Conditionals' queries
|
Returns
Type Parameters
| Name |
Description |
| T |
The distribution type.
|
RatingsMarginal()
Returns the marginal distribution for 'Ratings' given by the current state of the
message passing algorithm.
Declaration
public DistributionRefArray<Discrete, int> RatingsMarginal()
Returns
Reset()
Reset all messages to their initial values. Sets NumberOfIterationsDone to 0.
Declaration
SetObservedValue(String, Object)
Set the observed value of the specified variable.
Declaration
public void SetObservedValue(string variableName, object value)
Parameters
| Type |
Name |
Description |
| String |
variableName |
Variable name
|
| Object |
value |
Observed value
|
Update(Int32)
Update all marginals, by iterating message-passing an additional number of times
Declaration
public void Update(int additionalIterations)
Parameters
| Type |
Name |
Description |
| Int32 |
additionalIterations |
The number of iterations that should be executed, starting from the current message state. Messages are not reset, even if observed values have changed.
|
Events
ProgressChanged
Event that is fired when the progress of inference changes, typically at the end of one iteration of the inference algorithm.
Declaration
public event EventHandler<ProgressChangedEventArgs> ProgressChanged
Event Type
Implements