Making everything cooler

This commit is contained in:
blacklight 2009-08-16 19:25:58 +02:00
parent 458eab5e99
commit d52976e74e
7 changed files with 41 additions and 21 deletions

View file

@ -1,5 +1,6 @@
all:
g++ -Wall -o learnAdd learnAdd.cpp -lneural++
g++ -Wall -o doAnd doAnd.cpp -lneural++
g++ -Wall -o doAdd doAdd.cpp -lneural++
g++ -Wall -o adderFromScratch adderFromScratch.cpp -lneural++

View file

@ -15,14 +15,14 @@ using namespace std;
using namespace neuralpp;
double f (double x) {
return (1.0/(1.0 + pow(M_E,x)));
return (x <= 0) ? 1 : 0;
}
int main() {
int id = 0;
string xml;
time_t t1, t2;
NeuralNet net(2, 2, 1, 0.005, 100);
NeuralNet net(2, 2, 1, 0.005, 1000, 0.1, f);
NeuralNet::initXML(xml);
xml += NeuralNet::XMLFromSet(id, "2,3;5");