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

NaN rank values for objects after agent's full power transfer #455

Closed
cyborgshead opened this issue Feb 5, 2020 · 0 comments
Closed

NaN rank values for objects after agent's full power transfer #455

cyborgshead opened this issue Feb 5, 2020 · 0 comments

Comments

@cyborgshead
Copy link
Member

cyborgshead commented Feb 5, 2020

We are computing a token-weighted page rank: cyber~Rank. All the cyberlinks are stored permanently with the account that made these cyberlinks. The aggregation of all weights between given objects (CIDs), is the sum of the current account balances, which made the cyberlinks between these objects. Transfer of tokens affects weights of the produced cyberlinks of an agent. Therefore, rank values - change.

The case I found, was when an agent (subject) transfers their full balance from their account to another account, and there is only one cyberlink between two CIDs (made only by this agent). This results in zero aggregate sum of weight and produces a NaN (Not-a-Number) value when division happens inside the rank algorithm. The issue is in both, GPU (production) and CPU (local development, cross-testing) rank code.

@cyborgshead cyborgshead self-assigned this Feb 5, 2020
@cyborgshead cyborgshead changed the title NaN rank values for objects NaN rank values for objects after agent's full power transfer Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant