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

Update doc-strings to meet new standard #12

Merged
merged 7 commits into from
Mar 1, 2022
Merged

Conversation

ablaom
Copy link
Member

@ablaom ablaom commented Feb 11, 2022

This PR needs:

This PR is simultaneously a genuine draft PR to revise the DecisionTree document strings, and a live proposal of what the new standard for doc-strings should look like. General discussion of the standard should go here. However, specific line-by-line comments can also be made in this PR in the usual way.

minor renaming of constant

rm MLJModelInterface [compat] for testing with unreleased branch

further tweaks
@ablaom ablaom marked this pull request as draft February 11, 2022 03:48
@ablaom
Copy link
Member Author

ablaom commented Feb 13, 2022

@bkamins Am responding to your comment here.

There has already been some discussion about what features are accepted by DecisionTree.jl: See #10 and https://github.com/bensadeghi/DecisionTree.jl/issues/92 . I believe the statement in DecisionTree.jl readme does have a bug - which I just reported here. What I believe is accurate is that DecisionTree accepts any feature for which < is defined. For the MLJ wrapper, this translates into any Count, OrderedFactor or Continuous feature, but not Multiclass features, which is what we have in the current PR.

I couldn't find any mention of missing value support in the DecisionTree.jl readme - could you point this out to me? I doubt features can have missing values, as this breaks ordering (the BetaML tree models do support missing however). I imagine missing values in the target are possibly allowed, but I can't find this documented.

@bkamins
Copy link

bkamins commented Feb 14, 2022

I couldn't find any mention of missing value support in the DecisionTree.jl readme - could you point this out to me?

I just manually checked that they were allowed in target - i.e. the model was built without error (but I do not know if then they are dropped or considered as a separate class)

@ablaom ablaom marked this pull request as ready for review February 28, 2022 23:17
@codecov-commenter
Copy link

codecov-commenter commented Mar 1, 2022

Codecov Report

Merging #12 (9a3f54c) into master (ab1e98e) will increase coverage by 0.19%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage   83.52%   83.72%   +0.19%     
==========================================
  Files           1        1              
  Lines          85       86       +1     
==========================================
+ Hits           71       72       +1     
  Misses         14       14              
Impacted Files Coverage Δ
src/MLJDecisionTreeInterface.jl 83.72% <100.00%> (+0.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab1e98e...9a3f54c. Read the comment docs.

@ablaom ablaom merged commit 924145a into master Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants