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

[R-package] C-API fix; attribute accessors #1166

Merged
merged 5 commits into from
May 7, 2016
Merged

Conversation

khotilov
Copy link
Member

@khotilov khotilov commented May 2, 2016

In this PR:

@tqchen: would it make sense to have a Learner::GetAttrNames() method in the API to facilitate working with stored model attributes? I have it, but I hesitated to include it into this PR. What about the api for removal of an attribute, e.g., by passing a nullptr as a value? I would also be curious to know about your views on the future use of attributes. E.g., would you prefer it to be minimal, or do you think it would be a reasonable mechanism to keep some model meta-data on provenance and state?

@tqchen tqchen merged commit 6e79ba8 into dmlc:master May 7, 2016
@tqchen
Copy link
Member

tqchen commented May 7, 2016

I think support for attributes is useful for general extensions, and we can use attributes to store some meta data for the upper level. This should not be a lot of code

@tqchen tqchen mentioned this pull request Jul 29, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[R-package] crash with direct .Call
2 participants