DataLoad
DataLoad(data)
Loading a dataset from a file or dataframe.
Parameters
data: pandas [n_columns, n_features]. pandas Dataframe.
Attributes
n: lenght of dataset. start: start iterator. end: end iterator. num: current iterator.
Examples
For usage examples, please see: https://jaisenbe58r.github.io/MLearner/user_guide/load/DataLoad/
Methods
load_data(filename, sep=';', decimal=',', params)
Loading a dataset from a csv file.
Parameters
filename: 'str, path object or file-like object' Any valid string path is acceptable. The string could be a URL. Valid URL schemes include http, ftp, s3, and file. For file URLs, a host is expected. A local file could be: file://localhost/path/to/table.csv. If you want to pass in a path object, pandas accepts any os.PathLike. By file-like object, we refer to objects with a read() method, such as a file handler (e.g. via builtin open function) or StringIO.
seps: 'str' Delimiter to use. If sep is None, the C engine cannot automatically detect the separator, but the Python parsing engine can, meaning the latter will be used and automatically detect the separator by Python's builtin sniffer tool, csv.Sniffer.
delimiter: 'str, default None' Alias for sep.
Attributes
n: lenght of dataset. start: start iterator. end: end iterator. num: current iterator.
Returns
data: Pandas DataFrame, [n_samples, n_classes] Dataframe from dataset.
Examples
For usage examples, please see: https://jaisenbe58r.github.io/MLearner/user_guide/load/DataLoad/
load_dataframe(data)
None
reset()
None