diff options
author | matthewsotoudeh <matthewsot@outlook.com> | 2016-04-16 23:37:00 -0700 |
---|---|---|
committer | matthewsotoudeh <matthewsot@outlook.com> | 2016-04-16 23:37:00 -0700 |
commit | c6e9a1aa2ca82bab816a9b9a669179c78e5bd15c (patch) | |
tree | 238506b9c449b7d3069eedc76a51d10d0122d520 | |
parent | ca085c7bd59ea6ef9ebaa2c082e4150bf6896bd2 (diff) |
Fixed the options loading
-rw-r--r-- | NImg/NImg/CompressionOptions.cs | 6 | ||||
-rw-r--r-- | NImg/NImg/Optimizer.cs | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/NImg/NImg/CompressionOptions.cs b/NImg/NImg/CompressionOptions.cs index 733bc46..2ffd50f 100644 --- a/NImg/NImg/CompressionOptions.cs +++ b/NImg/NImg/CompressionOptions.cs @@ -1,4 +1,6 @@ -namespace NImg +using System.Reflection; + +namespace NImg { public class CompressionOptions { @@ -6,7 +8,7 @@ { set { - this.GetType().GetProperty(property, System.Reflection.BindingFlags.IgnoreCase)?.SetValue(this, value, null); + this.GetType().GetProperty(property, BindingFlags.IgnoreCase | BindingFlags.Public | BindingFlags.Instance)?.SetValue(this, value, null); } } diff --git a/NImg/NImg/Optimizer.cs b/NImg/NImg/Optimizer.cs index 34fd249..cf7a240 100644 --- a/NImg/NImg/Optimizer.cs +++ b/NImg/NImg/Optimizer.cs @@ -24,6 +24,7 @@ namespace NImg double error = 0; double deltaDrop = 0; int tries = 0; + Console.WriteLine("Beginning Optimization"); do { network.Weights = BackPropOptimizer.Optimize(network, trainingSets, 0.5, 1); |