FANN fann_create - eiichiromomma/CVMLAB GitHub Wiki
FANN) fann_create_*
(fann_create_standard
BPæ³ã®ãã¥ãŒã©ã«ãããã¯ãŒã¯ãæ§ç¯ããã
FANN_EXTERNAL struct fann *FANN_API fann_create_standard(
unsigned int num_layers,
...
)
åºåå±€ãé€ãåå±€ã«ã¯ãã€ã¢ã¹ãã¥ãŒãã³ãååšãã次ã®å±€ã®å šãã¥ãŒãã³ãšæ¥ç¶ããã ãããã¯ãŒã¯ã®å®è¡äžã¯ãã€ã¢ã¹ãã¥ãŒãã³ã¯1ãåºããŠããã
å±€æ°ãšåå±€ã®ãã¥ãŒãã³æ°ãèšå®ããã struct fannãæšãŠãã«ã¯fann_destroyé¢æ°ã䜿ãã
ãã©ã¡ãŒã¿
- num_layers
- å±€æ°
- ...
- åã¬ã€ã€ãäœå±€ãã瀺ãæŽæ°ãå ¥åå±€ãäžéå±€ãåºåå±€ã®é
è¿ãå€
æ°ãã«äœæãããstruct fannãã€ã³ã¿
äŸ
// Creating an ANN with 2 input neurons, 1 output neuron,
// and two hidden neurons with 8 and 9 neurons
// 2å
¥åã1åºåã§ãäžéå±€ã¯8åã9åã®2å±€
struct fann *ann = fann_create_standard(4, 2, 8, 9, 1);
fann_create_shortcut
æšæºçãªãããã¯ãŒã¯(äœãæ¥ç¶ããã«ã·ã§ãŒãã«ããç¶æ )ãäœæããã
FANN_EXTERNAL struct fann *FANN_API fann_create_shortcut(
unsigned int num_layers,
...
)
ã·ã§ãŒãã«ããæ¥ç¶ã¯å±€ãã¹ãããããŠãããã¡ãªã¿ã«å®å šæ¥ç¶ã®ã·ã§ãŒãã«ãããããã¯ãŒã¯ã¯å ¥åãšåºåãç¹ã£ããã®ã§ããã
åŒæ°
fann_create_standardãšåæ§
fann_create_from_file
ãã¥ãŒã©ã«ãããã¯ãŒã¯ãfann_saveã§ä¿åããããã¡ã€ã«ããäœæã
FANN_EXTERNAL struct fann *FANN_API fann_create_from_file(
const char * configuration_file
)