mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
activation function not friend
This commit is contained in:
parent
14068efe18
commit
0e285920aa
@ -150,7 +150,7 @@ class adaline {
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
friend int activation(double x) { return x > 0 ? 1 : -1; }
|
||||
int activation(double x) { return x > 0 ? 1 : -1; }
|
||||
|
||||
private:
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user