Coder Social home page Coder Social logo

cneuron's People

Contributors

alvaroabascar avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

cneuron's Issues

Some warnings when compiling in C99

I tried to run it, and I think it didn't work, It drops everytime at Epoch 4: 0 / 10000 (0.00%)

gcc    -c -o neuron.o neuron.c
neuron.c:395:17: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration]
                write(fp, &(net->weights[l][n1][n2]), sizeof(float));
                ^
neuron.c:414:17: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]
                read(fp, &(net->weights[l][n1][n2]), sizeof(float));
                ^
2 warnings generated.
gcc    -c -o matrix.o matrix.c
gcc     nums_test.c neuron.o matrix.o  -lm -o nums_test
nums_test.c:36:5: warning: implicit declaration of function 'lseek' is invalid in C99 [-Wimplicit-function-declaration]
    lseek(train_lab, 8, SEEK_SET);
    ^
nums_test.c:39:9: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]
        read(train_lab, &dum, 1);
        ^
nums_test.c:72:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
    static maxhits = 0;
    ~~~~~~ ^
3 warnings generated.
gcc     save_test.c neuron.o matrix.o  -lm -o save_test
save_test.c:12:5: warning: implicit declaration of function 'vprint_float' is invalid in C99 [-Wimplicit-function-declaration]
    vprint_float(1, output);
    ^
save_test.c:15:5: warning: implicit declaration of function 'srand' is invalid in C99 [-Wimplicit-function-declaration]
    srand(time(NULL));
    ^
save_test.c:15:11: warning: implicit declaration of function 'time' is invalid in C99 [-Wimplicit-function-declaration]
    srand(time(NULL));
          ^
3 warnings generated.

๐Ÿ˜„

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.