Skip to content

Commit 29272eb

Browse files
authored
Development (#23)
* Documentation make.jl fix Interface refactoring. FeatureExtraction refactoring. Preprocessing refactoring. Export and print variables swapped Lasso fix. Default ols criteria to :r2adj * Updated version
1 parent f0eba15 commit 29272eb

47 files changed

Lines changed: 2491 additions & 1273 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ Manifest.toml
2828
!.env.variables
2929
*.csv
3030
*.json
31-
!docs/swagger/*.json
31+
*.jld
32+
*.jld2
33+
docs/swagger/*.json
3234
!test/*.csv
3335
docs/dev/
3436
docs/build/

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ModelSelection"
22
uuid = "51b78214-913b-40cf-9250-c64eb33811f7"
33
authors = ["Demian Panigo <panigo@gmail.com>", "Adán Mauri Ungaro <adan.mauri@gmail.com>", "Nicolás Monzón <nicomzn4@gmail.com>", "Valentin Mari <valentinmari@hotmail.com>"]
4-
version = "1.3.1"
4+
version = "1.3.2"
55

66
[deps]
77
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"

TODO.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
- A better description of the package in Readme and Documentation
2-
- Features in Readme and Documentation
3-
- Add fixed variables in logit
1+
42
- Add panel as a fixed var
5-
- Issue with OLS
3+
- Add fixed variables in logit
64
- Model average in Logit
7-
5+
- Multiple features for logit
6+
- Features in Readme and Documentation
7+
88
# TBD
9+
- A better description of the package in Readme and Documentation
910
- Validation in every module
1011
- Pending documentation in AllSubsetRegression
1112
- Major refactoring
1213
- General documentation
1314
- Notify progress in modules based in the time that takes in average
15+
- CONS variable name should be random
16+
- Feature extraction with fixed variables
17+
- Think about variables collisions

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
23
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
34
DocumenterTools = "35a29f4d-8980-5a13-9543-d66fff28ecb8"
45
MarkdownAST = "d0879d2d-cac2-40c8-9cee-1863dc0c7391"

docs/make.jl

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
using Documenter, DocumenterTools
2+
using DataFrames
23
using ModelSelection
4+
using ModelSelection: Preprocessing, FeatureExtraction
35

46
# The DOCSARGS environment variable can be used to pass additional arguments to make.jl.
57
# This is useful on CI, if you need to change the behavior of the build slightly but you
@@ -18,12 +20,28 @@ makedocs(
1820
source = "src",
1921
build = "build",
2022
clean = true,
21-
modules = [ModelSelection],
23+
modules = [ModelSelection, Preprocessing, FeatureExtraction],
2224
sitename = "ModelSelection.jl",
2325
pages = [
2426
"Home" => "index.md",
2527
"Getting Started" => "start.md",
2628
"Usage" => "usage.md",
29+
"Modules" => Any[
30+
"Preprocessing" => Any[
31+
"Module" => "modules/Preprocessing/index.md",
32+
"modules/Preprocessing/core.md",
33+
"modules/Preprocessing/utils.md",
34+
"modules/Preprocessing/strings.md",
35+
"modules/Preprocessing/const.md"
36+
],
37+
"FeatureExtraction" => Any[
38+
"Module" => "modules/FeatureExtraction/index.md",
39+
"modules/FeatureExtraction/core.md",
40+
"modules/FeatureExtraction/utils.md",
41+
"modules/FeatureExtraction/strings.md",
42+
"modules/FeatureExtraction/const.md"
43+
],
44+
],
2745
"Contributing" => "contributing.md",
2846
"News" => "news.md",
2947
"Todo" => "todo.md",
@@ -33,4 +51,5 @@ makedocs(
3351

3452
deploydocs(
3553
repo = "github.com/ParallelGSReg/ModelSelection.jl.git",
54+
versions = nothing,
3655
)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Constants
2+
3+
This section of the documentation is dedicated to explaining the purpose and usage of the constants used throughout the FeatureExtraction module.
4+
5+
## Contents
6+
7+
```@contents
8+
Pages = ["const.md"]
9+
```
10+
11+
## Index
12+
13+
```@index
14+
Pages = ["const.md"]
15+
```
16+
17+
## Constants
18+
19+
```@docs
20+
FeatureExtraction.FEATUREEXTRACTION_EXTRAKEY
21+
FeatureExtraction.REMOVEMISSINGS_DEFAULT
22+
FeatureExtraction.PROGRESS
23+
```
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Core
2+
3+
This section of the documentation is dedicated to explaining the purpose and usage core functions used throughout the FeatureExtraction module.
4+
5+
## Contents
6+
7+
```@contents
8+
Pages = ["core.md"]
9+
```
10+
11+
## Index
12+
13+
```@index
14+
Pages = ["core.md"]
15+
```
16+
17+
## Functions
18+
19+
```@docs
20+
FeatureExtraction.featureextraction!(
21+
data::ModelSelection.ModelSelectionData;
22+
fe_sqr::Union{Symbol,Vector{Symbol},Nothing} = nothing,
23+
fe_log::Union{Symbol,Vector{Symbol},Nothing} = nothing,
24+
fe_inv::Union{Symbol,Vector{Symbol},Nothing} = nothing,
25+
fe_lag::Union{Dict{Symbol,Int64},Nothing} = nothing,
26+
interaction::Union{Vector{Tuple{Symbol,Symbol}},Nothing} = nothing,
27+
removemissings::Bool = REMOVEMISSINGS_DEFAULT,
28+
notify = nothing,
29+
)
30+
FeatureExtraction.execute!(
31+
data::ModelSelection.ModelSelectionData;
32+
fe_sqr::Union{Symbol,Vector{Symbol},Nothing} = nothing,
33+
fe_log::Union{Symbol,Vector{Symbol},Nothing} = nothing,
34+
fe_inv::Union{Symbol,Vector{Symbol},Nothing} = nothing,
35+
fe_lag::Union{Dict{Symbol,Int64},Nothing} = nothing,
36+
interaction::Union{Vector{Tuple{Symbol,Symbol}},Nothing} = nothing,
37+
removemissings::Bool = REMOVEMISSINGS_DEFAULT,
38+
notify = nothing,
39+
)
40+
```
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
!!! warning
2+
TODO: this documentation is incomplete and currently under development. To see more detail of the module functions, go to the module sections.
3+
4+
# FeatureExtraction
5+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Strings
2+
3+
This section of the documentation is dedicated to explaining the purpose and usage of the strings used throughout the FeatureExtraction module.
4+
5+
## Contents
6+
7+
```@contents
8+
Pages = ["strings.md"]
9+
```
10+
11+
## Index
12+
13+
```@index
14+
Pages = ["strings.md"]
15+
```
16+
17+
## Constants
18+
19+
```@docs
20+
FeatureExtraction.INTERACTION_DEPVAR_ERROR
21+
FeatureExtraction.INTERACTION_EQUATION_ERROR
22+
FeatureExtraction.LOG_FUNCTION_ERROR
23+
FeatureExtraction.NOTIFY_MESSAGE
24+
FeatureExtraction.SOME_VARIABLES_NOT_FOUND
25+
```
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Utils
2+
3+
This section of the documentation is dedicated to explaining the purpose and usage of the utils function used throughout the FeatureExtraction module.
4+
5+
## Contents
6+
7+
```@contents
8+
Pages = ["utils.md"]
9+
```
10+
11+
## Index
12+
13+
```@index
14+
Pages = ["utils.md"]
15+
```
16+
17+
## Functions
18+
19+
```@docs
20+
FeatureExtraction.parse_fe_variables(
21+
fe_vars::Union{Symbol,Vector{Symbol},Dict{Symbol,Int64},Vector{Tuple{Symbol, Symbol}}},
22+
expvars::Vector{Symbol};
23+
depvar::Union{Symbol,Nothing} = nothing,
24+
)
25+
FeatureExtraction.data_add_fe_vars!(
26+
data::ModelSelection.ModelSelectionData,
27+
fe_vars::Union{Symbol,Vector{Symbol},Dict{Symbol,Int64}},
28+
postfix::String,
29+
func,
30+
)
31+
FeatureExtraction.data_add_fe_sqr!(
32+
data::ModelSelection.ModelSelectionData,
33+
fe_vars::Union{Symbol,Vector{Symbol}},
34+
)
35+
FeatureExtraction.data_add_fe_log!(
36+
data::ModelSelection.ModelSelectionData,
37+
fe_vars::Union{Symbol,Vector{Symbol}},
38+
)
39+
FeatureExtraction.data_add_fe_inv!(
40+
data::ModelSelection.ModelSelectionData,
41+
fe_vars::Union{Symbol,Vector{Symbol}},
42+
)
43+
FeatureExtraction.data_add_fe_lag!(
44+
data::ModelSelection.ModelSelectionData,
45+
fe_vars::Dict{Symbol,Int64},
46+
)
47+
FeatureExtraction.data_add_interaction!(
48+
data::ModelSelection.ModelSelectionData,
49+
interaction::Vector{Tuple{Symbol,Symbol}},
50+
)
51+
```

0 commit comments

Comments
 (0)