Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

import StatsBase: nobs #48

Merged
merged 2 commits into from
Jul 28, 2021
Merged

import StatsBase: nobs #48

merged 2 commits into from
Jul 28, 2021

Conversation

CarloLucibello
Copy link
Member

@CarloLucibello CarloLucibello commented Jul 28, 2021

Import StatsBase: noobs so that downstream packages (such as FastAI.jl) can continue to implement

LearnBase.nobs(data::MyDataset) = ...

without breakage. Since StatsBase is a heavy dependence, I filed JuliaStats/StatsAPI.jl#3 to move nobs to StatsAPI.jl. Switching from StatsBase to StatsAPI can be done at a later moment without breackage, this PR shouldn't be blocked by that.

One tangential consideration: in accordance with these days naming conventions, ideally we should rename

LearnBase -> LearnAPI (a package containing only (unexported) definitions without the implementations, similar to StatsAPI and DataAPI)

MLDataPattens, MLLabelsUtils, LossFunctions, PenatlyFunction could be condensed into a single MLBase package instead.

cc @darsnack

Copy link
Member

@darsnack darsnack left a comment

Choose a reason for hiding this comment

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

This and the long term plan for LearnAPI + MLBase sounds good to me

@CarloLucibello CarloLucibello merged commit 249de8a into master Jul 28, 2021
@darsnack darsnack mentioned this pull request Jul 28, 2021
darsnack added a commit to darsnack/LearnBase.jl that referenced this pull request Dec 29, 2021
This reverts commit 249de8a, reversing
changes made to 236ff5c.
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.

2 participants