source: branches/3040_VectorBasedGP/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/GPTP2021VectorBenchmarks/GPTP2021VectorBenchmarksInstanceProvider.cs @ 18058

Last change on this file since 18058 was 18058, checked in by pfleck, 11 months ago

#3040 Switched from offset-length sub-vector to "start-end with wrapping" subvector.

File size: 19.1 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System;
23using System.Collections.Generic;
24using System.IO.Compression;
25using System.Linq;
26using System.Runtime.Remoting.Messaging;
27
28namespace HeuristicLab.Problems.Instances.DataAnalysis {
29  public class GPTP2021VectorBenchmarksInstanceProvider : ResourceRegressionInstanceProvider {
30    public override string Name {
31      get { return "GPTP 2021 Vector Benchmark Problems"; }
32    }
33    public override string Description {
34      get {
35        return "";
36      }
37    }
38    public override Uri WebLink {
39      get { return null; }
40    }
41    public override string ReferencePublication {
42      get { return ""; }
43    }
44
45    protected override string FileName { get { return "GPTP2021VectorBenchmarks"; } }
46
47    public override IEnumerable<IDataDescriptor> GetDataDescriptors() {
48      return new List<ResourceRegressionDataDescriptor> {
49        new GPTP2021VectorBenchmarkDataDescriptor("test_A_01", new []{ "v1" }),
50        new GPTP2021VectorBenchmarkDataDescriptor("test_A_02", new []{ "v1" }),
51        new GPTP2021VectorBenchmarkDataDescriptor("test_A_03", new []{ "x1", "v1" }),
52        new GPTP2021VectorBenchmarkDataDescriptor("test_A_04", new []{ "x1", "x2", "v1", "v2" }),
53        new GPTP2021VectorBenchmarkDataDescriptor("test_A_05", new []{ "x1", "x2", "v1", "v2" }),
54        new GPTP2021VectorBenchmarkDataDescriptor("test_A_11", new []{ "x1", "x2", "v1", "v2" }),
55        new GPTP2021VectorBenchmarkDataDescriptor("test_A_12", new []{ "x1", "x2", "x3", "v1", "v2", "v3" }),
56        new GPTP2021VectorBenchmarkDataDescriptor("test_A_13", new []{ "x1", "x2", "x3", "v1", "v2", "v3"  }),
57        new GPTP2021VectorBenchmarkDataDescriptor("test_A_14", new []{ "x1", "x2", "x3", "x4", "x5", "v1", "v2", "v3", "v4", "v5" }),
58        new GPTP2021VectorBenchmarkDataDescriptor("test_A_15", new []{ "x1", "x2", "x3", "x4", "x5", "v1", "v2", "v3", "v4", "v5" }),
59        new GPTP2021VectorBenchmarkDataDescriptor("test_B_01", new []{ "x1", "x2", "v1", "v2" }),
60        new GPTP2021VectorBenchmarkDataDescriptor("test_B_02", new []{ "x1", "x2", "v1", "v2" }),
61        new GPTP2021VectorBenchmarkDataDescriptor("test_B_03", new []{ "x1", "x2", "v1", "v2" }),
62        new GPTP2021VectorBenchmarkDataDescriptor("test_B_04", new []{ "x1", "x2", "v1", "v2" }),
63        new GPTP2021VectorBenchmarkDataDescriptor("test_B_05", new []{ "x1", "x2", "v1", "v2", "v3" }),
64        new GPTP2021VectorBenchmarkDataDescriptor("test_B_06", new []{ "x1", "x2", "v1", "v2", "v3" }),
65        new GPTP2021VectorBenchmarkDataDescriptor("test_B_11", new []{ "x1", "x2", "x3", "x4", "v1", "v2", "v3", "v4" }),
66        new GPTP2021VectorBenchmarkDataDescriptor("test_B_12", new []{ "x1", "x2", "x3", "x4", "v1", "v2", "v3", "v4" }),
67        new GPTP2021VectorBenchmarkDataDescriptor("test_B_13", new []{ "x1", "x2", "x3", "x4", "v1", "v2", "v3", "v4" }),
68        new GPTP2021VectorBenchmarkDataDescriptor("test_B_14", new []{ "x1", "x2", "x3", "x4", "v1", "v2", "v3", "v4" }),
69        new GPTP2021VectorBenchmarkDataDescriptor("test_B_15", new []{ "x1", "x2", "x3", "x4", "x5", "v1", "v2", "v3", "v4", "v5", "v6", "v7" }),
70        new GPTP2021VectorBenchmarkDataDescriptor("test_B_16", new []{ "x1", "x2", "x3", "x4", "x5", "v1", "v2", "v3", "v4", "v5", "v6", "v7" }),
71        new GPTP2021VectorBenchmarkDataDescriptor("test_C_01", new []{ "x1", "x2", "v1", "v2", "v3", "v4", "v5", "v6"}, "y1"),
72        new GPTP2021VectorBenchmarkDataDescriptor("test_C_01", new []{ "x1", "x2", "v1", "v2", "v3", "v4", "v5", "v6"}, "y2"),
73        new GPTP2021VectorBenchmarkDataDescriptor("test_C_01", new []{ "x1", "x2", "v1", "v2", "v3", "v4", "v5", "v6"}, "y3"),
74        new GPTP2021VectorBenchmarkDataDescriptor("test_C_01", new []{ "x1", "x2", "v1", "v2", "v3", "v4", "v5", "v6"}, "y4"),
75        //new GPTP2021VectorBenchmarkDataDescriptor("test_B_14", new []{ "x1", "x2", "x3", "x4", "x5", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8" }),
76        new GPTP2021VectorBenchmarkDataDescriptor("test_I_01_Nguyen_7",         new []{ "x" }),
77        new GPTP2021VectorBenchmarkDataDescriptor("test_I_02_Keijzer_6",        new []{ "x", "y" , "z" }, "f"),
78        new GPTP2021VectorBenchmarkDataDescriptor("test_I_03_Vladislavleva_14", new []{ "x1", "x2", "x3", "x4", "x5" }),
79        new GPTP2021VectorBenchmarkDataDescriptor("test_I_04_Pagie_1",          new []{ "x", "y" }, "f"),
80        new GPTP2021VectorBenchmarkDataDescriptor("test_I_05_Poly_10",          new []{ "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10" }),
81        new GPTP2021VectorBenchmarkDataDescriptor("test_I_06_Friedman_2",       new []{ "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10" }),
82        new GPTP2021VectorBenchmarkDataDescriptor("test_M_01_Nguyen_7_M1",         new []{ "x" }),
83        new GPTP2021VectorBenchmarkDataDescriptor("test_M_02_Keijzer_6_M1",        new []{ "x", "y" , "z" }, "f"),
84        new GPTP2021VectorBenchmarkDataDescriptor("test_M_03_Vladislavleva_14_M1", new []{ "x1", "x2", "x3", "x4", "x5" }),
85        new GPTP2021VectorBenchmarkDataDescriptor("test_M_03_Vladislavleva_14_M2", new []{ "x1", "x2", "x3", "x4", "x5" }),
86        new GPTP2021VectorBenchmarkDataDescriptor("test_M_04_Pagie_1_M1",          new []{ "x", "y" }, "f"),
87        new GPTP2021VectorBenchmarkDataDescriptor("test_M_05_Poly_10_M1",          new []{ "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10" }),
88        new GPTP2021VectorBenchmarkDataDescriptor("test_M_06_Friedman_2_M1",       new []{ "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10" }),
89
90        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_A_01", Flatten(U("v1"))),
91        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_A_02", Flatten(U("v1"))),
92        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_A_03", Flatten(S("x1"), U("v1"))),
93        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_A_04", Flatten(S("x1"), S("x2"), U("v1"), U("v2"))),
94        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_A_05", Flatten(S("x1"), S("x2"), U("v1"), U("v2"))),
95        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_A_11", Flatten(S("x1"), S("x2"), U("v1"), U("v2"))),
96        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_A_12", Flatten(S("x1"), S("x2"), S("x3"), U("v1"), U("v2"), U("v3"))),
97        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_A_13", Flatten(S("x1"), S("x2"), S("x3"), U("v1"), U("v2"), U("v3"))),
98        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_A_14", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), U("v1"), U("v2"), U("v3"), U("v4"), U("v5"))),
99        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_A_15", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), U("v1"), U("v2"), U("v3"), U("v4"), U("v5"))),
100        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_01", Flatten(S("x1"), S("x2"), U("v1"), U("v2"))),
101        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_02", Flatten(S("x1"), S("x2"), U("v1"), U("v2"))),
102        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_03", Flatten(S("x1"), S("x2"), U("v1"), U("v2"))),
103        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_04", Flatten(S("x1"), S("x2"), U("v1"), U("v2"))),
104        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_05", Flatten(S("x1"), S("x2"), U("v1"), U("v2"), U("v3"))),
105        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_06", Flatten(S("x1"), S("x2"), U("v1"), U("v2"), U("v3"))),
106        //new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_04", Flatten(S("x1"), S("x2"), U("v1"), U("v2"), U("v3"), U("v4"))),
107        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_11", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), U("v1"), U("v2"), U("v3"), U("v4"))),
108        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_12", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), U("v1"), U("v2"), U("v3"), U("v4"))),
109        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_13", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), U("v1"), U("v2"), U("v3"), U("v4"))),
110        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_14", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), U("v1"), U("v2"), U("v3"), U("v4"))),
111        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_15", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), U("v1"), U("v2"), U("v3"), U("v4"), U("v5"), U("v6"), U("v7"))),
112        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_16", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), U("v1"), U("v2"), U("v3"), U("v4"), U("v5"), U("v6"), U("v7"))),
113        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_C_01", Flatten(S("x1"), S("x2"), U("v1"), U("v2"), U("v3"), U("v4"), U("v5"), U("v6")), "y1"),
114        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_C_01", Flatten(S("x1"), S("x2"), U("v1"), U("v2"), U("v3"), U("v4"), U("v5"), U("v6")), "y2"),
115        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_C_01", Flatten(S("x1"), S("x2"), U("v1"), U("v2"), U("v3"), U("v4"), U("v5"), U("v6")), "y3"),
116        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_C_01", Flatten(S("x1"), S("x2"), U("v1"), U("v2"), U("v3"), U("v4"), U("v5"), U("v6")), "y4"),
117        //new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_B_14", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), U("v1"), U("v2"), U("v3"), U("v4"), U("v5"), U("v6"), U("v7"), U("v8"))),
118        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_I_01_Nguyen_7",         Flatten(S("x"))),
119        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_I_02_Keijzer_6",        Flatten(S("x"), S("y"), S("z")), "f"),
120        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_I_03_Vladislavleva_14", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"))),
121        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_I_04_Pagie_1",          Flatten(S("x"), S("y")), "f"),
122        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_I_05_Poly_10",          Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), S("x6"), S("x7"), S("x8"), S("x9"), S("x10"))),
123        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_I_06_Friedman_2",       Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), S("x6"), S("x7"), S("x8"), S("x9"), S("x10"))),
124        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_M_01_Nguyen_7_M1",         Flatten(U("x"))),
125        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_M_02_Keijzer_6_M1",        Flatten(U("x"), U("y"), U("z")), "f"),
126        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_M_03_Vladislavleva_14_M1", Flatten(U("x1"), U("x2"), U("x3"), U("x4"), U("x5"))),
127        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_M_03_Vladislavleva_14_M2", Flatten(U("x1"), U("x2"), U("x3"), U("x4"), U("x5"))),
128        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_M_04_Pagie_1_M1",          Flatten(U("x"), U("y")), "f"),
129        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_M_05_Poly_10_M1",          Flatten(U("x1"), U("x2"), U("x3"), U("x4"), U("x5"), U("x6"), U("x7"), U("x8"), U("x9"), U("x10"))),
130        new GPTP2021VectorBenchmarkDataDescriptor("unrolled_test_M_06_Friedman_2_M1",       Flatten(U("x1"), U("x2"), U("x3"), U("x4"), U("x5"), U("x6"), U("x7"), U("x8"), U("x9"), U("x10"))),
131
132        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_A_01", Flatten(A("v1"))),
133        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_A_02", Flatten(A("v1"))),
134        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_A_03", Flatten(S("x1"), A("v1"))),
135        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_A_04", Flatten(S("x1"), S("x2"), A("v1"), A("v2"))),
136        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_A_05", Flatten(S("x1"), S("x2"), A("v1"), A("v2"))),
137        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_A_11", Flatten(S("x1"), S("x2"), A("v1"), A("v2"))),
138        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_A_12", Flatten(S("x1"), S("x2"), S("x3"), A("v1"), A("v2"), A("v3"))),
139        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_A_13", Flatten(S("x1"), S("x2"), S("x3"), A("v1"), A("v2"), A("v3"))),
140        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_A_14", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), A("v1"), A("v2"), A("v3"), A("v4"), A("v5"))),
141        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_A_15", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), A("v1"), A("v2"), A("v3"), A("v4"), A("v5"))),
142        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_01", Flatten(S("x1"), S("x2"), A("v1"), A("v2"))),
143        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_02", Flatten(S("x1"), S("x2"), A("v1"), A("v2"))),
144        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_03", Flatten(S("x1"), S("x2"), A("v1"), A("v2"))),
145        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_04", Flatten(S("x1"), S("x2"), A("v1"), A("v2"))),
146        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_05", Flatten(S("x1"), S("x2"), A("v1"), A("v2"), A("v3"))),
147        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_06", Flatten(S("x1"), S("x2"), A("v1"), A("v2"), A("v3"))),
148        //new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_04", Flatten(S("x1"), S("x2"), A("v1"), A("v2"), A("v3"), A("v4"))),
149        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_11", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), A("v1"), A("v2"), A("v3"), A("v4"))),
150        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_12", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), A("v1"), A("v2"), A("v3"), A("v4"))),
151        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_13", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), A("v1"), A("v2"), A("v3"), A("v4"))),
152        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_14", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), A("v1"), A("v2"), A("v3"), A("v4"))),
153        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_15", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), A("v1"), A("v2"), A("v3"), A("v4"), A("v5"), A("v6"), A("v7"))),
154        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_16", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), A("v1"), A("v2"), A("v3"), A("v4"), A("v5"), A("v6"), A("v7"))),
155        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_C_01", Flatten(S("x1"), S("x2"), A("v1"), A("v2"), A("v3"), A("v4"), A("v5"), A("v6")), "y1"),
156        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_C_01", Flatten(S("x1"), S("x2"), A("v1"), A("v2"), A("v3"), A("v4"), A("v5"), A("v6")), "y2"),
157        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_C_01", Flatten(S("x1"), S("x2"), A("v1"), A("v2"), A("v3"), A("v4"), A("v5"), A("v6")), "y3"),
158        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_C_01", Flatten(S("x1"), S("x2"), A("v1"), A("v2"), A("v3"), A("v4"), A("v5"), A("v6")), "y4"),
159        //new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_B_14", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), A("v1"), A("v2"), A("v3"), A("v4"), A("v5"), A("v6"), A("v7"), A("v8"))),
160        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_I_01_Nguyen_7",         Flatten(S("x"))),
161        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_I_02_Keijzer_6",        Flatten(S("x"), S("y"), S("z")), "f"),
162        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_I_03_Vladislavleva_14", Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"))),
163        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_I_04_Pagie_1",          Flatten(S("x"), S("y")), "f"),
164        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_I_05_Poly_10",          Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), S("x6"), S("x7"), S("x8"), S("x9"), S("x10"))),
165        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_I_06_Friedman_2",       Flatten(S("x1"), S("x2"), S("x3"), S("x4"), S("x5"), S("x6"), S("x7"), S("x8"), S("x9"), S("x10"))),
166        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_M_01_Nguyen_7_M1",         Flatten(A("x"))),
167        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_M_02_Keijzer_6_M1",        Flatten(A("x"), A("y"), A("z")), "f"),
168        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_M_03_Vladislavleva_14_M1", Flatten(A("x1"), A("x2"), A("x3"), A("x4"), A("x5"))),
169        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_M_03_Vladislavleva_14_M2", Flatten(A("x1"), A("x2"), A("x3"), A("x4"), A("x5"))),
170        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_M_04_Pagie_1_M1",          Flatten(A("x"), A("y")), "f"),
171        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_M_05_Poly_10_M1",          Flatten(A("x1"), A("x2"), A("x3"), A("x4"), A("x5"), A("x6"), A("x7"), A("x8"), A("x9"), A("x10"))),
172        new GPTP2021VectorBenchmarkDataDescriptor("pre_aggregated_test_M_06_Friedman_2_M1",       Flatten(A("x1"), A("x2"), A("x3"), A("x4"), A("x5"), A("x6"), A("x7"), A("x8"), A("x9"), A("x10"))),
173      };
174    }
175
176    private static T[] Flatten<T>(params IEnumerable<T>[] values) {
177      return values.SelectMany(x => x).ToArray();
178    }
179    private static IEnumerable<string> S(string name) {
180      yield return name;
181    }
182    // Unroll vector variable name
183    private static IEnumerable<string> U(string name, int length = 20) {
184      return Enumerable.Range(0, length).Select(i => name + "_" + i);
185    }
186    // Pre-aggregated variable name
187    private static readonly string[] DefaultAggregationNames = { "sum", "mean", "std", "var", "median", "amin", "amax" };
188    private static IEnumerable<string> A(string name, string[] aggregationNames = null) {
189      aggregationNames = aggregationNames ?? DefaultAggregationNames;
190      return aggregationNames.Select(aggrName => $"{name}_{aggrName}");
191    }
192
193    protected override TableFileFormatOptions GetFormatOptions(ZipArchiveEntry entry) {
194      return new TableFileFormatOptions() {
195        ColumnSeparator = ';',
196        VectorSeparator = ','
197      };
198    }
199  }
200}
Note: See TracBrowser for help on using the repository browser.