Changeset 17930 for branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Timestamp:
- 04/09/21 12:44:50 (4 years ago)
- Location:
- branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj
r17786 r17930 110 110 <Private>False</Private> 111 111 </Reference> 112 <Reference Include="DiffSharp , Version=0.7.7.0, Culture=neutral, processorArchitecture=AMD64">112 <Reference Include="DiffSharp.Merged, Version=0.8.4.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=AMD64"> 113 113 <SpecificVersion>False</SpecificVersion> 114 <HintPath>..\..\bin\DiffSharp. dll</HintPath>114 <HintPath>..\..\bin\DiffSharp.Merged.dll</HintPath> 115 115 </Reference> 116 116 <Reference Include="MathNet.Numerics"> … … 118 118 <Private>False</Private> 119 119 </Reference> 120 <Reference Include="netstandard" /> 120 121 <Reference Include="System" /> 121 122 <Reference Include="System.Core"> … … 132 133 <Reference Include="System.Data" /> 133 134 <Reference Include="System.Xml" /> 134 <Reference Include="TensorFlow.NET. Signed">135 < HintPath>..\..\bin\TensorFlow.NET.Signed.dll</HintPath>136 < Private>False</Private>135 <Reference Include="TensorFlow.NET.Merged, Version=0.15.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 136 <SpecificVersion>False</SpecificVersion> 137 <HintPath>..\..\bin\TensorFlow.NET.Merged.dll</HintPath> 137 138 </Reference> 138 139 </ItemGroup> -
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/NonlinearLeastSquaresVectorConstantOptimizationEvaluator.cs
r17786 r17930 117 117 alglib.ndimensional_func alglib_func = (double[] x, ref double func, object o) => { 118 118 var vars = new DV(x); 119 func = loss(vars);119 func = (double)loss(vars); 120 120 var cnt = (EvaluationsCounter)o; 121 121 cnt.FunctionEvaluations++; … … 123 123 alglib.ndimensional_grad alglib_grad = (double[] x, ref double func, double[] grad, object o) => { 124 124 var vars = new DV(x); 125 func = loss(vars);126 Array.Copy( lossGrad(vars), grad, x.Length);125 func = (double)loss(vars); 126 Array.Copy((double[])lossGrad(vars), grad, x.Length); 127 127 var cnt = (EvaluationsCounter)o; 128 128 cnt.GradientEvaluations++; … … 130 130 alglib.ndimensional_hess alglib_hess = (double[] x, ref double func, double[] grad, double[,] hess, object o) => { 131 131 var vars = new DV(x); 132 func = loss(vars);133 Array.Copy( lossGrad(vars), grad, x.Length);134 Array.Copy( lossHess(vars), hess, x.Length * x.Length);132 func = (double)loss(vars); 133 Array.Copy((double[])lossGrad(vars), grad, x.Length); 134 Array.Copy((double[,])lossHess(vars), hess, x.Length * x.Length); 135 135 var cnt = (EvaluationsCounter)o; 136 136 cnt.HessianEvaluations++;
Note: See TracChangeset
for help on using the changeset viewer.