We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"Error in -c(train.samples) : invalid argument to unary operator" when I launch crossv... Here is my code :
crossv
library(stylo) training.set=read.csv("C:/Users/etien/Downloads/two_subcorpora/freq_table_reference_set.csv",sep = " ") ###inversion of rows and columns required for crossv### training.set=t(training.set) results=crossv(training.set,cv.mode = "stratified",cv.folds=5,classification.method = "svm")
library(stylo)
training.set=read.csv("C:/Users/etien/Downloads/two_subcorpora/freq_table_reference_set.csv",sep = " ")
training.set=t(training.set)
results=crossv(training.set,cv.mode = "stratified",cv.folds=5,classification.method = "svm")
The text was updated successfully, but these errors were encountered:
Two things:
(1) when loading the file from disk, use the parameter row.names = 1 to tell R where your rownames are, namely in the 1st column:
row.names = 1
training.set=read.csv("C:/Users/etien/Downloads/two_subcorpora/freq_table_reference_set.csv", sep = " ", row.names=1)
(2) the stratified cross-validation is not fully implemented in the function crossv() yet. It's still pending. Try leave-one-out instead:
crossv()
training.set=t(training.set) results=crossv(training.set, classification.method = "svm")
I hope this helps!
Sorry, something went wrong.
No branches or pull requests
"Error in -c(train.samples) : invalid argument to unary operator" when I launch
crossv
... Here is my code :library(stylo)
training.set=read.csv("C:/Users/etien/Downloads/two_subcorpora/freq_table_reference_set.csv",sep = " ")
###inversion of rows and columns required for crossv###
training.set=t(training.set)
results=crossv(training.set,cv.mode = "stratified",cv.folds=5,classification.method = "svm")
The text was updated successfully, but these errors were encountered: