Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliaai/statisticaltraits.jl
https://github.com/juliaai/statisticaltraits.jl
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/juliaai/statisticaltraits.jl
- Owner: JuliaAI
- License: other
- Created: 2021-01-22T09:27:13.000Z (almost 4 years ago)
- Default Branch: dev
- Last Pushed: 2024-06-27T05:18:08.000Z (5 months ago)
- Last Synced: 2024-06-28T06:13:34.821Z (5 months ago)
- Language: Julia
- Size: 48.8 KB
- Stars: 3
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StatisticalTraits.jl
| Linux | Coverage |
| :-----------: | :------: |
| [![Build status](https://github.com/JuliaAI/StatisticalTraits.jl/workflows/CI/badge.svg)](https://github.com/JuliaAI/StatisticalTraits.jl/actions)| [![codecov](https://codecov.io/gh/JuliaAI/StatisticalTraits.jl/branch/master/graph/badge.svg?token=rh6HnyIKc1)](https://codecov.io/gh/JuliaAI/StatisticalTraits.jl) |A light-weight package defining fall-back implementations for a
collection of traits possessed by statistical objects. Here a "trait"
is a function with a single argument that is a julia type, which might
encode type metadata for inspection, or for use in function
dispatch.Here are two examples, which might apply to both statistical
model types and loss function types:```julia
target_scitype(::Type) = Unknown
prediction_type(::Type) = :unknown # also :probablistic, :deterministic, :interval
```Here `Unknown` is a type defined in the light-weight package
[ScientificTypesBase.jl](https://github.com/JuliaAI/ScientificTypesBase.jl),
the only dependency of StatsTraits.jl.Refer to [source code](src/StatisticalTraits.jl) for a complete list.
The traits defined here are overloaded by assorted model types and
measure types in the
[MLJ](https://github.com/alan-turing-institute/MLJ.jl) universe
(examples of measures are loss functions and scoring rules). However,
this small package might be of independent interest.A planned StatisticalMeasures.jl package, to contain measures
currently in
[MLJBase.jl](https://github.com/JuliaAI/MLJBase.jl),
will have this package as a dependency, allowing it to be independent
of the MLJ packages.