Skip to content

Commit d93bb1a

Browse files
authored
Merge pull request #19 from JuliaAI/dev
For a 2.1 release
2 parents 8a23325 + 968da60 commit d93bb1a

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "StatisticalTraits"
22
uuid = "64bff920-2084-43da-a3e6-9bb72801c0c9"
33
authors = ["Anthony D. Blaom <[email protected]>"]
4-
version = "2.0.1"
4+
version = "2.1.0"
55

66
[deps]
77
ScientificTypesBase = "30f210dd-8aff-4c5f-94ba-8e64358c1161"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
| Linux | Coverage |
44
| :-----------: | :------: |
5-
| [![Build status](https://github.com/alan-turing-institute/StatisticalTraits.jl/workflows/CI/badge.svg)](https://github.com/alan-turing-institute/StatisticalTraits.jl/actions)| [![codecov](https://codecov.io/gh/alan-turing-institute/StatisticalTraits.jl/branch/master/graph/badge.svg?token=rh6HnyIKc1)](https://codecov.io/gh/alan-turing-institute/StatisticalTraits.jl) |
5+
| [![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) |
66

77
A light-weight package defining fall-back implementations for a
88
collection of traits possessed by statistical objects. Here a "trait"
@@ -19,7 +19,7 @@ prediction_type(::Type) = :unknown # also :probablistic, :deterministic, :interv
1919
```
2020

2121
Here `Unknown` is a type defined in the light-weight package
22-
[ScientificTypes.jl](https://github.com/alan-turing-institute/ScientificTypes.jl),
22+
[ScientificTypes.jl](https://github.com/JuliaAI/ScientificTypes.jl),
2323
the only dependency of StatsTraits.jl.
2424

2525
Refer to [source code](src/StatisticalTraits.jl) for a complete list.
@@ -32,7 +32,7 @@ this small package might be of independent interest.
3232

3333
A planned StatisticalMeasures.jl package, to contain measures
3434
currently in
35-
[MLJBase.jl](https://github.com/alan-turing-institute/MLJBase.jl),
35+
[MLJBase.jl](https://github.com/JuliaAI/MLJBase.jl),
3636
will have this package as a dependency, allowing it to be independent
3737
of the MLJ packages.
3838

src/StatisticalTraits.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ const TRAITS = [
99
:input_scitype,
1010
:output_scitype,
1111
:target_scitype,
12+
:fit_data_scitype, #
13+
:predict_scitype, #
14+
:transform_scitype, #
15+
:inverse_transform_scitype, #
1216
:is_pure_julia,
1317
:package_name,
1418
:package_license,
@@ -24,6 +28,7 @@ const TRAITS = [
2428
:human_name,
2529
:is_supervised,
2630
:prediction_type,
31+
:abstract_type, #
2732
:hyperparameters,
2833
:hyperparameter_types,
2934
:hyperparameter_ranges,
@@ -133,6 +138,10 @@ snakecase(s::Symbol) = Symbol(snakecase(string(s)))
133138
input_scitype(::Type) = Unknown
134139
output_scitype(::Type) = Unknown
135140
target_scitype(::Type) = Unknown
141+
fit_data_scitype(::Type) = Unknown
142+
predict_scitype(::Type) = Unknown
143+
transform_scitype(::Type) = Unknown
144+
inverse_transform_scitype(::Type) = Unknown
136145

137146
# The following refer to properties of the package defining a type,
138147
# for use in, say, a registry of machine learning models. All but the
@@ -157,6 +166,7 @@ prediction_type(::Type) = :unknown
157166

158167
# Miscellaneous:
159168

169+
abstract_type(::Type) = Any
160170
is_wrapper(::Type) = false # or `true`
161171
supports_online(::Type) = false # or `true`
162172
docstring(M::Type) = string(M) # some `String`

0 commit comments

Comments
 (0)