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

Add logistic regression example on iris dataset. #109

Merged

Conversation

JoshuaWhittemore
Copy link
Contributor

This is a super simple model aimed at helping beginners get started with Flux.

It depends on an 'iris' Data module in Flux, PR here: FluxML/Flux.jl#652.

If it doesn't make sense to have the iris Data module in Flux I can move that over here.

Please make any suggestions/changes you think might be appropriate. Thank you!

Copy link
Member

@MikeInnes MikeInnes left a comment

Choose a reason for hiding this comment

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

This is very nice, thanks!



# Start Training.
for epoch in 1:100
Copy link
Member

Choose a reason for hiding this comment

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

This could be done with something like data = Iterators.repeat((X, Y), 100).

@JoshuaWhittemore
Copy link
Contributor Author

Hi Mike, I've changed the call to train! to use an iterator as you suggested. Let me know if you have any other suggestions.

One thing - this model depends on FluxML/Flux.jl#652 for its dataset. Thank you!

@MikeInnes
Copy link
Member

That PR is merged, so presumably this just needs the manifest to be updated?

@JoshuaWhittemore
Copy link
Contributor Author

Yes I think so. I was going to do that today. I just need to figure out how to require that it use Flux 0.8.1+ I think.

@JoshuaWhittemore
Copy link
Contributor Author

Err, 0.8.1 or 0.8.1+ I guess.

add julia prompt to REPL excerpt in README.md
@JoshuaWhittemore
Copy link
Contributor Author

I've updated the manifest. Let me know if there's anything else I should do. Thanks!

@MikeInnes MikeInnes merged commit 7623b85 into FluxML:master Mar 26, 2019
@MikeInnes
Copy link
Member

Thanks!

@JoshuaWhittemore JoshuaWhittemore deleted the add-iris-logistic-regression branch March 26, 2019 14:17
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.

2 participants