summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthewsotoudeh <matthewsot@outlook.com>2016-04-16 23:37:00 -0700
committermatthewsotoudeh <matthewsot@outlook.com>2016-04-16 23:37:00 -0700
commitc6e9a1aa2ca82bab816a9b9a669179c78e5bd15c (patch)
tree238506b9c449b7d3069eedc76a51d10d0122d520
parentca085c7bd59ea6ef9ebaa2c082e4150bf6896bd2 (diff)
Fixed the options loading
-rw-r--r--NImg/NImg/CompressionOptions.cs6
-rw-r--r--NImg/NImg/Optimizer.cs1
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);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback