function Main() |
read inputs; |
numinputs = sizeInputs; |
read outputs; |
numoutputs = sizeOutputs; |
read cluster_method; |
matrix = [inputs outputs]; |
read data partition method; |
[knowledgeDataBase,ranges] = Fuzzification(matrix,cluster_method,numinputs,numoutputs); |
Case data partition method == random sampling: |
[trainingdataset,validationdataset,testingdataset,trainingdata,validationdata,testdata,knowledgeRuleBase] = fuzzyfication_sampling(totalmatrix); |
Case data partition method == cross validation: |
read partition method; |
read kfolds; |
[trainingdataset,validationdataset,testingdataset,trainingdata,validationdata,testdata,knowledgeRuleBase] = fuzzyfication_sampling(totalmatrix,kfolds,partition method); |
for each subset |
ShowResults(numinputs,numoutputs,fisbiggerR2,subsetdata,indicesinputs,indicesoutputs); |
end |
end |