Skip to content

Commit 7728ff5

Browse files
committed
minor fixes
1 parent 79b56a6 commit 7728ff5

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# v0.11.3 (Upcoming Release)
1+
# v0.11.4 (Upcoming Release)
22

33

4+
# v0.11.3
5+
6+
- Minor fixes
7+
48
# v0.11.2
59

610
- Optional eps and maxiter parameters in iterateCSteps() in LTS.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LinRegOutliers"
22
uuid = "6d4de0fb-32d9-4c65-aac1-cc9ed8b94b1a"
33
authors = ["Mehmet Hakan Satman <mhsatman@gmail.com>", "Shreesh Adiga <16567adigashreesh@gmail.com>", "Guillermo Angeris <angeris@stanford.edu>", "Emre Akadal <emre.akadal@istanbul.edu.tr>"]
4-
version = "0.11.2"
4+
version = "0.11.3"
55

66
[deps]
77
Clustering = "aaaa29a8-35af-508c-8bc3-b662a17a0fe5"

src/lms.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function lms(X::AbstractMatrix{Float64}, y::AbstractVector{Float64}; iters = not
7272
bestres = []
7373
indices = collect(1:n)
7474
kindices = collect(p:n)
75-
for iter = 1:iters
75+
for _ = 1:iters
7676
try
7777
k = rand(kindices, 1)[1]
7878
sampledindices = sample(indices, k, replace = false)

src/lts.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,10 @@ function iterateCSteps(
4545
subsetindices::Array{Int,1},
4646
h::Int; eps::Float64 = 0.01, maxiter::Int = 10000
4747
)
48-
#starterset = subsetindices
4948
oldobjective::Float64 = Inf64
5049
objective::Float64 = Inf64
5150
iter::Int = 0
5251
while iter < maxiter
53-
#betas = X[subsetindices, :] \ y[subsetindices]
54-
#res = y - X * betas
5552
tempols = ols(X[subsetindices, :], y[subsetindices])
5653
res = y - X * coef(tempols)
5754
sortedresindices = sortperm(abs.(res))
@@ -63,9 +60,6 @@ function iterateCSteps(
6360
oldobjective = objective
6461
iter += 1
6562
end
66-
#if iter >= maxiter
67-
# @warn "in c-step stage of LTS, a h-subset is not converged for starting indices " starterset
68-
#end
6963
return (objective, subsetindices)
7064
end
7165

0 commit comments

Comments
 (0)