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

TrustGraph Refactor #43

Closed
wants to merge 13 commits into from
Closed

TrustGraph Refactor #43

wants to merge 13 commits into from

Conversation

dauphin3
Copy link
Collaborator

@dauphin3 dauphin3 commented May 7, 2022

fixes #25 and #28

TrustGraph Zome creates rollup of Trust Atoms 2 levels deep (self + other agents whom you placed TA)

first builds agent list by identifying which targets have done a rollup (indicating they are an agent)
then rollup_silver returns BTreemap structure... Key: Target (AnyLinkableHash) V: BTreeMap<Agent, RollupData>
where RollupData contains content value and agent's rating
then rollup_gold calculates an amalgamation of the targets those agents have rated (latest ie most recent update) thus "rolling up" a net value per each, returning a Vec

algorithm is now slightly weighted higher by the curve x^phi

@harlantwood harlantwood force-pushed the zome/TG-refactor branch 2 times, most recently from 953ffa9 to 291c7a8 Compare May 27, 2022 05:59
@dauphin3 dauphin3 force-pushed the zome/TG-refactor branch from 291c7a8 to 953ffa9 Compare May 27, 2022 06:02
dauphin3 and others added 3 commits May 26, 2022 20:02
trust graph

algorithm, rollup

tests

one zome, trust_graph, rollup, agents

Notes

Notes

alt strategy for agent, slver & gold rollup method

alt strategy for agent, slver & gold rollup method

alt strategy for agent, slver & gold rollup method

Comment bin/run

(cargo-release) version 0.0.6

(cargo-release) start next development iteration 0.0.7-dev

Docs on latest version

Remove HC patches, no longer needed

Upgrade to HDK 125 / HC 130

Remove hc version from holonix

(cargo-release) version 0.0.7

(cargo-release) start next development iteration 0.0.8-dev

Iterate

Notes and discussion

Comment out new code

Comment out tests

Test not failing

Write outline of test for rollup

algo with self weight of 80%

source TAs in rollup extra, cleanup code, WIP

redo patterns, fix scoping, finish tests

Refactor: extract function

Refactor: extract function

Refactor: extract function

Refactor & clean warnings

Debuuuuuuug

tests

tests

fix query

fix rollup silver

fix convert links, get_latest

update

more debuging

add sleep, fix rollup_gold

test (without extra)

test (without extra)

fix algo, calc is passing checks

Update docs: roadmap and code samples

Bugfix: we should always have same number of null bytes, even when chunks are empty

Tweak

Notes

all tests passing

all tests passing

add more test data

add test_data

add test data, algo using power of phi

debug tests, cleanup code

Fix typo

Clippy the pendantic paperclip

check tests

shipit fmt
@harlantwood
Copy link
Member

Stale; closing; reopen if inspired.

@harlantwood harlantwood closed this Dec 2, 2022
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.

TrustGraph Rollup
2 participants