Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Change:
public FloatWritable evaluate(final float value, final float min, final float max) { return val(min_max_normalization(value, min, max)); }
to:
@Nullable public FloatWritable evaluate(final Float value, final Float min, final Float max) throws HiveException { if(value == null) { return null; } if(min == null) throw new HiveException("min should not be null"); if(max == null) throw new HiveException("max should not be null"); return val(min_max_normalization(value.floatValue(), min.floatValue(), max. floatValue())); }
Attachments
Issue Links
- relates to
-
HIVEMALL-72 Fix rescale UDF behavior to return range [0.0,1.0]
-
- Closed
-
- links to