Changeset 2081
- Timestamp:
- 06/22/09 17:49:10 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Core/3.3/Results.cs
r2047 r2081 87 87 entries = new List<ResultsEntry>(); 88 88 do { 89 var allBindings = store.Query("? Dataset <" + Ontology.HasModel + "> ?Model." + Environment.NewLine +89 var allBindings = store.Query("?Model <" + Ontology.InstanceOf + "> <" + Ontology.TypeModel + "> ." + Environment.NewLine + 90 90 "?Model ?Attribute ?Value .", page, PAGE_SIZE); 91 91 var allModelBindings = allBindings.GroupBy(x => (Entity)x.Get("Model")); … … 125 125 private void LoadModelAttributes() { 126 126 this.ordinalVariables = 127 store.Query("?ModelAttribute <" + Ontology.InstanceOf + "> <" + Ontology.TypeOrdinalAttribute + "> .", 0, 100) 128 .Select(s => ((Entity)s.Get("ModelAttribute")).Uri.Replace(Ontology.CedmaNameSpace, "")) 129 .ToArray(); 127 store 128 .Query( 129 "?ModelAttribute <" + Ontology.InstanceOf + "> <" + Ontology.TypeModelAttribute + "> ." + Environment.NewLine + 130 "?ModelAttribute <" + Ontology.InstanceOf + "> <" + Ontology.TypeOrdinalAttribute + "> .", 0, 100) 131 .Select(s => ((Entity)s.Get("ModelAttribute")).Uri.Replace(Ontology.CedmaNameSpace, "")) 132 .Distinct() 133 .ToArray(); 130 134 this.categoricalVariables = 131 store.Query("?ModelAttribute <" + Ontology.InstanceOf + "> <" + Ontology.TypeCategoricalAttribute + "> .", 0, 100) 132 .Select(s => ((Entity)s.Get("ModelAttribute")).Uri.Replace(Ontology.CedmaNameSpace, "")) 133 .ToArray(); 135 store 136 .Query( 137 "?ModelAttribute <" + Ontology.InstanceOf + "> <" + Ontology.TypeModelAttribute + "> ." + Environment.NewLine + 138 "?ModelAttribute <" + Ontology.InstanceOf + "> <" + Ontology.TypeCategoricalAttribute + "> .", 0, 100) 139 .Select(s => ((Entity)s.Get("ModelAttribute")).Uri.Replace(Ontology.CedmaNameSpace, "")) 140 .Distinct() 141 .ToArray(); 134 142 } 135 143 -
trunk/sources/HeuristicLab.CEDMA.DB.Interfaces/3.3/Ontology.cs
r2047 r2081 35 35 #region model attribute types 36 36 /// <summary> 37 /// Meta attribute to indicate potential attributes of models. 38 /// </summary> 39 public static Entity TypeModelAttribute { 40 get { return new Entity(CedmaNameSpace + "TypeModelAttribute"); } 41 } 42 /// <summary> 43 /// Meta attribute to indicate potential attributes of input variables. 44 /// </summary> 45 public static Entity TypeInputVariableAttribute { 46 get { return new Entity(CedmaNameSpace + "TypeInputVariableAttribute"); } 47 } 48 /// <summary> 49 /// Meta attribute to indicate potential attributes of problems (data sets). 50 /// </summary> 51 public static Entity TypeProblemAttribute { 52 get { return new Entity(CedmaNameSpace + "TypeProblemAttribute"); } 53 } 54 /// <summary> 37 55 /// Attribute value is ordinal, values can be sorted. 38 56 /// Examples are quality measures or complexity measures. … … 203 221 return new List<Statement> { 204 222 new Statement(TargetVariable, InstanceOf, TypeCategoricalAttribute), 223 new Statement(TargetVariable, InstanceOf, TypeModelAttribute), 224 205 225 new Statement(TrainingMeanSquaredError, InstanceOf, TypeOrdinalAttribute), 206 226 new Statement(TrainingMeanSquaredError, InstanceOf, TypeQualityAttribute), 227 new Statement(TrainingMeanSquaredError, InstanceOf, TypeModelAttribute), 228 207 229 new Statement(ValidationMeanSquaredError, InstanceOf, TypeOrdinalAttribute), 208 230 new Statement(ValidationMeanSquaredError, InstanceOf, TypeQualityAttribute), 231 new Statement(ValidationMeanSquaredError, InstanceOf, TypeModelAttribute), 232 209 233 new Statement(TestMeanSquaredError, InstanceOf, TypeOrdinalAttribute), 210 234 new Statement(TestMeanSquaredError, InstanceOf, TypeQualityAttribute), 235 new Statement(TestMeanSquaredError, InstanceOf, TypeModelAttribute), 236 211 237 new Statement(TrainingMeanAbsolutePercentageError, InstanceOf, TypeOrdinalAttribute), 212 238 new Statement(TrainingMeanAbsolutePercentageError, InstanceOf, TypeQualityAttribute), 239 new Statement(TrainingMeanAbsolutePercentageError, InstanceOf, TypeModelAttribute), 240 213 241 new Statement(ValidationMeanAbsolutePercentageError, InstanceOf, TypeOrdinalAttribute), 214 242 new Statement(ValidationMeanAbsolutePercentageError, InstanceOf, TypeQualityAttribute), 243 new Statement(ValidationMeanAbsolutePercentageError, InstanceOf, TypeModelAttribute), 244 215 245 new Statement(TestMeanAbsolutePercentageError, InstanceOf, TypeOrdinalAttribute), 216 246 new Statement(TestMeanAbsolutePercentageError, InstanceOf, TypeQualityAttribute), 247 new Statement(TestMeanAbsolutePercentageError, InstanceOf, TypeModelAttribute), 248 217 249 new Statement(TrainingMeanAbsolutePercentageOfRangeError, InstanceOf, TypeOrdinalAttribute), 218 250 new Statement(TrainingMeanAbsolutePercentageOfRangeError, InstanceOf, TypeQualityAttribute), 251 new Statement(TrainingMeanAbsolutePercentageOfRangeError, InstanceOf, TypeModelAttribute), 252 219 253 new Statement(ValidationMeanAbsolutePercentageOfRangeError, InstanceOf, TypeOrdinalAttribute), 220 254 new Statement(ValidationMeanAbsolutePercentageOfRangeError, InstanceOf, TypeQualityAttribute), 255 new Statement(ValidationMeanAbsolutePercentageOfRangeError, InstanceOf, TypeModelAttribute), 256 221 257 new Statement(TestMeanAbsolutePercentageOfRangeError, InstanceOf, TypeOrdinalAttribute), 222 258 new Statement(TestMeanAbsolutePercentageOfRangeError, InstanceOf, TypeQualityAttribute), 259 new Statement(TestMeanAbsolutePercentageOfRangeError, InstanceOf, TypeModelAttribute), 260 223 261 new Statement(TrainingCoefficientOfDetermination, InstanceOf, TypeOrdinalAttribute), 224 262 new Statement(TrainingCoefficientOfDetermination, InstanceOf, TypeQualityAttribute), 263 new Statement(TrainingCoefficientOfDetermination, InstanceOf, TypeModelAttribute), 264 225 265 new Statement(ValidationCoefficientOfDetermination, InstanceOf, TypeOrdinalAttribute), 226 266 new Statement(ValidationCoefficientOfDetermination, InstanceOf, TypeQualityAttribute), 267 new Statement(ValidationCoefficientOfDetermination, InstanceOf, TypeModelAttribute), 268 227 269 new Statement(TestCoefficientOfDetermination, InstanceOf, TypeOrdinalAttribute), 228 270 new Statement(TestCoefficientOfDetermination, InstanceOf, TypeQualityAttribute), 271 new Statement(TestCoefficientOfDetermination, InstanceOf, TypeModelAttribute), 272 229 273 new Statement(TrainingAccuracy, InstanceOf, TypeOrdinalAttribute), 230 274 new Statement(TrainingAccuracy, InstanceOf, TypeQualityAttribute), 275 new Statement(TrainingAccuracy, InstanceOf, TypeModelAttribute), 276 231 277 new Statement(ValidationAccuracy, InstanceOf, TypeOrdinalAttribute), 232 278 new Statement(ValidationAccuracy, InstanceOf, TypeQualityAttribute), 279 new Statement(ValidationAccuracy, InstanceOf, TypeModelAttribute), 280 233 281 new Statement(TestAccuracy, InstanceOf, TypeOrdinalAttribute), 234 282 new Statement(TestAccuracy, InstanceOf, TypeQualityAttribute), 283 new Statement(TestAccuracy, InstanceOf, TypeModelAttribute), 284 235 285 new Statement(TrainingTheilsInequalityCoefficient, InstanceOf, TypeOrdinalAttribute), 236 286 new Statement(TrainingTheilsInequalityCoefficient, InstanceOf, TypeQualityAttribute), 287 new Statement(TrainingTheilsInequalityCoefficient, InstanceOf, TypeModelAttribute), 288 237 289 new Statement(ValidationTheilsInequalityCoefficient, InstanceOf, TypeOrdinalAttribute), 238 290 new Statement(ValidationTheilsInequalityCoefficient, InstanceOf, TypeQualityAttribute), 291 new Statement(ValidationTheilsInequalityCoefficient, InstanceOf, TypeModelAttribute), 292 239 293 new Statement(TestTheilsInequalityCoefficient, InstanceOf, TypeOrdinalAttribute), 240 294 new Statement(TestTheilsInequalityCoefficient, InstanceOf, TypeQualityAttribute), 295 new Statement(TestTheilsInequalityCoefficient, InstanceOf, TypeModelAttribute), 241 296 242 297 new Statement(TreeSize, InstanceOf, TypeOrdinalAttribute), 243 298 new Statement(TreeSize, InstanceOf, TypeComplexityAttribute), 299 new Statement(TreeSize, InstanceOf, TypeModelAttribute), 300 244 301 new Statement(TreeHeight, InstanceOf, TypeOrdinalAttribute), 245 302 new Statement(TreeHeight, InstanceOf, TypeComplexityAttribute), 303 new Statement(TreeHeight, InstanceOf, TypeModelAttribute), 304 246 305 new Statement(EvaluatedSolutions, InstanceOf, TypeOrdinalAttribute), 306 new Statement(EvaluatedSolutions, InstanceOf, TypeModelAttribute), 247 307 248 308 new Statement(Name, InstanceOf, TypeCategoricalAttribute), 309 new Statement(Name, InstanceOf, TypeModelAttribute), 310 new Statement(Name, InstanceOf, TypeProblemAttribute), 311 new Statement(Name, InstanceOf, TypeInputVariableAttribute), 312 249 313 new Statement(QualityImpact, InstanceOf, TypeOrdinalAttribute), 250 new Statement(EvaluationImpact, InstanceOf, TypeOrdinalAttribute) 314 new Statement(QualityImpact, InstanceOf, TypeInputVariableAttribute), 315 316 new Statement(EvaluationImpact, InstanceOf, TypeOrdinalAttribute), 317 new Statement(EvaluationImpact, InstanceOf, TypeInputVariableAttribute) 251 318 }; 252 319 }
Note: See TracChangeset
for help on using the changeset viewer.