Changeset 14110 for trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/VariableNetworks
- Timestamp:
- 07/19/16 14:47:39 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/VariableNetworks
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/VariableNetworks/VariableNetwork.cs
r13963 r14110 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using System.Text;26 using System.Windows.Forms;27 25 using HeuristicLab.Common; 28 26 using HeuristicLab.Core; … … 87 85 88 86 protected override List<List<double>> GenerateValues() { 89 // var shuffledIdx = Enumerable.Range(0, numberOfFeatures).Shuffle(random).ToList();90 91 87 // variable names are shuffled in the beginning (and sorted at the end) 92 88 variableNames = variableNames.Shuffle(random).ToArray(); 93 89 94 // a third of all variables are independen vars90 // a third of all variables are independent vars 95 91 List<List<double>> lvl0 = new List<List<double>>(); 96 92 int numLvl0 = (int)Math.Ceiling(numberOfFeatures * 0.33); -
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/VariableNetworks/VariableNetworkInstanceProvider.cs
r13939 r14110 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq; 24 using System.Linq; 25 25 using HeuristicLab.Problems.DataAnalysis; 26 26 using HeuristicLab.Random; … … 56 56 if (varNetwork == null) throw new ArgumentException("VariableNetworkInstanceProvider expects an VariableNetwork data descriptor."); 57 57 // base call generates a regression problem data 58 var regProblemData = base.LoadData(varNetwork); 59 var problemData = 60 new RegressionProblemData( 61 regProblemData.Dataset, regProblemData.AllowedInputVariables, regProblemData.TargetVariable); 62 63 // copy values from regProblemData to feature selection problem data 64 problemData.Name = regProblemData.Name; 58 var problemData = base.LoadData(varNetwork); 65 59 problemData.Description = varNetwork.Description + Environment.NewLine + varNetwork.NetworkDefinition; 66 problemData.TrainingPartition.Start = regProblemData.TrainingPartition.Start;67 problemData.TrainingPartition.End = regProblemData.TrainingPartition.End;68 problemData.TestPartition.Start = regProblemData.TestPartition.Start;69 problemData.TestPartition.End = regProblemData.TestPartition.End;70 71 60 return problemData; 72 61 }
Note: See TracChangeset
for help on using the changeset viewer.