Skip to content

Add a binary logistic sample - #2256

Merged
Ivanidzo4ka merged 15 commits into
dotnet:masterfrom
jwood803:binary-logistic-sample
Feb 3, 2019
Merged

Ivanidzo4ka merged 15 commits into
dotnet:masterfrom
jwood803:binary-logistic-sample

Conversation

@jwood803

Copy link
Copy Markdown
Contributor

Add a binary logistic sample using the adult dataset to update issue #1362

@sfilipi Hopefully, this looks good, but just let me know if anything should be changed.

@codecov

codecov Bot commented Jan 27, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #2256 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2256      +/-   ##
==========================================
- Coverage   71.15%   71.13%   -0.02%     
==========================================
  Files         779      779              
  Lines      140311   140311              
  Branches    16047    16047              
==========================================
- Hits        99838    99814      -24     
- Misses      36021    36045      +24     
  Partials     4452     4452
Flag Coverage Δ
#Debug 71.13% <ø> (-0.02%) ⬇️
#production 67.55% <ø> (-0.02%) ⬇️
#test 85.07% <ø> (-0.02%) ⬇️

.Append(ml.Transforms.Text.FeaturizeText("Text", "TextFeatures"))
.Append(ml.Transforms.Concatenate("Features", "TextFeatures", "age", "fnlwgt",
"education-num", "capital-gain", "capital-loss", "hours-per-week"))
.Append(ml.BinaryClassification.Trainers.LogisticRegression());

@Ivanidzo4ka Ivanidzo4ka Jan 28, 2019 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to put this example next to LogisticRegression declaration
Something like this:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully, I put this in the right place. 🙂

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for been cryptic.
I meant this place:

public static LogisticRegression LogisticRegression(this BinaryClassificationCatalog.BinaryClassificationTrainers catalog,

You put it on top of internal class which doesn't show up in documentation.


In reply to: 251782735 [](ancestors = 251782735)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, I should have noticed the internal on the class. Should be good now, though.

@eerhardt
eerhardt requested review from abgoswam and sfilipi January 30, 2019 03:07

@abgoswam abgoswam left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@sfilipi

sfilipi commented Jan 30, 2019

Copy link
Copy Markdown
Member

Thanks for adding this @jwood803

@sfilipi sfilipi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@Ivanidzo4ka Ivanidzo4ka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@Ivanidzo4ka
Ivanidzo4ka merged commit cfa617a into dotnet:master Feb 3, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Mar 25, 2022
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.

4 participants