convertBinary2HMP {MDP} | R Documentation |
Convert a HMDP model stored in binary format to a hmp (xml) file. The function simply parse the binary files and create hmp files using the hmpMDPWriter.
convertBinary2HMP(binNames=c("stateIdx.bin","stateIdxLbl.bin","actionIdx.bin", "actionIdxLbl.bin","actionWeight.bin","actionWeightLbl.bin","transProb.bin") ,out='r_convert.hmp', duration=1)
binNames |
A character vector of length 7 giving the names of the binary files storing the model. |
out |
The name of the hmp file (e.g. mdp.hmp). |
duration |
Weight number storing the duration. |
NULL (invisible).
Note all indexes are starting from zero (C/C++ style).
Lars Relund lars@relund.dk
convertHMP2Binary.
f = system.file("inst/models", "mdp.xml", package = "MDP") convertHMP2Binary("mdp.hmp") stateIdxDf() actionInfo()