[source]

Numeric String Converter#

Convert all numeric strings into their integer and floating point countertypes. Useful for when extracting from a source that only recognizes data as string types such as CSV.

Note: NaN strings (i.e. 'NaN') are converted to their floating point equivalent.

Interfaces: Transformer

Data Type Compatibility: Categorical

Parameters#

This transformer does not have any parameters.

Additional Methods#

This transformer does not have any additional methods.

Example#

use Rubix\ML\Transformers\NumericStringConverter;

$transformer = new NumericStringConverter();