Click here to Skip to main content
14,265,405 members
   

Java

 
GeneralRe: What database shoud i pick for my java app? Pin
Member 1413007929-Apr-19 10:02
memberMember 1413007929-Apr-19 10:02 
GeneralRe: What database shoud i pick for my java app? Pin
Maciej Los29-Apr-19 10:11
protectorMaciej Los29-Apr-19 10:11 
AnswerRe: What database shoud i pick for my java app? Pin
Gerry Schmitz29-Apr-19 15:23
mveGerry Schmitz29-Apr-19 15:23 
GeneralRe: What database shoud i pick for my java app? Pin
Richard MacCutchan29-Apr-19 21:16
protectorRichard MacCutchan29-Apr-19 21:16 
GeneralRe: What database shoud i pick for my java app? Pin
Dr.Walt Fair, PE5-May-19 7:42
professionalDr.Walt Fair, PE5-May-19 7:42 
AnswerMessage Closed Pin
1-May-19 4:52
memberMember 143515841-May-19 4:52 
AnswerRe: What database shoud i pick for my java app? Pin
Kelly Ferguson19-May-19 22:57
memberKelly Ferguson19-May-19 22:57 
AnswerRe: What database shoud i pick for my java app? Pin
remote4me21-Jun-19 2:40
memberremote4me21-Jun-19 2:40 
QuestionHow to add JMenu Pin
Member 1431822321-Apr-19 0:57
memberMember 1431822321-Apr-19 0:57 
AnswerRe: How to add JMenu Pin
Richard MacCutchan21-Apr-19 22:21
protectorRichard MacCutchan21-Apr-19 22:21 
AnswerRe: How to add JMenu Pin
E2E Training Academy8-Aug-19 0:37
memberE2E Training Academy8-Aug-19 0:37 
Questionspeech recognition project in java for controlling your pc using voice java Pin
Member 1422299418-Apr-19 23:56
memberMember 1422299418-Apr-19 23:56 
AnswerRe: speech recognition project in java for controlling your pc using voice java Pin
Richard MacCutchan19-Apr-19 0:34
protectorRichard MacCutchan19-Apr-19 0:34 
Questiong.drawString is not printing the correct value in Jpanel. Pin
chandra12212-Apr-19 5:01
memberchandra12212-Apr-19 5:01 
QuestionRe: g.drawString is not printing the correct value in Jpanel. Pin
Richard MacCutchan12-Apr-19 6:19
protectorRichard MacCutchan12-Apr-19 6:19 
AnswerRe: g.drawString is not printing the correct value in Jpanel. Pin
chandra12212-Apr-19 18:58
memberchandra12212-Apr-19 18:58 
GeneralRe: g.drawString is not printing the correct value in Jpanel. Pin
Richard MacCutchan12-Apr-19 20:51
protectorRichard MacCutchan12-Apr-19 20:51 
GeneralRe: g.drawString is not printing the correct value in Jpanel. Pin
chandra12212-Apr-19 22:57
memberchandra12212-Apr-19 22:57 
GeneralRe: g.drawString is not printing the correct value in Jpanel. Pin
Richard MacCutchan12-Apr-19 23:23
protectorRichard MacCutchan12-Apr-19 23:23 
QuestionPreview implementing 10 cross validation Pin
Member 142144734-Apr-19 22:41
memberMember 142144734-Apr-19 22:41 
I am working in PSO for feature selection. I use KNN algorithm with 10 cross validation for the evaluation. before I use the 10cv the algorithm is quite cheap meaning no high computational cost has been faced, but after turning to 10cv the code is running too slow, sometimes for days. may I know if there is any problem in performing the 10cv. I use the following code to perform 10 cv:

dataset data = FileHandler.loadDataset(new File(dataSetFileName+".csv"), noFeatures, ","); 
                //crossvalidationmat
                  int[][] crossvalidationmat= { 
                    {1,2,3,4,5,6,7,8,9}, 
                    {0,2,3,4,5,6,7,8,9}, 
                    {0,1,3,4,5,6,7,8,9},
                    {0,1,2,4,5,6,7,8,9}, 
                    {0,1,2,3,5,6,7,8,9},
                    {0,1,2,3,4,6,7,8,9},
                    {0,1,2,3,4,5,7,8,9},
                    {0,1,2,3,4,5,6,8,9},
                    {0,1,2,3,4,5,6,7,9},
                    {0,1,2,3,4,5,6,7,8},
                    };
        Dataset[] folds = data.folds((10), new Random(1));
        Dataset training = new DefaultDataset();    //training, testing
        Dataset testing = new DefaultDataset();   
        int[] tr =new int[9];
        int[] te = new int[1]; 
for (int di = 0; di < crossvalidationmat.length; di++) { // start crossvalidation
       System.out.println(crossvalidationmat[di].length);
for (int xj = 0; xj < crossvalidationmat[di].length; xj++) { 
         tr[xj]=crossvalidationmat[di][xj];
         System.out.print(tr[xj]);
    }
    te[0]=di;
    System.out.println("\nTraing  te[0]=di here:  "+te[0]);
        for (int i = 0; i < tr.length; i++) {
            training.addAll(folds[tr[i]]);
        }
        for (int i = 0; i < te.length; i++) {
            testing.addAll(folds[te[i]]);
        }
 Dataset[] foldsTrain = training.folds(numFolds, new Random(1));
//other code
}

AnswerMessage Closed Pin
8-Apr-19 18:52
memberdurga65178-Apr-19 18:52 
QuestionGlobal variables are not supported in C# Pin
Brian_TheLion27-Mar-19 21:04
memberBrian_TheLion27-Mar-19 21:04 
AnswerRe: Global variables are not supported in C# Pin
Richard MacCutchan27-Mar-19 22:26
protectorRichard MacCutchan27-Mar-19 22:26 
GeneralRe: Global variables are not supported in C# Pin
Brian_TheLion27-Mar-19 23:40
memberBrian_TheLion27-Mar-19 23:40 
GeneralRe: Global variables are not supported in C# Pin
Richard MacCutchan27-Mar-19 23:45
protectorRichard MacCutchan27-Mar-19 23:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.