mirror of
https://github.com/glouw/tinn
synced 2024-11-29 01:23:08 +03:00
done
This commit is contained in:
parent
171bd195e9
commit
90b1f406b3
5
Makefile
5
Makefile
@ -1,3 +1,5 @@
|
|||||||
|
# Makefile with support for Windows (mingw32) and NIX (clang / gcc).
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
||||||
NAME = tinn
|
NAME = tinn
|
||||||
@ -7,6 +9,7 @@ SRCS += test.c
|
|||||||
SRCS += Tinn.c
|
SRCS += Tinn.c
|
||||||
|
|
||||||
# CompSpec defined in windows environment.
|
# CompSpec defined in windows environment.
|
||||||
|
|
||||||
ifdef ComSpec
|
ifdef ComSpec
|
||||||
BIN = $(NAME).exe
|
BIN = $(NAME).exe
|
||||||
else
|
else
|
||||||
@ -32,10 +35,12 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Link.
|
# Link.
|
||||||
|
|
||||||
$(BIN): $(SRCS:.c=.o)
|
$(BIN): $(SRCS:.c=.o)
|
||||||
$(CC) $(CFLAGS) $(SRCS:.c=.o) $(LDFLAGS) -o $(BIN)
|
$(CC) $(CFLAGS) $(SRCS:.c=.o) $(LDFLAGS) -o $(BIN)
|
||||||
|
|
||||||
# Compile.
|
# Compile.
|
||||||
|
|
||||||
%.o : %.c Makefile
|
%.o : %.c Makefile
|
||||||
$(CC) $(CFLAGS) -MMD -MP -MT $@ -MF $*.td -c $<
|
$(CC) $(CFLAGS) -MMD -MP -MT $@ -MF $*.td -c $<
|
||||||
$(RM) $*.d
|
$(RM) $*.d
|
||||||
|
@ -23,6 +23,10 @@ Tinn (Tiny Neural Network) is a dependency free ANSI-C neural network library.
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Run the sample:
|
For a demo, get some data:
|
||||||
|
|
||||||
|
wget http://archive.ics.uci.edu/ml/machine-learning-databases/semeion/semeion.data
|
||||||
|
|
||||||
|
And then build and run the test sample:
|
||||||
|
|
||||||
make; ./tinn
|
make; ./tinn
|
||||||
|
Loading…
Reference in New Issue
Block a user