LP= logp(MDL,X)returns the log无条件的概率密度LP预测数据数据中的观察结果Xusing the naive Bayes classification model for incremental learningMDL. You can useLPto identify outliers in the training data.
Determine unconditional density thresholds for outliers by using the traditionally trained model and training data. Observations in the streaming data yielding densities beyond the thresholds are considered outliers.
相对于创建所学的内容,检测其余数据中的离群值ttmdl. Simulate a data stream by processing 1 observation at a time. At each iteration, calllogpto compute the log unconditional probability density of the observation and store each value.
MDL—Naive Bayes classification model for incremental learning incrementalClassificationNaiveBayesmodel object
渐进学习的天真贝叶斯分类模型,指定为incrementalClassificationNaiveBayes模型对象。您可以创建MDLdirectly or by converting a supported, traditionally trained machine learning model using theincrementalLearnerfunction. For more details, see the corresponding reference page.
您必须配置MDLto compute the log conditional probability densities on a batch of observations.
如果MDL是经过转换的传统训练模型,您可以在没有任何修改的情况下计算日志条件概率。
Otherwise,MDL.DistributionParametersmust be a cell matrix withMDL.NumPredictors> 0 columns and at least one row, where each row corresponds to each class name inmdl.classnames.
logp万博1manbetx仅支持浮点输入预测数据。如果输入模型MDLrepresents a converted, traditionally trained model fit to categorical data, usedummyvarto convert each categorical variable to a numeric matrix of dummy variables, and concatenate all dummy variable matrices and any other numeric predictors. For more details, see虚拟变量.
For eachj= 1 throughn, 如果X(j,:)至少包含一个NaN,LP(j)是NaN.
年代elect the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.