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
* maxnet is registered
* fully implement MLJ (#22)
* add mlj docstring
* test with MLJTestInterface
* throw a helpful error if input data only has one class
* mljtestinterface is not a dep (oops)
* move allequal error to main function
* fix allequal error
* fix tests
* add MLJBase as docs dep
* fix mlj doctest
* attempt fix of multiclass printing
* use @example instead of jldoctest
* test for no failures in mlj interface test
* maxnet is registered
* more MLJ docs
* small tweaks to core function docs
* add check scitypes
Co-authored-by: Anthony Blaom, PhD <[email protected]>
* Clogloglink is from Maxnet
Co-authored-by: Anthony Blaom, PhD <[email protected]>
---------
Co-authored-by: Anthony Blaom, PhD <[email protected]>
Copy file name to clipboardExpand all lines: docs/src/usage/quickstart.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,10 @@ CurrentModule = Maxnet
3
3
```
4
4
5
5
## Installation
6
-
Maxnet.jl is not yet registered - install by running
6
+
Install the latest version of Maxnet.jl by running
7
7
```julia
8
8
]
9
-
add https://github.com/tiemvanderdeure/Maxnet.jl
9
+
add Maxnet
10
10
```
11
11
12
12
## Basic usage
@@ -31,7 +31,7 @@ There are numerous settings that can be tweaked to change the model fit. These a
31
31
### Model settings
32
32
The two most important settings to change when running Maxnet is the feature classes selected and the regularization factor.
33
33
34
-
By default, the feature classes selected depends on the number of presence points, see [Maxnet.default_features](@ref). To set them manually, specify the `features` keyword using either a `Vector` of `AbstractFeatureClass`, or a `string`, where `l` represents `LinearFeature` and `CategoricalFeature`, `q` represents `QuadraticFeature`, `p` represents `ProductFeature`, `t` represents `ThresholdFeature` and `h` represents `HingeFeature`.
34
+
By default, the feature classes selected depends on the number of presence points, see [default_features](@ref). To set them manually, specify the `features` keyword using either a `Vector` of `AbstractFeatureClass`, or a `string`, where `l` represents `LinearFeature` and `CategoricalFeature`, `q` represents `QuadraticFeature`, `p` represents `ProductFeature`, `t` represents `ThresholdFeature` and `h` represents `HingeFeature`.
Copy file name to clipboardExpand all lines: src/maxnet_function.jl
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,11 @@
16
16
- `features`: Either a `Vector` of `AbstractFeatureClass` to be used in the model,
17
17
or a `String` where "l" = linear and categorical, "q" = quadratic, "p" = product, "t" = threshold, "h" = hinge (e.g. "lqh"); or
18
18
By default, the features are based on the number of presences are used. See [`default_features`](@ref)
19
-
- `regularization_multiplier`: A constant to adjust regularization, where a higher `regularization_multiplier` results in a higher penalization for features
20
-
- `regularization_function`: A function to compute a regularization for each feature. A default `regularization_function` is built in.
21
-
- `addsamplestobackground`: A boolean, where `true` adds the background samples to the predictors. Defaults to `true`.
19
+
- `regularization_multiplier`: A constant to adjust regularization, where a higher `regularization_multiplier` results in a higher
20
+
penalization for features and therefore less overfitting.
21
+
- `regularization_function`: A function to compute a regularization for each feature. A default `regularization_function` is built in
22
+
and should be used in most cases.
23
+
- `addsamplestobackground`: Whether to add presence values to the background. Defaults to `true`.
22
24
- `n_knots`: the number of knots used for Threshold and Hinge features. Defaults to 50. Ignored if there are neither Threshold nor Hinge features
23
25
- `weight_factor`: A `Float64` value to adjust the weight of the background samples. Defaults to 100.0.
24
26
- `kw...`: Further arguments to be passed to `GLMNet.glmnet`
@@ -32,6 +34,7 @@ using Maxnet
32
34
p_a, env = Maxnet.bradypus();
33
35
bradypus_model = maxnet(p_a, env; features = "lq")
34
36
37
+
# Output
35
38
Fit Maxnet model
36
39
Features classes: Maxnet.AbstractFeatureClass[LinearFeature(), CategoricalFeature(), QuadraticFeature()]
0 commit comments