Changeset 16899 for branches/2988_ModelsOfModels2/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeBatchInterpreter.cs
- Timestamp:
- 05/06/19 14:20:06 (6 years ago)
- Location:
- branches/2988_ModelsOfModels2/HeuristicLab.Problems.DataAnalysis.Symbolic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2988_ModelsOfModels2/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.DataAnalysis.Symbolic merged: 16737,16740,16758,16762,16764,16768,16802,16822,16839,16858,16868
- Property svn:mergeinfo changed
-
branches/2988_ModelsOfModels2/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeBatchInterpreter.cs
r16722 r16899 64 64 65 65 switch (instr.opcode) { 66 case OpCode s.Variable: {66 case OpCode.Variable: { 67 67 LoadData(instr, rows, rowIndex, batchSize); 68 68 break; 69 69 } 70 case OpCode s.TreeModel: {70 case OpCode.TreeModel: { 71 71 SubTreeEvoluate(instr, rows, rowIndex, batchSize); 72 72 break; 73 73 } 74 74 75 case OpCode s.Add: {75 case OpCode.Add: { 76 76 Load(instr.buf, code[c].buf); 77 77 for (int j = 1; j < n; ++j) { … … 81 81 } 82 82 83 case OpCode s.Sub: {83 case OpCode.Sub: { 84 84 if (n == 1) { 85 85 Neg(instr.buf, code[c].buf); … … 93 93 } 94 94 95 case OpCode s.Mul: {95 case OpCode.Mul: { 96 96 Load(instr.buf, code[c].buf); 97 97 for (int j = 1; j < n; ++j) { … … 101 101 } 102 102 103 case OpCode s.Div: {103 case OpCode.Div: { 104 104 if (n == 1) { 105 105 Inv(instr.buf, code[c].buf); … … 113 113 } 114 114 115 case OpCode s.Square: {115 case OpCode.Square: { 116 116 Square(instr.buf, code[c].buf); 117 117 break; 118 118 } 119 119 120 case OpCode s.Root: {120 case OpCode.Root: { 121 121 Load(instr.buf, code[c].buf); 122 122 Root(instr.buf, code[c + 1].buf); … … 124 124 } 125 125 126 case OpCode s.SquareRoot: {126 case OpCode.SquareRoot: { 127 127 Sqrt(instr.buf, code[c].buf); 128 128 break; 129 129 } 130 130 131 case OpCode s.Cube: {131 case OpCode.Cube: { 132 132 Cube(instr.buf, code[c].buf); 133 133 break; 134 134 } 135 case OpCode s.CubeRoot: {135 case OpCode.CubeRoot: { 136 136 CubeRoot(instr.buf, code[c].buf); 137 137 break; 138 138 } 139 139 140 case OpCode s.Power: {140 case OpCode.Power: { 141 141 Load(instr.buf, code[c].buf); 142 142 Pow(instr.buf, code[c + 1].buf); … … 144 144 } 145 145 146 case OpCode s.Exp: {146 case OpCode.Exp: { 147 147 Exp(instr.buf, code[c].buf); 148 148 break; 149 149 } 150 150 151 case OpCode s.Log: {151 case OpCode.Log: { 152 152 Log(instr.buf, code[c].buf); 153 153 break; 154 154 } 155 155 156 case OpCode s.Sin: {156 case OpCode.Sin: { 157 157 Sin(instr.buf, code[c].buf); 158 158 break; 159 159 } 160 160 161 case OpCode s.Cos: {161 case OpCode.Cos: { 162 162 Cos(instr.buf, code[c].buf); 163 163 break; 164 164 } 165 165 166 case OpCode s.Tan: {166 case OpCode.Tan: { 167 167 Tan(instr.buf, code[c].buf); 168 168 break; 169 169 } 170 case OpCode s.Tanh: {170 case OpCode.Tanh: { 171 171 Tanh(instr.buf, code[c].buf); 172 172 break; 173 173 } 174 case OpCode s.Absolute: {174 case OpCode.Absolute: { 175 175 Absolute(instr.buf, code[c].buf); 176 176 break; 177 177 } 178 178 179 case OpCode s.AnalyticQuotient: {179 case OpCode.AnalyticQuotient: { 180 180 Load(instr.buf, code[c].buf); 181 181 AnalyticQuotient(instr.buf, code[c + 1].buf); … … 213 213 } 214 214 215 var code = Compile(tree, dataset, OpCode s.MapSymbolToOpCode, rows);215 var code = Compile(tree, dataset, OpCode.MapSymbolToOpCode, rows); 216 216 var remainingRows = rows.Length % BATCHSIZE; 217 217 var roundedTotal = rows.Length - remainingRows;
Note: See TracChangeset
for help on using the changeset viewer.