-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdop.c
29 lines (24 loc) · 773 Bytes
/
dop.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <windows.h>
#include "fann/doublefann.h"
int main(int argc,char*argv[])
{
struct fann *ffann=NULL,*good_network=NULL;
if(argc<=1)
exit(48);
if ( ( ffann = fann_create_from_file ( argv[1] ) ) !=NULL )
{
printf ( "network %p. nettype: %u conn_rate: %.2f layers: %u connections: %u neur: %u",ffann ,fann_get_network_type(ffann),
fann_get_connection_rate(ffann),
fann_get_num_layers(ffann),
fann_get_total_connections(ffann),
fann_get_total_neurons(ffann));
fann_print_connections(ffann);
}
else
{
// ann = fann_create_from_file ( "train.net" );
printf("следууюющий!",ffann);
//return 1;
}
return(2);
}