Extract label data from the MAFA dataset into a Pandas DataFrame.
Project description
MAFAExtractor
This is a tool for extracting data from the MAFA Dataset. It succesfully extracts all labels and data from the dataset's provided MATLAB files into a Pandas DataFrame.
The primary function is extract_mafa()
which is all you really need if you're just extracting the data into Pandas. If the filename isn't the original LabelTrainAll.mat
or LabelTestAll.mat
, then you have to provide the dataset_type
which can be either "train" or "test". You can also choose whether you want the dataframe to be cleaned to have more readable and processed values by the clean
parameter (which by default is True), or can be set to False if you require the dataset's original headings.
Usage:
from mafaextractor import extract_mafa
df = extract_mafa("path/to/LabelTrainAll.mat <or> LabelTestAll.mat")
# differing file names
df = extract_mafa("path/to/IChangedTheTestingSetsFileName.mat", dataset_type="test")
# no cleaning
df = extract_mafa("path/to/TestingSet.mat", dataset_type="test", clean=False)
If you run into any bugs or have any concerns feel free to contact me via e-mail at dhyeyl1@outlook.com!
License
This project is licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for MAFAExtractor-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19643841ed1af58314fa0ba01b6eb836ac55a70704e2913cc19ec86d0a3231bb |
|
MD5 | b57577ab65ba3dab2c8740992fd8b5e2 |
|
BLAKE2b-256 | 205cc045f8211788024900c267822cd3bf8f00b4fee3a9db3c6ee34a52e39d97 |