regressionTable.addParameter( new Parameter( "intercept", 0d ) );
regressionSpec.addRegressionTable( regressionTable );
}
CategoricalRegressionFunction regressionFunction = new CategoricalRegressionFunction( regressionSpec );
{
TupleEntry tupleArguments = new TupleEntry( expectedFields, new Tuple( 7d, 3.2d, 4.7d, 1.4d ) );
TupleListCollector collector = invokeFunction( regressionFunction, tupleArguments, modelSchema.getDeclaredFields() );