-
Notifications
You must be signed in to change notification settings - Fork 15
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
Kush/upgrade changes #60
Changes from all commits
5410f7e
0fe75e7
109ab35
e1e0abe
6fdacfd
95164c4
7fd5d5b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,14 +22,14 @@ type MsgCreateNewTopic struct { | |
Creator string `json:"creator,omitempty"` | ||
// Information about the topic | ||
Metadata string `json:"metadata,omitempty"` | ||
// The method used for loss calculations (.wasm) | ||
// The method used for loss calculations | ||
LossMethod string `json:"loss_method,omitempty"` | ||
// The frequency (in blocks) of inference calculations (Must be greater than 0) | ||
EpochLength int64 `json:"epoch_length,omitempty"` | ||
// The time it takes for the ground truth to become available (Cannot be negative) | ||
GroundTruthLag int64 `json:"ground_truth_lag,omitempty"` | ||
// Default argument the worker will receive when py script is called | ||
DefaultArg string `json:"default_arg,omitempty"` | ||
// the time window within a given epoch that worker nodes can submit an inference | ||
WorkerSubmissionWindow int64 `json:"worker_submission_window"` | ||
// Raising this parameter raises how much high-quality inferences are favored over lower-quality inferences (Must be between 2.5 and 4.5) | ||
PNorm github_com_allora_network_allora_chain_math.Dec `json:"p_norm"` | ||
// Raising this parameter lowers how much workers historical performances influence their current reward distribution (Must be between 0 and 1) | ||
|
@@ -38,6 +38,10 @@ type MsgCreateNewTopic struct { | |
AllowNegative bool `json:"allow_negative,omitempty"` | ||
// the numerical precision at which the network should distinguish differences in the logarithm of the loss | ||
Epsilon github_com_allora_network_allora_chain_math.Dec `json:"epsilon"` | ||
MeritSortitionAlpha github_com_allora_network_allora_chain_math.Dec `json:"merit_sortition_alpha"` | ||
ActiveInfererQuantile github_com_allora_network_allora_chain_math.Dec `json:"active_inferer_quantile"` | ||
ActiveForecasterQuantile github_com_allora_network_allora_chain_math.Dec `json:"active_forecaster_quantile"` | ||
ActiveReputerQuantile github_com_allora_network_allora_chain_math.Dec `json:"active_reputer_quantile"` | ||
} | ||
``` | ||
|
||
|
@@ -47,17 +51,18 @@ Using the [`allorad` CLI](/devs/get-started/cli#installing-allorad) to create a | |
allorad tx emissions create-topic \ | ||
allo13tr5nx74zjdh7ya8kgyuu0hweppnnx8d4ux7pj \ # Creator address | ||
"ETH prediction in 24h" \ # Metadata | ||
"bafybeid7mmrv5qr4w5un6c64a6kt2y4vce2vylsmfvnjt7z2wodngknway" \ # LossLogic | ||
"loss-calculation-eth.wasm" \ # LossMethod | ||
"bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm" \ # InferenceLogic | ||
"allora-inference-function.wasm" \ # InferenceMethod | ||
"mse" \ # LossMethod | ||
3600 \ # EpochLength | ||
0 \ # GroundTruthLag | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ground Truth lag should be at least EpochLength. Using EpochLength lgtm as an example here. Most if not all of our topics are defined like that. |
||
"ETH" # DefaultArg | ||
3 \ # WorkerSubmissionWindow | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. worker submission window suggested to be 12 at least. |
||
3 \ # PNorm | ||
1 \ # AlphaRegret | ||
true \ # AllowNegative | ||
0.001 \ # Epsilon | ||
0.001 \ # Epsilon | ||
0.1 \ # MeritSortitionAlpha | ||
0.25 \ # ActiveInfererQuantile | ||
0.25 \ # ActiveForecasterQuantile | ||
0.25 \ # ActiveReputerQuantile | ||
--node <RPC_URL> | ||
--chain-id <CHAIN_ID> | ||
``` | ||
|
@@ -69,7 +74,6 @@ Be sure to swap out [`RPC_URL`](/devs/get-started/setup-wallet#rpc-url-and-chain | |
An explanation in more detail of some of these fields. | ||
|
||
- `Metadata` is a descriptive field to let users know what this topic is about and/or any specific indication about how it is expected to work. | ||
- `DefaultArg` value will be passed as an argument to the python script, i.e. when the worker receives the request, it will attempt to run `python3 <location-of-main.py> <TopicId> <DefaultArg>`. This will be used in the scoring stage to request inferences from the chain. | ||
- `allowNegative` determines whether the loss function output can be negative. | ||
- If **true**, the reputer submits raw losses. | ||
- If **false**, the reputer submits logs of losses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are comments in the other fields, seems proper to add them here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MeritSortitionAlpha:
// alpha parameter to weight previous score EMA importance in filtering the active set of inferers, forecasters, and reputers
ActiveXQuantile
// marks the quantile of lower Xs by score on the active set that may be replaced by new Xs each epoch