DenseBatch

public class DenseBatch

2D dense batch, laid out in row-major layout

Author

Hyunsu Cho

Constructors

DenseBatch

public DenseBatch(float[] data, float missing_value, int num_row, int num_col)

Create a dense batch representing a 2D dense matrix

Parameters
  • data – array of entries, should be of length [num_row]*[num_col]

  • missing_value – floating-point value representing a missing value; usually set of Float.NaN.

  • num_row – number of rows (data instances) in the matrix

  • num_row – number of columns (features) in the matrix

Throws
  • TreeliteError

Return

Created dense batch

Methods

dispose

public synchronized void dispose()

Destructor, to be called when the object is garbage collected

finalize

protected void finalize()

getHandle

public long getHandle()

Get the underlying native handle

Returns

Integer representing memory address