Ejemplo n.º 1
0
        private void Button_Click_10(object sender, RoutedEventArgs e)
        {
            S.SyntheticDataGenerator generator = new S.SyntheticDataGenerator(70, 50);
            generator.GenerateSyntheticData();
            generator.GenerateSyntheticDataTest();

            ihdr = new IHDR();
            foreach (var item in generator.samples)
            {
                ihdr.AddSample(item.Attributes.ToArray(), item.AttributesY.ToArray(), item.Label);
            }
            foreach (var item in generator.samplesTest)
            {
                ihdr.AddTestingSample(item.Attributes.ToArray(), (double)item.Label);
            }

            ihdr.BuildTree_Synthetic();
            ihdr.EvaluateClustersLabels();
            ihdr.SaveLeafClustersToPicture();
        }
Ejemplo n.º 2
0
        private void Button_Click_11(object sender, RoutedEventArgs e)
        {
            S.SyntheticDataGenerator generator = new S.SyntheticDataGenerator(100, 100);
            generator.GenerateSyntheticData();
            generator.GenerateSyntheticDataTest();

            ihdr = new IHDR();
            foreach (var item in generator.samples)
            {
                ihdr.AddSample(item.Attributes.ToArray(), item.AttributesY.ToArray(), item.Label);
            }
            foreach (var item in generator.samplesTest)
            {
                ihdr.AddTestingSample(item.Attributes.ToArray(), (double)item.Label);
            }

            ihdr.BuildTree_Synthetic();
            ihdr.EvaluateAllClustersLabels();
            ihdr.EvaluateDepth();
            ihdr.SaveLayersToBmp(@"D:\Levels");
        }