A neural evaluation function for chess engines and a companion trainer