Ejemplo n.º 1
0
 public PoptvrSystem(DataSet dataset, ClusterSetting clusterSetting, ClusterFacadeInterface clusterFacade, Settings settings)
 {
     this.dataset = dataset;
     this.clusterSetting = clusterSetting;
     this.clusterFacade = clusterFacade;
     this.appConfig = new AppConfig(settings);
 }
Ejemplo n.º 2
0
        public static ClusterSetting getClusterSettings(Settings settings)
        {
            int inpuClusterSize = settings.InputClusterSize;
            int outputClusterSize = settings.OutputClusterSize;

            int maxTrainCycleNumber = settings.MaxTrainCycleNumber;
            int printOutInterval = settings.PrintOutInterval;
            double widthConstant = settings.WidthConstant;
            double maxError = settings.MaxError;
            double learningRate = settings.LearningRate;

            ClusterSetting clusterSetting = new ClusterSetting(inpuClusterSize, outputClusterSize, maxTrainCycleNumber, printOutInterval, widthConstant, maxError, learningRate);
            return clusterSetting;
        }
Ejemplo n.º 3
0
        public AppConfig(Settings settings)
        {
            InputClusterSize = settings.InputClusterSize;
            OutputClusterSize = settings.OutputClusterSize;
            MaxTrainCycleNumber = settings.MaxTrainCycleNumber;
            PrintOutInterval = settings.PrintOutInterval;
            WidthConstant = settings.WidthConstant;
            MaxError = settings.MaxError;
            LearningRate = settings.LearningRate;
            TrainingFileAddress = settings.TrainingFileAddress;
            TestingFileAddress = settings.TestingFileAddress;
            OutputFolderAddress = settings.OutputFolderAddress;

            ClusteringMethod = settings.ClusterMethod;
        }