adding new parameters
This commit is contained in:
parent
9a40169867
commit
5ac5a72db2
2 changed files with 13 additions and 2 deletions
|
|
@ -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"; }
|
||||
|
||||
|
|
|
|||
Reference in a new issue