Search found 9 matches

by lizbona
Mon May 17, 2010 2:48 pm
Forum: SMILE
Topic: Missing values in test set
Replies: 3
Views: 7786

my testing is done as you mentioned above. I do it right now by puting setEvidence, and I am catching smileException. It is thrown when there is -1 index. I guess index -1 goes with missing value '?'
by lizbona
Sun May 16, 2010 5:47 pm
Forum: SMILE
Topic: Missing values in test set
Replies: 3
Views: 7786

Missing values in test set

I want to learn network from data set with no missing values and then test it on data set that contains some missing values. I use readFile(path, missingValueToken) when reading training set (which is complete) and testing set (which has some missing values marked with missingValueToken). Then I ...
by lizbona
Fri Apr 30, 2010 9:36 pm
Forum: SMILE
Topic: Matching model to data
Replies: 9
Views: 15448

ok, i guess problem solved, I was serving the refference to null network
by lizbona
Fri Apr 30, 2010 3:18 pm
Forum: SMILE
Topic: Matching model to data
Replies: 9
Views: 15448

Hi, thanks for response. I tried to create DataMatch table. I do it in below code snippet:
index=0;
for(Pair pair : connection){
ds.addIntVariable(pair.getVariableId());
dataMatch[index] = new DataMatch();
dataMatch[index].column = index;
dataMatch[index++].node = net.getNode(pair.getNodeId ...
by lizbona
Mon Apr 26, 2010 12:37 pm
Forum: SMILE
Topic: Matching model to data
Replies: 9
Views: 15448

Hi again, I still try to face this problem. So if I want to match outcomes, then I need to reread dataSet from its file. Then if variable has states 's1_below_33', 's2_33_42' and 's3_42_up' and second state is connected with first model outcome and third with second then I need to call setStateNames ...
by lizbona
Tue Apr 20, 2010 12:48 pm
Forum: SMILE
Topic: Matching model to data
Replies: 9
Views: 15448

Hi, thank you for reply. My problem with setting target is solved. It was indeed problem with setting the same 'target state' to node as it was before. But according to first problem, if EM doesn't match the outcomes, then what is the reason of doing connections between the outcomes in genie, right ...
by lizbona
Sun Apr 18, 2010 6:16 pm
Forum: SMILE
Topic: Matching model to data
Replies: 9
Views: 15448

Hi, I have also problem which is not connected with subject. When I try to change target property of node in network I get native error such: smile.SMILEException: Cannot change target status for node 'Node1'
at smile.Network.setTarget(Native Method) Is there need to be fulfilled some extra ...
by lizbona
Sun Apr 18, 2010 12:23 pm
Forum: SMILE
Topic: Matching model to data
Replies: 9
Views: 15448

Matching model to data

Hi, I have an appplication where I need to match networks model to dataSet. It will be used due to learn networks parameters via EM algorithm. I have in my applications logic recorded which models nodes are connected with which dataSet columns. I assume that I need to use EM learn method with ...
by lizbona
Mon Mar 22, 2010 1:09 pm
Forum: SMILE
Topic: cross validation
Replies: 1
Views: 4472

cross validation

Hi, I need to implement cross-validation method using jSmile(java based) library. I readed previous subject about cross validation. But I don't know how to split the dataset into two subsets(training and testing). Will I have to read all the data from file, then split it into my program, save it ...