Displaying 5 results from an estimated 5 matches for "test_t".
Did you mean:
test_
2011 Jan 24
5
Train error:: subscript out of bonds
...it reaches to an error that ?subscript out
of bonds? error. I don?t understand why
Any help would be great
thanks
#######
for (i in 1:10)
{
fit1<-NULL;
x<-NULL;
x<-which(number==i)
trainset<-d[-x,]
testset<-d[x,]
train1<-trainset[,-ncol(trainset)]
train1<-train1[,-(1)]
test_t<-testset[,-ncol(testset)]
species_test<-as.factor(testset[,ncol(testset)])
test_t<-test_t[,-(1)]
####
#CARET::TRAIN
####
fit1<-train(train1,as.factor(trainset[,ncol(trainset)]),"svmpoly",trControl
= trainControl((method = "cv"),10,verboseIter = F),tuneLength=...
2010 Nov 23
5
cross validation using e1071:SVM
...#########################
x<-NULL
index<-cvsegments(nrow(data),10)
for(i in 1:length(index))
{
x<-matrix(index[i])
testset<-data[x[[1]],]
trainset<-data[-x[[1]],]
species<-as.factor(trainset[,ncol(trainset)])
train1<-trainset[,-ncol(trainset)]
train1<-train1[,-(1)]
test_t<-testset[,-ncol(testset)]
species_test<-as.factor(testset[,ncol(testset)])
test_t<-test_t[,-(1)]
model_true1 <- svm(train1,species)
pred_true1<-predict(model_true1,test_t)
stat_result<- confusionMatrix(pred_true1,species_test)
stat_true[[i]]<-as.matrix(stat_result,what=&q...
2014 Oct 31
0
[PATCH 2/3] fish: basic tests for readline escaping
...ltiword_unescape (void)
+{
+ return eq_bracket(bs_unescape_filename, "more\\ than\\ one\\ word", "more than one word");
+}
+
+int
+test_nonprinting_unescape (void)
+{
+ return eq_bracket(bs_unescape_filename, "\\xac\\xec\\b", "\xac\xec\b");
+}
+
+
+
+struct test_t {
+ char *name;
+ int (*fn)(void);
+ int expect;
+};
+
+struct test_t tests[] = {
+ { .name = "test empty escape", .fn = test_empty_escape, .expect = 1},
+ { .name = "test empty unescape", .fn = test_empty_unescape, .expect = 1},
+ { .name = "test single space escape&...
2014 Oct 31
6
[PATCH 0/3] WIP readline escaping functions
From: Maros Zatko <hacxman@gmail.com>
Auxiliary functions for readline to support space character escaping
in filenames in future.
Escaping function is taken from fish.c (used to be parse_quoted_string)
plus its un-escaping counterpart. There are a few tests for both.
Maros Zatko (3):
fish: rl.{c,h} - escaping functions for readline
fish: basic tests for readline escaping
autotools:
2019 Mar 16
0
[ANNOUNCE] xtrans 1.4.0
...ncluding support only used by
lbxproxy and pre-1.4.0 versions of libX11, as well as support for obsolete
SysV x86 platforms. It also provides some bug fixes & other maintenance work.
Adam Jackson (6):
autogen: Add a default patch prefix
Remove CLTS code
unifdef LBXPROXY_t and TEST_t
Make FreeConnInfo static
Remove GetMyAddr
Revert "Make FreeConnInfo static"
Alan Coopersmith (7):
Remove support for SysV on x86 platforms other than Solaris & SCO
Set freeXLOCAL to NULL after freeing it to prevent double frees
Use strcasecmp if it...