throw new IllegalArgumentException( "predicted field does not exist: " + fieldName );
DataField dataField = dictionary.get( fieldName );
if( dataField instanceof ContinuousDataField )
dataField = new CategoricalDataField( fieldName, String.class, categories );
else
dataField = new CategoricalDataField( (CategoricalDataField) dataField, categories );
dictionary.put( fieldName, dataField );
}