Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read ARFF files calculating no measures #26

Closed
alessanderbotti opened this issue Nov 23, 2015 · 3 comments
Closed

Read ARFF files calculating no measures #26

alessanderbotti opened this issue Nov 23, 2015 · 3 comments

Comments

@alessanderbotti
Copy link

Sometimes I have to read ARFF files and pre-process them, and in those cases, the measures calculated by mldr are not useful, and also take a lot of time to calculate. I tried the function read.arff from RWeka, but it does not seem to discriminate between features and labels, as mldr does. Therefore, it would be nice if mldr allowed me to just read a dataset, without calculating the measures, just providing me a data.frame and the indexes of features and labels. So, after pre-processing the data.frame, I would build an mldr object by means of mldr_from_dataframe. Thanks for mldr!

@fdavidcl
Copy link
Collaborator

That sounds like a great idea. I'll leave this issue open to track the development of this feature (which will be as soon as possible, of course). Thanks for the suggestion @alessanderbotti!

@fdavidcl
Copy link
Collaborator

fdavidcl commented Dec 4, 2015

This functionality has been added in bb53bb1. Now a read.arff function is available within the mldr namespace, which allows to read multilabel data and get label indices without calculating measures. This function does not return an "mldr" object (since mldr methods cannot be applied when measures aren't available), but instead returns a list with the convenient data.

Thanks for helping us improve mldr!

@fdavidcl fdavidcl closed this as completed Dec 4, 2015
@alessanderbotti
Copy link
Author

Thank you very much for implementing this function!
I just updated mldr and tested read.arff and it works fine :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants