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
Add MLJ compliant docstrings #3
base: master
Are you sure you want to change the base?
Conversation
Need double check if they go before or after we export the model metadata....
If you don't use MLJModelInterface.doc_header then it doesn't matter. |
Is it supposed that the MLJ docs are defined separately from the model-specific comments, e.g. there would then be https://github.com/OutlierDetectionJL/OutlierDetectionNeighbors.jl/blob/master/src/models/knn.jl#L4 and
|
Codecov ReportBase: 100.00% // Head: 98.89% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #3 +/- ##
===========================================
- Coverage 100.00% 98.89% -1.11%
===========================================
Files 7 7
Lines 170 181 +11
===========================================
+ Hits 170 179 +9
- Misses 0 2 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
I think @josephsdavid should comment here, but I think that's the current proposal - to append to the existing doc-strings. Because you also have a native API, right? However, I think we're open to a different suggestion. |
Yes this was my understanding, but I am happy to adjust to however works best! |
@davnn Did you have any further comment on this PR? If not I will go ahead and review for compliance with the spec. Keen to get this soon as @josephsdavid's GSoC intern finishes imminently. |
I would maybe put the docs into an MLJ_docs.jl file or similar, otherwise LGTM, thanks a lot 🙏🏼 |
Sorry for not catching this earlier but the current plan is not working out that well. The main problem is that the new docstrings are overwriting the existing ones. This may explain why @josephsdavid has duplicated the "Parameters" section, which ought not to be necessary and is bad for maintenance. It is possible to extend rather than replace a doc-string, by wrapping additions in a new module, but then the additions appear before the existing docstring, which is not what we want here. In any case, I think splitting the doc string up is ultimately a hack and suggest abandoning that approach. I have added a POC for what I would recommend. @davnn If you would give the okay, then perhaps @josephsdavid still has time to adapt his PR along that line. Final comment is that the MLJ examples in the current PR look untested - at least I found the |
Need double check if they go before or after we export the model metadata!