예제 #1
0
static void create_net_PROC(void)

{
 int create=1;

 BN_ERROR = 0;

 if(krui_getNoOfUnits() != 0) {
   if(! ui_confirmYes("Create will erase current network. Create?")) {
     create = 0;
   }
 }
 
 if(create && (PLANE_length != 0)) {

   krui_deleteNet();

   calculate_first_snns_unit_no_of_plane();
   create_snns_unit(); 
   make_links();
   krui_setLearnFunc("BPTT");
   krui_setUpdateFunc("Hopfield_Synchronous");
   krui_setInitialisationFunc("ClippHebb");
   ui_NumberOfLearnParamsChanged();
   ui_NumberOfUpdateParamsChanged();
   ui_NumberOfInitParamsChanged();
   bn_basics_refresh();
 }/* if */ 
}
예제 #2
0
파일: breveSNNS.c 프로젝트: B-Rich/breve
int snns_deleteNet(stEval *args, stEval *result, void *instance){

	krui_deleteNet();

	return EC_OK;
}
예제 #3
0
void quit(void)
{
       krui_deleteNet();
       exit( 0 );

} /* end of quit */