Package com.mapr.stats.random

Examples of com.mapr.stats.random.NormalDistributionSampler


        List<Callable<Integer>> tasks = ImmutableList.of(
                new Callable<Integer>() {
                    @Override
                    public Integer call() {
                        try {
                            totalRegret("regret-normal-0.1.tsv", "local-normal-0.1.tsv", 1000, 2, 10000, new GammaNormalBayesFactory(), new NormalDistributionSampler(0.1, new Random()));
                            System.out.printf("2\n");
                        } catch (FileNotFoundException e) {
                            e.printStackTrace();
                        }
                        return null;
                    }
                },
                new Callable<Integer>() {
                    @Override
                    public Integer call() {
                        try {
                            totalRegret("regret-epsilon-normal-1.tsv", "local-epsilon-normal-1.tsv", 1000, 2, 10000, new EpsilonGreedyFactory(0.05), new NormalDistributionSampler(1, new Random()));
                            System.out.printf("2e\n");
                        } catch (FileNotFoundException e) {
                            e.printStackTrace();
                        }
                        return null;
                    }
                },


                new Callable<Integer>() {
                    @Override
                    public Integer call() {
                        try {
                            totalRegret("regret-normal-1.tsv", "local-normal-1.tsv", 300, 2, 200000, new GammaNormalBayesFactory(), new NormalDistributionSampler(1, new Random()));
                            System.out.printf("normal 1\n");
                        } catch (FileNotFoundException e) {
                            e.printStackTrace();
                        }
                        return null;
                    }
                },

                new Callable<Integer>() {
                    @Override
                    public Integer call() {
                        try {
                            totalRegret("regret-normal-10x0.1.tsv", "local-normal-10x0.1.tsv", 1000, 10, 1000, new GammaNormalBayesFactory(), new NormalDistributionSampler(0.1, new Random()));
                            System.out.printf("10\n");
                        } catch (FileNotFoundException e) {
                            e.printStackTrace();
                        }
                        return null;
                    }
                },

                new Callable<Integer>() {
                    @Override
                    public Integer call() {
                        try {
                            totalRegret("regret-normal-100x0.1.tsv", "local-normal-100x0.1.tsv", 1000, 100, 1000, new GammaNormalBayesFactory(), new NormalDistributionSampler(.1, new Random()));
                            System.out.printf("100\n");
                        } catch (FileNotFoundException e) {
                            e.printStackTrace();
                        }
                        return null;
View Full Code Here

TOP

Related Classes of com.mapr.stats.random.NormalDistributionSampler

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.