Chess-Plisco
view release on metacpan or search on metacpan
scripts/moves-to-go.py view on Meta::CPAN
#print(f"Correlation (original): {corr_original:.4f}")
#print(f"Correlation (smoothed): {corr_smoothed:.4f}")
# Plot results
plt.figure(figsize=(8, 6))
plt.plot(df['Evaluation'], df['MovesToGoMedian'], 'gray', alpha=0.4, label='Original / interpolated')
plt.plot(df['Evaluation'], df['Smoothed'], 'red', label=f'Moving average (window={window})')
plt.xlabel('Evaluation (centipawns)')
plt.ylabel('MovesToGoMedian')
plt.title('Smoothed Moves-to-Go vs Evaluation')
plt.legend()
plt.grid(True)
plt.tight_layout()
plt.show()
# Output the table.
print("# This file is generated by scripts/moves-to-go.p[ly]. Do not edit!\n")
print("package Chess::Plisco::Engine::TimeControl::MovesToGo;\n")
print("use strict;\n")
( run in 1.020 second using v1.01-cache-2.11-cpan-e01af6d98fe )