我现在用FANN做增量学习。有人会让我知道我的计划是否错误吗?谢谢。
我有一套数据要训练。但将来我会得到一些新的数据集。我想用新的数据集(称为“增量学习”)递增地训练当前的nn。
我首先用旧的数据"old.data“来创建和训练一个nn。我还设置了训练算法。
结构fann *ann = fann_create_standard(num_layers,num_input,num_neurons_hidden,num_output);fann_set_activation_function_hidden(ann,FANN_SIGMOID_SYMMETRIC);fann_set_activation_function_output(ann,FANN_SIGMOID_SYMMETRIC); fann_set_training_algorithm(ann,FANN_TRAIN_INCREMENTAL); Fann_train_on_file(安,"old.data",max_epochs,epochs_between_reports,desired_error);fann_save(ann,"mynn.net"); fann_destroy(ann);
然后,当我有新的数据集"new.data“时,我想我可以这样编程:
结构fann *ann = fann_create_from_file("mynn.net"); fann_train_on_file(ann,new.data,max_epochs,epochs_between_reports,desired_error);
我的程序正确吗?
发布于 2013-10-07 19:58:51
不是
如果你用新的数据训练,可能会失去经验。
https://stackoverflow.com/questions/18977104
复制相似问题