search for: fold1

Displaying 5 results from an estimated 5 matches for "fold1".

Did you mean: fold
2011 Aug 02
0
[LLVMdev] clang: Manual unfolding doesn't match automatic unfolding
...LOOP(3); LOOP(4); const uint64_t mask = (1LL << 51) - 1; for (int i = 0; i < 5; i++) { r->l[i] = ((uint64_t) t[i] & mask) + (i == 0 ? 19 : 1) * (uint64_t)(t[(i + 4) % 5] >> 51); } } % clang -O4 -S -o f.l f.c If you change the loop to the unrolled version: #define FOLD1(i) r->l[i] = ((uint64_t) t[i] & mask) + (i == 0 ? 19 : 1) * (uint64_t)(t[(i + 4) % 5] >> 51) FOLD1(0); FOLD1(1); FOLD1(2); FOLD1(3); FOLD1(4); you get different code, which is very sad-making. Any ideas? -- Taral <taralx at gmail.com> "Please let me know if there's...
2017 Oct 22
0
Test set and Train set in Caret package train function
...dom forest method, I do the following in Caret: set.seed(12) train_control <- trainControl(method="cv", number=5,savePredictions = TRUE) rfmodel <- train(Species~., data=iris, trControl=train_control, method="rf") first_holdout <- subset(rfmodel$pred, Resample == "Fold1") str(first_holdout) 'data.frame': 90 obs. of 5 variables: $ pred : Factor w/ 3 levels "setosa","versicolor",..: 1 1 1 1 1 1 1 1 1 1 $ obs : Factor w/ 3 levels "setosa","versicolor",..: 1 1 1 1 1 1 1 1 1 1 $ rowIndex: int 2 3 9 11 25 2...
2011 Jul 28
0
[LLVMdev] Spills and values present in both registers & stack
On Tue, Jul 26, 2011 at 11:35 AM, Taral <taralx at gmail.com> wrote: > > One piece of code I'm writing has a lot of intermediates, and I'm > trying to optimize down the number of memory accesses. Here's a > snippet from the start of the function, where I think there is some > low-hanging fruit: > > # BB#0: >        pushq   %rbp >        pushq   %r15
2011 Jul 26
3
[LLVMdev] Spills and values present in both registers & stack
One piece of code I'm writing has a lot of intermediates, and I'm trying to optimize down the number of memory accesses. Here's a snippet from the start of the function, where I think there is some low-hanging fruit: # BB#0: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, %rcx movq %rdi, -16(%rsp) # 8-byte Spill movq (%rsi), %rdi movq
2017 Oct 16
1
ROC curve for each fold in one plot
...eed(1) > train_control <- trainControl(method="cv", number=5,savePredictions = TRUE,classProbs = TRUE) > output <- train(Species~., data=iris, trControl=train_control, method="rf") > library(pROC) > selectedIndices <- output$pred$Resample == "Fold1" > plot.roc(output$pred$obs[selectedIndices],output$pred$setosa[selectedIndices]) > selectedIndices <- output$pred$Resample == "Fold2" > plot.roc(output$pred$obs[selectedIndices],output$pred$setosa[selectedIndices]) > selectedIndices <- output$pred$Resample...