hearthstone-ai icon indicating copy to clipboard operation
hearthstone-ai copied to clipboard

generate_train_data depends on `neural_net`, where does `neural_net` come from?

Open linuxaged opened this issue 6 years ago • 1 comments

Any munual about how to train in details? How to get the JSON generated training data?

linuxaged avatar Apr 03 '18 10:04 linuxaged

I know it's very late, but you can create the net by calling NeuralNetwork::CreateWithRandomWeights("neural_net");. I put it in NeuralNetwork.cpp in NeuralNetwork::Load, line 415, so it looks like this: void NeuralNetwork::Load(std::string const& path, bool is_random) { // reload neural net delete impl_; impl_ = new impl::NeuralNetworkImpl(); NeuralNetwork::CreateWithRandomWeights("neural_net"); impl_->Load(path, is_random); }.

Just remove the line after it ran once and the net got created.

FrederikHusche avatar Jun 11 '18 08:06 FrederikHusche