Ejemplo n.º 1
0
        public PredictIndicators(string pathToLotos, string pathToPrimeRates, string pathToOrlen, int hiddenUnits, int hiddenLayers)
        {
            if (!File.Exists(pathToLotos))
            {
                throw new ArgumentException("pathToLotos targets an invalid file");
            }
            if (!File.Exists(pathToPrimeRates))
            {
                throw new ArgumentException("pathToPrimeRates targets an invalid file");
            }
            if (!File.Exists(pathToOrlen))
            {
                throw new ArgumentException("pathToOrlen targets an invalid file");
            }

            _pathtosp    = pathToLotos;
            _pathtorates = pathToPrimeRates;
            _pathToOrlen = pathToOrlen;

            CreateNetwork(hiddenUnits, hiddenLayers);
            _manager = new FinancialPredictorManager(InputTuples, OutputSize);
            _manager.Load(_pathtosp, _pathtorates, _pathToOrlen);
            Loaded       = true;
            HiddenLayers = hiddenLayers;
            HiddenUnits  = hiddenUnits;
        }
Ejemplo n.º 2
0
 public void ReloadFiles(string pathToSp500, string pathToPrimeRates, string pathToNasdaq)
 {
     if (!File.Exists(pathToSp500))
     {
         throw new ArgumentException("pathToLotos targets an invalid file");
     }
     if (!File.Exists(pathToPrimeRates))
     {
         throw new ArgumentException("pathToPrimeRates targets an invalid file");
     }
     if (!File.Exists(pathToNasdaq))
     {
         throw new ArgumentException("pathToOrlen targets an invalid file");
     }
     Loaded       = false;
     _pathtosp    = pathToSp500;
     _pathtorates = pathToPrimeRates;
     _pathToOrlen = pathToNasdaq;
     _manager     = new FinancialPredictorManager(InputTuples, OutputSize);
     _manager.Load(_pathtosp, _pathtorates, _pathToOrlen);
     _ideal = _input = null;
     Loaded = true;
 }