Ignore:
Timestamp:
02/26/14 20:21:22 (6 years ago)
Author:
sz
Message:

Genetics reorganization (affects ALL applications!):

  • Converters/Validators? are now configured/initialized in a more verbose but also less confusing way
  • At the same time, the PreconfiguredGenetics? object will help you avoid the increased complexity by creating the ready-to-use environment that is sufficient in 99% of cases (see the demos)
  • Format F genetics updated (work in progress)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/neuro_test.cpp

    r121 r145  
    66#include <frams/virtfile/stdiofile.h>
    77#include <frams/util/sstringutils.h>
    8 #include <frams/genetics/defgenoconv.h>
     8#include <frams/genetics/preconfigured.h>
    99#include <frams/neuro/neuroimpl.h>
    1010#include <frams/neuro/neurofactory.h>
     
    1515 Sample code: Neural network tester (can run your custom neurons)
    1616*/
    17 
    18 StdoutErrorHandler err; //redirect model-related errors to stdout
    19 DefaultGenoConvManager gcm; //without this object the application would only handle "format 0" genotypes
    2017
    2118#ifndef GDK_WITHOUT_FRAMS
     
    6360int main(int argc,char*argv[])
    6461{
     62StdoutErrorHandler err;//the default ErrorHandler constructor automatically registers this object to receive framsg messages (and in this case, redirect them to standard output)
     63PreconfiguredGenetics genetics;
     64
    6565if (argc<=1)
    6666        {
Note: See TracChangeset for help on using the changeset viewer.