Examples of JensenShannonDivergence


Examples of com.guokr.simbase.score.JensenShannonDivergence

            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 {
                scoring = new CosineSquareSimilarity();
            }

            int limits = kryo.readObject(input, int.class);
View Full Code Here

Examples of com.guokr.simbase.score.JensenShannonDivergence

        SimScore scoring = null;
        if (funcscore.equals("cosinesq")) {
            scoring = new CosineSquareSimilarity();
        }
        if (funcscore.equals("jensenshannon")) {
            scoring = new JensenShannonDivergence();
        }

        VectorSet source = vectorSets.get(vkeySource);
        VectorSet target = vectorSets.get(vkeyTarget);
        Recommendation rec = new Recommendation(source, target, scoring, context.getInt("maxlimits"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.