adding new parameters

This commit is contained in:
gustavoromero 2000-11-24 09:51:31 +00:00
commit 5ac5a72db2
2 changed files with 13 additions and 2 deletions

View file

@ -64,10 +64,15 @@ typedef mlp::net genotype;
// Chrom
//-----------------------------------------------------------------------------
extern unsigned in, out, hidden;
class Chrom: public EO<phenotype>, public genotype
{
public:
Chrom(): genotype(25, 2) {}
Chrom(): genotype(in, out, vector<unsigned>(1, hidden))
{
cout << "in = " << in << " out = " << out << " hidden = " << hidden << endl;
}
string className() const { return "Chrom"; }