-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
34 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[deps] | ||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
MLCore = "c2834f40-e789-41da-a90e-33b280584a8c" | ||
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
# AbstractDataContainer | ||
|
||
# Having an AbstractDataContainer allows to define sensible defaults | ||
# for Base (or other) interfaces based on our interface. | ||
# Now mainly provides the iteration interface. | ||
# This makes it easier for developers by reducing boilerplate. | ||
|
||
abstract type AbstractDataContainer end | ||
|
||
Base.size(x::AbstractDataContainer) = (numobs(x),) | ||
Base.iterate(x::AbstractDataContainer, state = 1) = | ||
(state > numobs(x)) ? nothing : (getobs(x, state), state + 1) | ||
Base.lastindex(x::AbstractDataContainer) = numobs(x) | ||
Base.firstindex(::AbstractDataContainer) = 1 | ||
|
||
# TODO: add generic show method. See DataLoader's show for inspiration. |
This file was deleted.
Oops, something went wrong.