Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Incompatible ocpd settings with input ocpd object" #2

Open
multimeric opened this issue Feb 19, 2021 · 0 comments
Open

"Incompatible ocpd settings with input ocpd object" #2

multimeric opened this issue Feb 19, 2021 · 0 comments

Comments

@multimeric
Copy link

I have encountered this issue many times. Here is a simple example, using a workaround for #1:

require('ocp')
#> Loading required package: ocp
dims = 8
cpd = initOCPD(
    dims=dims,
    init_params=replicate(dims, list(m = 0, k = 0.01, a = 0.01, b =1e-04), simplify=F),
    initProb = replicate(dims, ocp:::gaussian_init, simplify=F)
)
onlineCPD(datapts=rep(1, dims), cpd)
#> [1] "Incompatible ocpd settings with input ocpd object."
#> Error in if (as.character(ocpd_settings[[set_id]]) != as.character(oCPD$ocpd_settings[[set_id]])) {: argument is of length zero

Created on 2021-02-19 by the reprex package (v1.0.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant