1.1 Oracle Machine Learning for Python Known Issues

Learn about the issues you may encounter when using Oracle Machine Learning for Python and how to work around them.

Topics:

1.1.1 Online Help for oml.Datetime.replace Incorrectly States that oml.integer is Supported for Arguments

Running the help file for oml.Datetime.replace states that the oml.integer is supported for the year, month, day, hour minute, second, and microsecond arguments but it is not yet supported.

%python
help(oml.Datetime.replace)

1.1.2 oml.Integer Math Methods Fail with Numeric Values

Running the oml.integer math method fails with the numeric values.

%python
import oml
DF = oml.push(pd.DataFrame(range(5), columns=['X']))
X_min = DF['X'].min()
DF['X'] - X_min

The output returns TypeError: 'other' must be an oml.Integer, int, oml.Float, or float object.

The workaround is to cast DF['X'] to an oml.Float data type.

%python
oml.Float(DF['X']) - X_min

The output returns [0, 1, 2, 3, 4].

1.2 Documentation Accessibility

For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc.

Access to Oracle Support

Oracle customers that have purchased support have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs if you are hearing impaired.