18
18
*/
19
19
package org .jpmml .evaluator .general_regression ;
20
20
21
+ import java .io .Serializable ;
21
22
import java .util .ArrayList ;
22
23
import java .util .Collection ;
23
24
import java .util .Collections ;
@@ -1021,7 +1022,7 @@ private <K, C extends ParameterCell> ListMultimap<K, C> groupCells(List<C> cells
1021
1022
}
1022
1023
1023
1024
static
1024
- private class Row {
1025
+ private class Row implements Serializable {
1025
1026
1026
1027
private List <FactorHandler > factorHandlers = new ArrayList <>();
1027
1028
@@ -1110,11 +1111,15 @@ public List<CovariateHandler> getCovariateHandlers(){
1110
1111
}
1111
1112
1112
1113
abstract
1113
- private class PredictorHandler {
1114
+ static
1115
+ private class PredictorHandler implements Serializable {
1114
1116
1115
1117
private PPCell ppCell = null ;
1116
1118
1117
1119
1120
+ private PredictorHandler (){
1121
+ }
1122
+
1118
1123
private PredictorHandler (PPCell ppCell ){
1119
1124
setPPCell (ppCell );
1120
1125
@@ -1142,11 +1147,15 @@ private void setPPCell(PPCell ppCell){
1142
1147
}
1143
1148
}
1144
1149
1150
+ static
1145
1151
private class FactorHandler extends PredictorHandler {
1146
1152
1147
1153
private Object category = null ;
1148
1154
1149
1155
1156
+ private FactorHandler (){
1157
+ }
1158
+
1150
1159
private FactorHandler (PPCell ppCell ){
1151
1160
super (ppCell );
1152
1161
@@ -1176,6 +1185,7 @@ private void setCategory(Object category){
1176
1185
}
1177
1186
}
1178
1187
1188
+ static
1179
1189
private class ContrastMatrixHandler extends FactorHandler {
1180
1190
1181
1191
private Matrix matrix = null ;
@@ -1185,6 +1195,9 @@ private class ContrastMatrixHandler extends FactorHandler {
1185
1195
private List <FieldValue > parsedCategories = null ;
1186
1196
1187
1197
1198
+ private ContrastMatrixHandler (){
1199
+ }
1200
+
1188
1201
private ContrastMatrixHandler (PPCell ppCell , Matrix matrix , List <Object > categories ){
1189
1202
super (ppCell );
1190
1203
@@ -1250,11 +1263,15 @@ private void setCategories(List<Object> categories){
1250
1263
}
1251
1264
}
1252
1265
1266
+ static
1253
1267
private class CovariateHandler extends PredictorHandler {
1254
1268
1255
1269
private Number exponent = null ;
1256
1270
1257
1271
1272
+ private CovariateHandler (){
1273
+ }
1274
+
1258
1275
private CovariateHandler (PPCell ppCell ){
1259
1276
super (ppCell );
1260
1277
0 commit comments