matthiasspeidel / hmi

Hierarchical Multiple Imputation
5 stars 1 forks source link

[Bug]: Error while saving file as training model in LDA and SVM ( str2lang(x): :1:8: unexpected symbol) #4

Closed vivekkk21 closed 1 year ago

vivekkk21 commented 1 year ago

I am trying to save linear discriminant analysis and support vector machine as training model in format of .jaspML but this error keeps on showing and not able to save the file Error:

This analysis terminated unexpectedly.

Error in str2lang(x): :1:8: unexpected symbol 1: Actual Reason ^

Stack trace tryCatchOne(expr, names, parentenv, handlers[[1]])

doTryCatch(return(expr), name, parentenv, handler)

withCallingHandlers(expr = analysis(jaspResults = jaspResults, dataset = dataset, options = options), error = .addStackTrace)

analysis(jaspResults = jaspResults, dataset = dataset, options = options)

.mlClassificationTableSummary(dataset, options, jaspResults, ready, position = 1, type = 'lda')

.decodeJaspMLobject(model)

.decodeJaspMLobject.lda(model)

formula(paste(decodeColNames(as.character(model$terms)[2]), '~', paste0(decodeColNames(strsplit(as.character(model$terms)[3], split = ' + ', fixed = TRUE)[[1]]), collapse = ' + ')))

formula.character(paste(decodeColNames(as.character(model$terms)[2]), '~', paste0(decodeColNames(strsplit(as.character(model$terms)[3], split = ' + ', fixed = TRUE)[[1]]), collapse = ' + ')))

str2lang(x) I am attaching the relevent files Bug files.zip