Skip to content

Commit 289a373

Browse files
committed
whitespace
1 parent 422c8f8 commit 289a373

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

src/mlj/classifiers.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#= ===================
2-
LOGISTIC CLASSIFIER
3-
=================== =#
1+
#= ===================
2+
LOGISTIC CLASSIFIER
3+
=================== =#
44

55
@with_kw_noshow mutable struct LogisticClassifier <: MLJBase.Probabilistic
66
lambda::Real = 1.0
@@ -19,9 +19,9 @@ glr(m::LogisticClassifier) = LogisticRegression(m.lambda, m.gamma; penalty=m.pen
1919

2020
descr(::Type{LogisticClassifier}) = "Classifier corresponding to the loss function ``L(y, Xθ) + λ|θ|₂²/2 + γ|θ|₁`` where `L` is the logistic loss."
2121

22-
#= ======================
23-
MULTINOMIAL CLASSIFIER
24-
====================== =#
22+
#= ======================
23+
MULTINOMIAL CLASSIFIER
24+
====================== =#
2525

2626
@with_kw_noshow mutable struct MultinomialClassifier <: MLJBase.Probabilistic
2727
lambda::Real = 1.0

src/mlj/regressors.jl

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#= ======================
2-
LINEAR REGRESSOR (OLS)
3-
====================== =#
1+
#= ======================
2+
LINEAR REGRESSOR (OLS)
3+
====================== =#
44

55
@with_kw_noshow mutable struct LinearRegressor <: MLJBase.Deterministic
66
fit_intercept::Bool = true
@@ -11,9 +11,9 @@ glr(m::LinearRegressor) = LinearRegression(fit_intercept=m.fit_intercept)
1111

1212
descr(::Type{LinearRegressor}) = "Regression with objective function ``|Xθ - y|₂²/2``."
1313

14-
#= ===============
15-
RIDGE REGRESSOR
16-
=============== =#
14+
#= ===============
15+
RIDGE REGRESSOR
16+
=============== =#
1717

1818
@with_kw_noshow mutable struct RidgeRegressor <: MLJBase.Deterministic
1919
lambda::Real = 1.0
@@ -27,9 +27,9 @@ glr(m::RidgeRegressor) = RidgeRegression(m.lambda, fit_intercept=m.fit_intercept
2727

2828
descr(::Type{RidgeRegressor}) = "Regression with objective function ``|Xθ - y|₂²/2 + λ|θ|₂²/2``."
2929

30-
#= ===============
31-
LASSO REGRESSOR
32-
=============== =#
30+
#= ===============
31+
LASSO REGRESSOR
32+
=============== =#
3333

3434
@with_kw_noshow mutable struct LassoRegressor <: MLJBase.Deterministic
3535
lambda::Real = 1.0
@@ -43,9 +43,9 @@ glr(m::LassoRegressor) = LassoRegression(m.lambda, fit_intercept=m.fit_intercept
4343

4444
descr(::Type{LassoRegressor}) = "Regression with objective function ``|Xθ - y|₂²/2 + λ|θ|₁``."
4545

46-
#= =====================
47-
ELASTIC NET REGRESSOR
48-
===================== =#
46+
#= =====================
47+
ELASTIC NET REGRESSOR
48+
===================== =#
4949

5050
@with_kw_noshow mutable struct ElasticNetRegressor <: MLJBase.Deterministic
5151
lambda::Real = 1.0
@@ -61,9 +61,9 @@ glr(m::ElasticNetRegressor) = ElasticNetRegression(m.lambda, m.gamma,
6161

6262
descr(::Type{ElasticNetRegressor}) = "Regression with objective function ``|Xθ - y|₂²/2 + λ|θ|₂²/2 + γ|θ|₁``."
6363

64-
#= ==========================
65-
ROBUST REGRESSOR (General)
66-
========================== =#
64+
#= ==========================
65+
ROBUST REGRESSOR (General)
66+
========================== =#
6767

6868
@with_kw_noshow mutable struct RobustRegressor <: MLJBase.Deterministic
6969
rho::RobustRho = HuberRho(0.1)
@@ -81,9 +81,9 @@ glr(m::RobustRegressor) = RobustRegression(m.rho, m.lambda, m.gamma; penalty=m.p
8181

8282
descr(::Type{RobustRegressor}) = "Robust regression with objective ``∑ρ(Xθ - y) + λ|θ|₂² + γ|θ|₁`` for a given robust `ρ`."
8383

84-
#= ===============
85-
HUBER REGRESSOR
86-
=============== =#
84+
#= ===============
85+
HUBER REGRESSOR
86+
=============== =#
8787

8888
@with_kw_noshow mutable struct HuberRegressor <: MLJBase.Deterministic
8989
delta::Real = 0.5
@@ -101,9 +101,9 @@ glr(m::HuberRegressor) = HuberRegression(m.delta, m.lambda, m.gamma; penalty=m.p
101101

102102
descr(::Type{HuberRegressor}) = "Robust regression with objective ``∑ρ(Xθ - y) + λ|θ|₂² + γ|θ|₁`` where `ρ` is the Huber Loss."
103103

104-
#= ==================
105-
QUANTILE REGRESSOR
106-
================== =#
104+
#= ==================
105+
QUANTILE REGRESSOR
106+
================== =#
107107

108108
@with_kw_noshow mutable struct QuantileRegressor <: MLJBase.Deterministic
109109
delta::Real = 0.5
@@ -121,9 +121,9 @@ glr(m::QuantileRegressor) = QuantileRegression(m.delta, m.lambda, m.gamma; penal
121121

122122
descr(::Type{QuantileRegressor}) = "Robust regression with objective ``∑ρ(Xθ - y) + λ|θ|₂² + γ|θ|₁`` where `ρ` is the Quantile Loss."
123123

124-
#= ==================================
125-
LEAST ABSOLUTE DEVIATION REGRESSOR
126-
================================== =#
124+
#= ==================================
125+
LEAST ABSOLUTE DEVIATION REGRESSOR
126+
================================== =#
127127

128128
@with_kw_noshow mutable struct LADRegressor <: MLJBase.Deterministic
129129
lambda::Real = 1.0

0 commit comments

Comments
 (0)