dataproc¶
In this module, functions for reading and processing datasets are defined.
Functions
conv_str_fl (data) |
It converts string data to float for computation. |
read_data (filename[, header]) |
It converts CSV file to NumPy arrays for further operations like training |
read_libsvm (filename) |
It reads LIBSVM data files for doing classification with TwinSVM Input: file_name: Path to the dataset file |
-
dataproc.
read_data
(filename, header=True)[source]¶ It converts CSV file to NumPy arrays for further operations like training
- Input:
- file_name: Path to the dataset file ignore_header: Ignoring first row of dataset because of header names
- output:
- data_samples: Training samples in NumPy array data_labels: labels of samples in NumPy array file_name: Name of dataset