Description Usage Arguments Details Value See Also

View source: R/sequence_model.R

Obtains predictions from a fitted sequence model object.

1 2 3 |

`object` |
a fitted object of class |

`new_seqs` |
an object of class |

`new_covariates` |
a new covariate matrix with which to predict. |

`type` |
a string specifying whether to predict responses ( |

`...` |
further arguments to be passed to |

It unserialize `object$model_fit`

to obtain a keras model of class
`"keras.engin.training.Model"`

and then calls `predict`

to obtain predictions.

If `type="response"`

, a vector of predictions. The vector gives the
probabilities of the response variable being one if `response_type="binary"`

.
If `type="feature"`

, a matrix of rnn outputs. If `type="both"`

, a list
containing both the vector of response variable prediction and the rnn output matrix.

`seqm`

for fitting sequence models.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.