mlpack
|
Functions | |
def | to_matrix (x, dtype=np.double, copy=False) |
def | to_matrix_with_info (x, dtype, copy=False) |
Variables | |
UNICODE_EXISTS = bool(type(unicode)) | |
unicode = str | |
BUFFER_EXISTS = bool(type(buffer)) | |
buffer = memoryview | |
matrix_utils.py: utilities for matrix conversion This file defines the to_matrix() function, which can be used to convert Pandas dataframes or other types of array-like objects to numpy ndarrays for use in mlpack bindings. mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.
def mlpack.matrix_utils.to_matrix | ( | x, | |
dtype = np.double , |
|||
copy = False |
|||
) |
Given some array-like X, return a numpy ndarray of the same type.
def mlpack.matrix_utils.to_matrix_with_info | ( | x, | |
dtype, | |||
copy = False |
|||
) |
Given some array-like X (which should be either a numpy ndarray or a pandas DataFrame), convert it into a numpy matrix of the given dtype.