You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `presences`: A `BitVector` where presences are `true` and background samples are `false`
35
36
- `predictors`: A Tables.jl-compatible table of predictors. Categorical predictors should be `CategoricalVector`s
36
37
37
38
# Keywords
38
-
- `features`: Either:
39
-
- A `Vector` of `AbstractFeatureClass` type features; or
40
-
- A `String` where "l" = linear and categorical, "q" = quadratic, "p" = product, "t" = threshold, "h" = hinge (e.g. "lqh"); or
41
-
- The default, in which case the features are based on the number of presences are used. See [`default_features`](@ref)
39
+
- `features`: Either a `Vector` of `AbstractFeatureClass` to be used in the model,
40
+
or a `String` where "l" = linear and categorical, "q" = quadratic, "p" = product, "t" = threshold, "h" = hinge (e.g. "lqh"); or
41
+
By default, the features are based on the number of presences are used. See [`default_features`](@ref)
42
42
- `regularization_multiplier`: A constant to adjust regularization, where a higher `regularization_multiplier` results in a higher penalization for features
43
43
- `regularization_function`: A function to compute a regularization for each feature. A default `regularization_function` is built in.
44
44
- `addsamplestobackground`: A boolean, where `true` adds the background samples to the predictors. Defaults to `true`.
@@ -53,10 +53,18 @@ Lasso.jl is written in pure julia, but can be slower with large model matrices (
53
53
54
54
# Examples
55
55
```jldoctest
56
-
using Maxnet
57
-
p_a, env = Maxnet.bradypus()
56
+
using Maxnet
57
+
p_a, env = Maxnet.bradypus()
58
+
59
+
bradypus_model = maxnet(p_a, env; features = "lq", backend = GLMNetBackend())
60
+
61
+
# output
58
62
59
-
bradypus_model = maxnet(p_a, env; features = "lq", backend = GLMNetBackend());
63
+
Fit Maxnet model
64
+
Features classes: Maxnet.AbstractFeatureClass[LinearFeature(), CategoricalFeature(), QuadraticFeature()]
0 commit comments