@@ -788,18 +788,17 @@ Return the learned parameters for a machine `mach` that has been
788
788
789
789
This is a named tuple and human-readable if possible.
790
790
791
- If `mach` is a machine for a composite model, such as a model
792
- constructed using `@pipeline`, then the returned named tuple has the
793
- composite type's field names as keys. The corresponding value is the
794
- fitted parameters for the machine in the underlying learning network
795
- bound to that model. (If multiple machines share the same model, then the
796
- value is a vector.)
791
+ If `mach` is a machine for a composite model, such as a model constructed using the
792
+ pipeline syntax `model1 |> model2 |> ...`, then the returned named tuple has the composite
793
+ type's field names as keys. The corresponding value is the fitted parameters for the
794
+ machine in the underlying learning network bound to that model. (If multiple machines
795
+ share the same model, then the value is a vector.)
797
796
798
797
```julia
799
798
using MLJ
800
799
@load LogisticClassifier pkg=MLJLinearModels
801
800
X, y = @load_crabs;
802
- pipe = @pipeline Standardizer LogisticClassifier
801
+ pipe = Standardizer() |> LogisticClassifier()
803
802
mach = machine(pipe, X, y) |> fit!
804
803
805
804
julia> fitted_params(mach).logistic_classifier
@@ -831,18 +830,17 @@ Return the report for a machine `mach` that has been
831
830
832
831
This is a named tuple and human-readable if possible.
833
832
834
- If `mach` is a machine for a composite model, such as a model
835
- constructed using `@pipeline`, then the returned named tuple has the
836
- composite type's field names as keys. The corresponding value is the
837
- report for the machine in the underlying learning network
838
- bound to that model. (If multiple machines share the same model, then the
839
- value is a vector.)
833
+ If `mach` is a machine for a composite model, such as a model constructed using the
834
+ pipeline syntax `model1 |> model2 |> ...`, then the returned named tuple has the composite
835
+ type's field names as keys. The corresponding value is the report for the machine in the
836
+ underlying learning network bound to that model. (If multiple machines share the same
837
+ model, then the value is a vector.)
840
838
841
839
```julia
842
840
using MLJ
843
841
@load LinearBinaryClassifier pkg=GLM
844
842
X, y = @load_crabs;
845
- pipe = @pipeline Standardizer LinearBinaryClassifier
843
+ pipe = Standardizer() |> LinearBinaryClassifier()
846
844
mach = machine(pipe, X, y) |> fit!
847
845
848
846
julia> report(mach).linear_binary_classifier
0 commit comments