Skip to content

Commit 8ed209c

Browse files
authored
Merge pull request #36 from JuliaAI/dev
For 0.2.0 release
2 parents dfeefe1 + e402fa4 commit 8ed209c

19 files changed

+74
-76
lines changed

Project.toml

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

66
[deps]
77
BitBasis = "50ba71b6-fa0f-514d-ae9a-0916efc90dcf"
@@ -14,6 +14,7 @@ MLJModelInterface = "e80e1ace-859a-464e-9ed9-23947d8ae3ea"
1414
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
1515
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a"
1616
ScientificTypes = "321657f4-b219-11e9-178b-2701a2544e81"
17+
ScientificTypesBase = "30f210dd-8aff-4c5f-94ba-8e64358c1161"
1718
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1819
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1920
TableOperations = "ab02a1b2-a7df-11e8-156e-fb1833f50b87"
@@ -22,14 +23,15 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
2223
[compat]
2324
BitBasis = "0.9"
2425
CategoricalArrays = "0.10"
25-
MLJModelInterface = "1.11"
2626
Combinatorics = "1"
2727
Dates = "1"
2828
Distributions = "0.25"
2929
LinearAlgebra = "1"
30+
MLJModelInterface = "1.11"
3031
OrderedCollections = "1"
3132
Parameters = "0.12"
32-
ScientificTypes = "3.0"
33+
ScientificTypes = "3.1.0"
34+
ScientificTypesBase = "3.0.0"
3335
Statistics = "1"
3436
StatsBase = "0.34"
3537
TableOperations = "1.2"
@@ -38,11 +40,11 @@ julia = "1.10"
3840

3941
[extras]
4042
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
41-
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
4243
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
4344
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
44-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
45+
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
4546
StatsModels = "3eaba693-59b7-5ba5-a881-562e759f1c8d"
47+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
4648

4749
[targets]
4850
test = ["Test", "DataFrames", "MLJBase", "Random", "StableRNGs", "StatsModels"]

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/continuous_encoder.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ end
7373
metadata_model(ContinuousEncoder,
7474
input_scitype = Table,
7575
output_scitype = Table(Continuous),
76-
load_path = "MLJModels.ContinuousEncoder")
76+
load_path = "MLJTransforms.ContinuousEncoder")
7777

7878
"""
7979
$(MLJModelInterface.doc_header(ContinuousEncoder))

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
"""

0 commit comments

Comments
 (0)