- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In DAAL Beta Update 3, these two methods of daal::algorithms::multinomial_naive_bayes::Model:
data_management::NumericTable *getLogP() { return _logP.get(); } data_management::NumericTable *getLogTheta() { return _logTheta.get(); }
are returning naked pointers where, _logP and _logTheta are shared pointers to numeric tables. This would appear to make it difficult to use these numeric tables in places where a SharedPtr<NumericTable> is required. Is there any way around this?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Graham a lot for reviewing our Beta codes!
We already fixed that in our internal code branch (proper SharedPtr is returned now).
The quickest workaround on your side, could be in modification of multinomial_naive_bayes_model.h file and adding proper functions:
SharedPtr<data_management::NumericTable> getLogP_() {
return
_logP; }
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page