Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
imagej-elphel
Commits
8aa4bef7
Commit
8aa4bef7
authored
Sep 23, 2024
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regularization to alpha
parent
836e9158
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
42 deletions
+128
-42
VegetationLMA.java
...main/java/com/elphel/imagej/vegetation/VegetationLMA.java
+117
-41
VegetationModel.java
...in/java/com/elphel/imagej/vegetation/VegetationModel.java
+11
-1
No files found.
src/main/java/com/elphel/imagej/vegetation/VegetationLMA.java
View file @
8aa4bef7
This diff is collapsed.
Click to expand it.
src/main/java/com/elphel/imagej/vegetation/VegetationModel.java
View file @
8aa4bef7
...
...
@@ -698,11 +698,18 @@ public class VegetationModel {
int
min_scenes
=
10
;
double
default_alpha
=
0.8
;
double
[]
scene_weights
=
null
;
double
reg_weights
=
0.25
;
// fraction of the total weight used for regularization
double
alpha_loss
=
1.0
;
// quadratic loss when alpha reaches -1.0 or 2.0
double
alpha_offset
=
0.0
;
// if >0, start losses above 0.0 and below 1.0;
int
num_samples
=
vegetationLMA
.
prepareLMA
(
woi50
,
// final Rectangle woi,
min_scenes
,
// final int min_scenes, // minimal number of scenes (inside woi) vegetation pixel must influence
default_alpha
,
// final double default_alpha,
scene_weights
,
// final double [] scene_weights, // null or per-scene weights (higher for larger offsets)?
reg_weights
,
// final double reg_weights, // fraction of the total weight used for regularization
alpha_loss
,
// final double alpha_loss, // quadratic loss when alpha reaches -1.0 or 2.0
alpha_offset
,
// final double alpha_offset, // quadratic loss when alpha reaches -1.0 or 2.0
debugLevel
);
// final int debugLevel);
double
lambda
=
0.1
;
...
...
@@ -712,6 +719,9 @@ public class VegetationModel {
boolean
last_run
=
false
;
double
rms_diff
=
0.0001
;
int
num_iter
=
100
;
vegetationLMA
.
debug_index
=
0
;
vegetationLMA
.
debug_image
=
new
double
[
num_iter
][];
int
lma_rslt
=
vegetationLMA
.
runLma
(
// <0 - failed, >=0 iteration number (1 - immediately)
lambda
,
// double lambda, // 0.1
lambda_scale_good
,
// double lambda_scale_good,// 0.5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment