secondOrderMarkovModel: A class to train Second Order Markov Models#'

Description Usage Arguments Examples

Description

This is an implementation of the Second Order Markov Model (SOMM) for Process Mining issues. This class provides a minimal set of methods to handle with the FOMM model:

In order to better undestand the use of such methods, please visit: www.pminer.info

The consturctor admit the following parameters: parameters.list a list containing possible parameters to tune the model.

Usage

1
secondOrderMarkovModel(parameters.list = list())

Arguments

parameters.list

a list containing the parameters. The possible ones are: 'considerAutoLoop' and 'threshold'. 'considerAutoLoop' is a boolean which indicates if the autoloops have to be admitted, while 'threshold' is the minimum value that a probability should have to do not be set to zero, in the transition matrix.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## Not run: 

# create a Loader
obj.L<-dataLoader();   

# Load a .csv 
obj.L$load.csv(nomeFile = "../otherFiles/mammella.csv",
IDName = "CODICE_SANITARIO_ADT",
EVENTName = "DESC_REPARTO_RICOVERO",
dateColumnName = "DATA_RICOVERO")

# get the loaded data
dati <- obj.L$getData()

# build a Second Order Marvov Model with a threshold of 0.2
SOMM <- secondOrderMarkovModel( 
parameters.list = list("threshold"=0.002))

# load the data
SOMM$loadDataset(dataList = dati)

# train a model
SOMM$trainModel()

# generate 10 new processes (nb: if the 
# threshold is too low, it can fail...)
aaa <- SOMM$play(numberOfPlays = 10)

# get the transition matrix
TranMatrix <- SOMM$getModel(kindOfOutput = "MM.2.Matrix.perc")



## End(Not run)

pMineR documentation built on May 2, 2019, 9:34 a.m.