Package fasp.datatypes

Examples of fasp.datatypes.ConsequenceOp


        cf = null;
        r.gc();
        System.out.println(ff.toString());
        try{
            GroundProgram gp6 = sb.makeGroundProgram(ff, new MULTIMIN(), new FPROD(), new FPROD());
            ConsequenceOp imcons6 = new ConsequenceOp(gp6);
            FaspInterpretation model6 = imcons6.computeLFP(main_resource_id+"_MULTIMIN_FPROD_FPROD");
            GroundProgram gp5 = sb.makeGroundProgram(ff, new MULTIMIN(), new TW(), new TW());
            ConsequenceOp imcons5 = new ConsequenceOp(gp5);
            FaspInterpretation model5 = imcons5.computeLFP(main_resource_id+"_MULTIMIN_TW_TW");
            GroundProgram gp1 = sb.makeGroundProgram(ff, new MULTIMIN(), new FPROD(), new FPROD());
            ConsequenceOp imcons1 = new ConsequenceOp(gp1);
            FaspInterpretation model1 = imcons1.computeLFP(main_resource_id+"_MULTIMIN_FPROD_TW");
            GroundProgram gp = sb.makeGroundProgram(ff, new WSUM(), new TW(), new FPROD());
            ConsequenceOp imcons = new ConsequenceOp(gp);
            FaspInterpretation model = imcons.computeLFP(main_resource_id+"_WSUM_TW_FPROD");
            GroundProgram gp2 = sb.makeGroundProgram(ff, new MULTIMIN(), new TW(), new FPROD());
            ConsequenceOp imcons2 = new ConsequenceOp(gp2);
            FaspInterpretation model2 = imcons2.computeLFP(main_resource_id+"_MULTIMIN_TW_FPROD");
            GroundProgram gp3 = sb.makeGroundProgram(ff, new WSUM(), new FPROD(), new TW());
            ConsequenceOp imcons3 = new ConsequenceOp(gp3);
            FaspInterpretation model3 = imcons3.computeLFP(main_resource_id+"_WSUM_FPROD_TW");
            GroundProgram gp4 = sb.makeGroundProgram(ff, new MULTIMIN(), new FPROD(), new TW());
            ConsequenceOp imcons4 = new ConsequenceOp(gp4);
            FaspInterpretation model4 = imcons4.computeLFP(main_resource_id+"_MULTIMIN_FPROD_TW");
        }catch(UnsupportedItemException ex){
            System.err.println(ex);
        }
    }
View Full Code Here


                rules.add(new GroundRegularRule(op3_t1t2, op3_t1t2_list, op3));
                rules.add(new GroundRegularRule(op3_t2t1, op3_t1t2_list, op3));
            }
        }

        ConsequenceOp imcons = new ConsequenceOp(new GroundProgram(rules));
    FaspInterpretation model = imcons.computeLFP("");
        System.out.println(model);
    }
View Full Code Here

        //main_resource_id = new Integer(2814022);
        SimilarityBuilder sb = new SimilarityBuilder(c);
        CollaborativeFiltering cf = new CollaborativeFiltering(1);
        FilteredFolksonomy ff = cf.doRTFiltering(c, main_resource_id);
        GroundProgram gp = sb.makeGroundProgram(ff, c);
        ConsequenceOp imcons = new ConsequenceOp(gp);
    FaspInterpretation model = imcons.computeLFP("");
        System.out.println(model.getSIM());
    }
View Full Code Here

    }

    public static void runPrograms(){
        FileInputStream fis = null;
        ObjectInputStream in = null;
        ConsequenceOp imcons = null;
        FaspInterpretation model = null;
        try{
//            for(int i=1; i<=6; i++){
//                fis = new FileInputStream("gp"+i+"b29466cb023c26ff231f401bda45eb9d_31.ser");
//                in = new ObjectInputStream(fis);
//                GroundProgram gp = (GroundProgram)in.readObject();
//                imcons = new ConsequenceOp(gp);
//                model = imcons.computeLFP("gp"+i+"b29466cb023c26ff231f401bda45eb9d_31");
//            }
//            for(int i=5; i<=5; i++){
//                fis = new FileInputStream("gp"+i+"a507db8be62cddf1c7a21f881ff6a6ec_21.ser");
//                in = new ObjectInputStream(fis);
//                GroundProgram gp = (GroundProgram)in.readObject();
//                imcons = new ConsequenceOp(gp);
//                model = imcons.computeLFP("gp"+i+"a507db8be62cddf1c7a21f881ff6a6ec_21");
//            }
//            for(int i=1; i<=1; i++){
//                fis = new FileInputStream("gp"+i+"2a920a1710b2d8b7eccb6eba7a18285b_21.ser");
//                in = new ObjectInputStream(fis);
//                GroundProgram gp = (GroundProgram)in.readObject();
//                imcons = new ConsequenceOp(gp);
//                model = imcons.computeLFP("gp"+i+"2a920a1710b2d8b7eccb6eba7a18285b_21");
//            }
//            for(int i=1; i<=6; i++){
//                fis = new FileInputStream("gp"+i+"8ee67f4565a330584b667a021bb71c69_21.ser");
//                in = new ObjectInputStream(fis);
//                imcons = new ConsequenceOp((GroundProgram)in.readObject());
//                model = imcons.computeLFP("gp"+i+"8ee67f4565a330584b667a021bb71c69_21");
//            }
//            for(int i=1; i<=6; i++){
//                fis = new FileInputStream("gp"+i+"592dc5a5ef7cfa25c5dec4df075fc503_21.ser");
//                in = new ObjectInputStream(fis);
//                imcons = new ConsequenceOp((GroundProgram)in.readObject());
//                model = imcons.computeLFP("gp"+i+"592dc5a5ef7cfa25c5dec4df075fc503_21");
//            }
            for(int i=3; i<=3; i++){
                fis = new FileInputStream("gp"+i+"689e39f0ab40984812421ef3a462cfd4_21.ser");
                in = new ObjectInputStream(fis);
                GroundProgram gp = (GroundProgram)in.readObject();
                imcons = new ConsequenceOp(gp);

//                model = imcons.computeLFP("gp"+i+"689e39f0ab40984812421ef3a462cfd4_21");
            }
            in.close();
        } catch(IOException ex){
View Full Code Here

TOP

Related Classes of fasp.datatypes.ConsequenceOp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.