proba_1_obs: Posterior probabilities

Description Usage Arguments Value

View source: R/parall.R

Description

Get the posterior probabilites from a row of a test dataset using the NBAYES object created while fit proba_1_obs gives the probabilities of the observation (row) to belong to the different modalities of the variable to predict Y.

Usage

1
proba_1_obs(ligne_df, nbayes)

Arguments

ligne_df

row of the test dataframe to discretize

nbayes

the nbayes object return by fit() function

Value

a vector containing the conditionnal probability for each modality to predict


ldelecourt/NBC_package documentation built on Dec. 16, 2019, 10:51 p.m.