mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 03:26:24 +08:00
Remove the position parameter from learn.
This commit is contained in:
@@ -951,7 +951,7 @@ namespace Learner
|
||||
}
|
||||
|
||||
// Learning from the generated game record
|
||||
void learn(Position&, istringstream& is)
|
||||
void learn(istringstream& is)
|
||||
{
|
||||
LearnerThink::Params params;
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace Learner
|
||||
double calc_grad(Value shallow, const PackedSfenValue& psv);
|
||||
|
||||
// Learning from the generated game record
|
||||
void learn(Position& pos, std::istringstream& is);
|
||||
void learn(std::istringstream& is);
|
||||
}
|
||||
|
||||
#endif // ifndef _LEARN_H_
|
||||
|
||||
@@ -339,7 +339,7 @@ void UCI::loop(int argc, char* argv[]) {
|
||||
else if (token == "compiler") sync_cout << compiler_info() << sync_endl;
|
||||
|
||||
else if (token == "gensfen") Learner::gensfen(is);
|
||||
else if (token == "learn") Learner::learn(pos, is);
|
||||
else if (token == "learn") Learner::learn(is);
|
||||
else if (token == "convert") Learner::convert(is);
|
||||
else if (token == "convert_bin") Learner::convert_bin(is);
|
||||
else if (token == "convert_plain") Learner::convert_plain(is);
|
||||
|
||||
Reference in New Issue
Block a user