Skip to content

Commit a0244a1

Browse files
authored
Merge branch 'dev' into docs
2 parents 4270d25 + e402fa4 commit a0244a1

18 files changed

+72
-73
lines changed

Project.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name = "MLJTransforms"
22
uuid = "23777cdb-d90c-4eb0-a694-7c2b83d5c1d6"
33
authors = ["Essam <[email protected]> and contributors"]
4-
version = "0.1.6"
4+
5+
version = "0.1.1"
56

67
[deps]
78
BitBasis = "50ba71b6-fa0f-514d-ae9a-0916efc90dcf"
@@ -14,6 +15,7 @@ MLJModelInterface = "e80e1ace-859a-464e-9ed9-23947d8ae3ea"
1415
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
1516
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a"
1617
ScientificTypes = "321657f4-b219-11e9-178b-2701a2544e81"
18+
ScientificTypesBase = "30f210dd-8aff-4c5f-94ba-8e64358c1161"
1719
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1820
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1921
TableOperations = "ab02a1b2-a7df-11e8-156e-fb1833f50b87"
@@ -22,14 +24,15 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
2224
[compat]
2325
BitBasis = "0.9"
2426
CategoricalArrays = "0.10"
25-
MLJModelInterface = "1.11"
2627
Combinatorics = "1"
2728
Dates = "1"
2829
Distributions = "0.25"
2930
LinearAlgebra = "1"
31+
MLJModelInterface = "1.11"
3032
OrderedCollections = "1"
3133
Parameters = "0.12"
32-
ScientificTypes = "3.0"
34+
ScientificTypes = "3.1.0"
35+
ScientificTypesBase = "3.0.0"
3336
Statistics = "1"
3437
StatsBase = "0.34"
3538
TableOperations = "1.2"

src/MLJTransforms.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
module MLJTransforms
22
using Tables
3-
using ScientificTypes
4-
using ScientificTypes: scitype
3+
# Note: The `scitype` in
4+
# MLJModelInterface clashes with the `scitype` in ScientificTypes. See also
5+
# https://github.com/JuliaAI/MLJBase.jl/issues/1002
6+
import ScientificTypes: elscitype, schema, coerce, ScientificTimeType
7+
using MLJModelInterface # exports `scitype`, which will call `ScientificTypes.scitype`,
8+
# once MLJBase is loaded (but this is not a dependency!)
59
using CategoricalArrays
6-
using MLJModelInterface
710
using TableOperations
811
using StatsBase
912
using LinearAlgebra
@@ -15,7 +18,6 @@ using Parameters
1518
using Dates
1619
using OrderedCollections
1720

18-
1921
const MMI = MLJModelInterface
2022

2123
# Functions of generic use across transformers

src/transformers/other_transformers/fill_imputer.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ metadata_model(UnivariateFillImputer,
187187
AbstractVector{<:Count},
188188
AbstractVector{<:Finite}},
189189
human_name = "single variable fill imputer",
190-
load_path = "MLJModels.UnivariateFillImputer")
190+
load_path = "MLJTransforms.UnivariateFillImputer")
191191

192192
metadata_model(FillImputer,
193193
input_scitype = Table,
194194
output_scitype = Table,
195-
load_path = "MLJModels.FillImputer")
195+
load_path = "MLJTransforms.FillImputer")
196196

197197
"""
198198
$(MLJModelInterface.doc_header(UnivariateFillImputer))

src/transformers/other_transformers/interaction_transformer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ metadata_model(InteractionTransformer,
3838
input_scitype = Tuple{Table},
3939
output_scitype = Table,
4040
human_name = "interaction transformer",
41-
load_path = "MLJModels.InteractionTransformer")
41+
load_path = "MLJTransforms.InteractionTransformer")
4242

4343
"""
4444
$(MLJModelInterface.doc_header(InteractionTransformer))

src/transformers/other_transformers/metadata_shared.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ metadata_pkg.(
1313
UnivariateTimeTypeToContinuous,
1414
InteractionTransformer
1515
),
16-
package_name = "MLJModels",
17-
package_uuid = "d491faf4-2d78-11e9-2867-c94bc002c0b7",
18-
package_url = "https://github.com/JuliaAI/MLJModels.jl",
16+
package_name = "MLJTransforms",
17+
package_uuid = "23777cdb-d90c-4eb0-a694-7c2b83d5c1d6",
18+
package_url = "https://github.com/JuliaAI/MLJTransforms.jl",
1919
is_pure_julia = true,
2020
package_license = "MIT")

src/transformers/other_transformers/one_hot_encoder.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ metadata_model(OneHotEncoder,
163163
input_scitype = Table,
164164
output_scitype = Table,
165165
human_name = "one-hot encoder",
166-
load_path = "MLJModels.OneHotEncoder")
166+
load_path = "MLJTransforms.OneHotEncoder")
167167

168168
"""
169169
$(MLJModelInterface.doc_header(OneHotEncoder))

src/transformers/other_transformers/standardizer.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,12 @@ metadata_model(UnivariateStandardizer,
229229
input_scitype = AbstractVector{<:Infinite},
230230
output_scitype = AbstractVector{Continuous},
231231
human_name = "single variable discretizer",
232-
load_path = "MLJModels.UnivariateStandardizer")
232+
load_path = "MLJTransforms.UnivariateStandardizer")
233233

234234
metadata_model(Standardizer,
235235
input_scitype = Union{Table, AbstractVector{<:Continuous}},
236236
output_scitype = Union{Table, AbstractVector{<:Continuous}},
237-
load_path = "MLJModels.Standardizer")
237+
load_path = "MLJTransforms.Standardizer")
238238

239239
"""
240240
$(MLJModelInterface.doc_header(Standardizer))

src/transformers/other_transformers/univariate_boxcox_transformer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ metadata_model(UnivariateBoxCoxTransformer,
9191
input_scitype = AbstractVector{Continuous},
9292
output_scitype = AbstractVector{Continuous},
9393
human_name = "single variable Box-Cox transformer",
94-
load_path = "MLJModels.UnivariateBoxCoxTransformer")
94+
load_path = "MLJTransforms.UnivariateBoxCoxTransformer")
9595

9696
"""
9797
$(MLJModelInterface.doc_header(UnivariateBoxCoxTransformer))

src/transformers/other_transformers/univariate_discretizer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ metadata_model(UnivariateDiscretizer,
9494
input_scitype = AbstractVector{<:Continuous},
9595
output_scitype = AbstractVector{<:OrderedFactor},
9696
human_name = "single variable discretizer",
97-
load_path = "MLJModels.UnivariateDiscretizer")
97+
load_path = "MLJTransforms.UnivariateDiscretizer")
9898

9999

100100
"""

src/transformers/other_transformers/univariate_time_type_to_continuous.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ metadata_model(UnivariateTimeTypeToContinuous,
129129
output_scitype = AbstractVector{Continuous},
130130
human_name ="single variable transformer that creates "*
131131
"continuous representations of temporally typed data",
132-
load_path = "MLJModels.UnivariateTimeTypeToContinuous")
132+
load_path = "MLJTransforms.UnivariateTimeTypeToContinuous")
133133

134134
"""
135135
$(MLJModelInterface.doc_header(UnivariateTimeTypeToContinuous))

0 commit comments

Comments
 (0)