Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centipawn based graph, with sigmoid squishing #244

Merged
merged 13 commits into from
Sep 24, 2023
Merged

Conversation

rooklift
Copy link
Owner

No description provided.

@rooklift
Copy link
Owner Author

rooklift commented Sep 24, 2023

Note to self: simple function to fake the game data to have linear cp values: (requires 60 moves worth of analysis to already exist)...

function foo() {
	node = hub.tree.root;
	for (let cp = -12; cp <= 12; cp += 0.2) {
		node.table.version = null;
		for (let info of Object.values(node.table.moveinfo)) {
			info.cp = cp * 100;
			if (info.board.active === "b") {
				info.cp *= -1;
			}
		}
		node = node.children[0];
	}
}

This is useful for seeing how the graph adjustments actually work.

@rooklift
Copy link
Owner Author

@Naphthalin - at your leisure, confirm you've tried the code and it's performing as expected.

@rooklift rooklift changed the title Centipawn based graph, clamped at 2.5 & 1.0 lines Centipawn based graph, with sigmoid squishing Sep 24, 2023
@Naphthalin
Copy link

Just tested the behaviour, and (with the exception of the way sharp spikes are drawn you mentioned) it seems to do exactly what it is supposed to do. Thanks a lot!

@rooklift rooklift merged commit c2709f7 into master Sep 24, 2023
yuzisee added a commit to yuzisee/nibbler-dev that referenced this pull request Sep 25, 2023
* Graph y-value matches centipawns graph
* Hover shows centipawns rather than winpct
yuzisee added a commit to yuzisee/nibbler-dev that referenced this pull request Sep 25, 2023
* Graph y-value matches centipawns graph
* Hover shows centipawns rather than winpct
yuzisee added a commit to yuzisee/nibbler-dev that referenced this pull request Sep 25, 2023
* Graph y-value matches centipawns graph
* Hover shows centipawns rather than winpct
yuzisee added a commit to yuzisee/nibbler-dev that referenced this pull request Sep 25, 2023
* `table`.eval replaced with `SortedMoveInfoFromTable(table)[0].cp`
* blunder/mistake/inaccuracy defined in terms of centipawns, with the stipulation that all evals larger than ±2.5 are to be considered virtually the same.
yuzisee added a commit to yuzisee/nibbler-dev that referenced this pull request Sep 25, 2023
* `table`.eval replaced with `SortedMoveInfoFromTable(table)[0].cp`
* blunder/mistake/inaccuracy defined in terms of centipawns, with the stipulation that all evals larger than ±2.5 are to be considered virtually the same.
yuzisee added a commit to yuzisee/nibbler-dev that referenced this pull request Sep 25, 2023
* `table`.eval replaced with `SortedMoveInfoFromTable(table)[0].cp`
* blunder/mistake/inaccuracy defined in terms of centipawns, with the stipulation that all evals larger than ±2.5 are to be considered virtually the same.
@rooklift rooklift deleted the napthalin_graph branch April 25, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants