Package ml :: Package lib :: Package scikit :: Module sklearn_utils
[hide private]
[frames] | no frames]

Module sklearn_utils

source code

sklearn_utils -- Helper functions to deal with data in the formats sklearn uses. Utilities to read from text files to numpy arrays used by sklearn.


Author: Jose' de Souza

Copyright: 2012. All rights reserved.

License: Apache License 2.0

Contact: jose.camargo.souza@gmail.com

Functions [hide private]
 
assert_number(generic_list)
Checks whether the list is composed only by numeric datatypes.
source code
 
assert_string(generic_list) source code
 
open_datasets(train_path, train_ref_path, test_path, test_ref_path, delim, labels_path=None) source code
 
open_datasets_crossvalidation(train_path, train_ref_path, delim, labels_path=None) source code
 
scale_datasets(X_train, X_test) source code
 
scale_datasets_crossvalidation(X_train) source code
Function Details [hide private]

assert_number(generic_list)

source code 

Checks whether the list is composed only by numeric datatypes.

Parameters:
  • generic_list - a list containing any object type.
Returns:
True if the list contains only numeric objects. False otherwise.