Package com.guokr.simbase

Examples of com.guokr.simbase.SimScore


        }

        @Override
        public Recommendation read(Kryo kryo, Input input, Class<Recommendation> type) {
            String scoringName = kryo.readObject(input, String.class);
            SimScore scoring;
            if (scoringName.equals("cosinesq")) {
                scoring = new CosineSquareSimilarity();
            } else if (scoringName.equals("jensenshannon")) {
                scoring = new JensenShannonDivergence();
            } else {
View Full Code Here


    public void iacc(String vkey, int vecid, int[] pairs) {
        this.vectorSets.get(vkey)._accumulate(vecid, pairs);
    }

    public void rmk(String vkeySource, String vkeyTarget, String funcscore) {
        SimScore scoring = null;
        if (funcscore.equals("cosinesq")) {
            scoring = new CosineSquareSimilarity();
        }
        if (funcscore.equals("jensenshannon")) {
            scoring = new JensenShannonDivergence();
View Full Code Here

TOP

Related Classes of com.guokr.simbase.SimScore

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.