mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-14 19:00:15 +08:00
activation function not friend
This commit is contained in:
@@ -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:
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user