Esempio n. 1
0
 public AllFeatures()
 {
     this.features = new List<Feature>();
     this.Success = new FeatureSuccess();
     featureType = Logger.Inst.GetString("FeatureType");
     featureType2 = Logger.Inst.GetString("FeatureType2");
     this.attractivenessPurgeThreshold = Logger.Inst.GetDouble("attractivenessPurgeThreshold");
     this.interestingnessPurgeThreshold = Logger.Inst.GetDouble("interestingnessPurgeThreshold");
     this.usePixelFeatures = Logger.Inst.GetBool("usePixelFeatures");
 }
Esempio n. 2
0
 public Processor(Func<SingleFeature> FeatureGenerator,
     string processName = "", int featureCount = 5000, string filepath = @"C:\Users\Amichai\Data\digits.csv")
 {
     this.loader = new InputLoader();
     this.loader.LoadFile(filepath);
     this.allfeatures = new AllFeatures(featureCount, 28, FeatureGenerator);
     this.success = new FeatureSuccess();
     processID = processCounter++;
     this.Name = processName;
     this.LogFileLocation = @"C:\IR\" + DateTime.Now.ToLongTimeString().Replace(":", ".").Replace(" ", "") + "_" + this.processID.ToString() + ".txt";
 }
Esempio n. 3
0
 public SingleFeature(IValGenerator generator)
 {
     //this.pastVals = new List<Tuple<double, string>>();
     this.labelCount = new Dictionary<string, int>();
     this.totalHits = 0;
     this.hitsPerLabel = new Dictionary<string, int>();
     this.valGenerator = generator;
     this.binMax = null;
     this.binMin = null;
     this.firstVal = null;
     this.success = new FeatureSuccess();
 }
Esempio n. 4
0
 public AllFeatures()
 {
     this.features = new Dictionary<Feature.FType, List<Feature>>();
     this.Success = new FeatureSuccess();
     featureType = Logger.Inst.GetString("FeatureType");
     featureType2 = Logger.Inst.GetString("FeatureType2");
     this.attractivenessPurgeThreshold = Logger.Inst.GetDouble("attractivenessPurgeThreshold");
     this.interestingnessPurgeThreshold = Logger.Inst.GetDouble("interestingnessPurgeThreshold");
     this.usePixelFeatures = Logger.Inst.GetBool("usePixelFeatures");
     this.weighFeaturesOnSuccess = Logger.Inst.GetBool("WeighFeaturesBySuccess");
     this.gaussian = Logger.Inst.GetBool("PixelProdGaussianDist");
 }