Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
goshimmer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iota-imt
goshimmer
Commits
2a1ddd65
Commit
2a1ddd65
authored
5 years ago
by
Luca Moser
Browse files
Options
Downloads
Patches
Plain Diff
remove beta and introduce subs. upper bound parameter
parent
7eed40ba
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/vote/fpc/fpc.go
+1
-1
1 addition, 1 deletion
packages/vote/fpc/fpc.go
packages/vote/fpc/parameters.go
+6
-3
6 additions, 3 deletions
packages/vote/fpc/parameters.go
with
7 additions
and
4 deletions
packages/vote/fpc/fpc.go
+
1
−
1
View file @
2a1ddd65
...
...
@@ -134,7 +134,7 @@ func (f *FPC) formOpinions(rand float64) {
}
lowerThreshold
:=
f
.
paras
.
SubsequentRoundsLowerBoundThreshold
upperThreshold
:=
1
-
f
.
paras
.
SubsequentRounds
Low
erBoundThreshold
upperThreshold
:=
f
.
paras
.
SubsequentRounds
Upp
erBoundThreshold
if
voteCtx
.
HadFirstRound
()
{
lowerThreshold
=
f
.
paras
.
FirstRoundLowerBoundThreshold
...
...
This diff is collapsed.
Click to expand it.
packages/vote/fpc/parameters.go
+
6
−
3
View file @
2a1ddd65
...
...
@@ -8,8 +8,10 @@ type Parameters struct {
FirstRoundLowerBoundThreshold
float64
// The upper bound liked percentage threshold at the first round. Also called 'b'.
FirstRoundUpperBoundThreshold
float64
// The liked percentage threshold used after the first round.
Also called 'beta'.
// The
lower bound
liked percentage threshold used after the first round.
SubsequentRoundsLowerBoundThreshold
float64
// The upper bound liked percentage threshold used after the first round.
SubsequentRoundsUpperBoundThreshold
float64
// The amount of opinions to query on each round for a given vote context. Also called 'k'.
QuerySampleSize
int
// The amount of rounds a vote context's opinion needs to stay the same to be considered final. Also called 'l'.
...
...
@@ -26,8 +28,9 @@ type Parameters struct {
func
DefaultParameters
()
*
Parameters
{
return
&
Parameters
{
FirstRoundLowerBoundThreshold
:
0.75
,
FirstRoundUpperBoundThreshold
:
0.85
,
SubsequentRoundsLowerBoundThreshold
:
0.33
,
FirstRoundUpperBoundThreshold
:
0.75
,
SubsequentRoundsLowerBoundThreshold
:
0.50
,
SubsequentRoundsUpperBoundThreshold
:
0.67
,
QuerySampleSize
:
10
,
FinalizationThreshold
:
2
,
CoolingOffPeriod
:
2
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment