-
Notifications
You must be signed in to change notification settings - Fork 45
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
Hard deps and CSV->DelimitedFiles #78
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for all the work. Just need the commented tests returned, thanks
ok done, actually I'm glad you spotted it because the code for the datasets wasn't properly included 🙄 should be all good now |
It looks like the macro forms of loading data still import CSV: macro load_boston()
quote
import CSV
y, X = unpack(load_boston(), ==(:MedV), x->x != :Chas)
(X, y)
end
end (As a side note: the raison d'etre for using macros - importing an optional dependency - is gone. Let's keep the macro - which has a different return value from the functions - because otherwise we break MLJ) |
thanks yes will remove those |
load_iris() = load_dataset("iris.csv", COERCE_IRIS) | ||
load_crabs() = load_dataset("crabs.csv", COERCE_CRABS) | ||
|
||
load_crabs() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this fixes the travis fail, but line 166 is presumably not supposed to be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed an extraneous line of code. See above
This PR
DelimitedFiles
to loadboston
, etcSee also JuliaAI/ScientificTypes.jl#38; this addresses #77 ; ideally merge this in dev second (after merging JuliaAI/ScientificTypes.jl#38)