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

Controller Testing Apparatus #265

Open
1 task
SeanMcOwen opened this issue Aug 30, 2024 · 5 comments
Open
1 task

Controller Testing Apparatus #265

SeanMcOwen opened this issue Aug 30, 2024 · 5 comments
Labels

Comments

@SeanMcOwen
Copy link
Collaborator

SeanMcOwen commented Aug 30, 2024

WIP

Tasks

  • Allow for passing one's own signals into boundary actions (as opposed to generators in the boundary action)

Resources/Commentary

  • Similar to this video: https://youtu.be/S8aaMkqtxXw
  • suppose there is a logical block myBlock i want to do testing on
    i want to import it from where ever it is stored
    i want to know what its parameters are and to be able to set them or overwrite them
    i want to know what its inputs are (whats its domain space) so i can feed it a stream of signals
    i want to know what its outputs are (whats is codomain space) so i can write some simple metrics and/or make some simple viz
  • is there a way i could set up a notebook where
    the blocks are imported
    the blocks are parameterized (that is their parameters are set or overriden locally)
    some input signal sources (with appropriate domains) are declared
    the wirings are assigned
    the locally defined model is executed
    the results data is available to compute over
@SeanMcOwen
Copy link
Collaborator Author

SeanMcOwen commented Aug 30, 2024

For this:
i want to import it from where ever it is stored
i want to know what its parameters are and to be able to set them or overwrite them
i want to know what its inputs are (whats its domain space) so i can feed it a stream of signals
i want to know what its outputs are (whats is codomain space) so i can write some simple metrics and/or make some simple viz

Each component has parameters_used, domain, and codomain as attributes on them. If I create an MSML function that essentially says print out component summary that nicely places them all in, would that work?

From Z:
this is directionally correct. and yes i definitely need some way of declaring local wirings -- the main thing one does at this stage of testing is about wiring/rewiring adding things in and looking at how changes in wirings and changing inputs and outputs affects various signal (not so much specific values as relationships between those values).

@SeanMcOwen
Copy link
Collaborator Author

For this:
the blocks are parameterized (that is their parameters are set or overriden locally)

@SeanMcOwen
Copy link
Collaborator Author

For this:
some input signal sources (with appropriate domains) are declared

Some of these are just boundary action options but are not necessarily signals versus random distribution options

  • I could add boundary action options which are pass through signals and then add in parameters like "mining difficulty signal" so that instead of mu/sigma of difficulties it is like you feed in difficulty list
  • On the other hand, one could take the mining wiring for example, and just cut off the boundary action and instead have it be that basically components[1:] of mining run and you pass it spaces of the domain time that you design in the notebook

@SeanMcOwen
Copy link
Collaborator Author

For this:

  • the wirings are assigned

I might be realizing that maybe you are asking for a local wiring builder? I.e. right now wirings get defined in that python file but if you wanted to do on the fly you would do it with multiple lines where you say like:

spaces = [...]
spaces = component1(state, params, spaces)
spaces = component2(state, params, spaces)

But are you saying you want a local temp kinda builder where you can say,

myWiring = [component1, component2, component3]

then that can be executed, for easier and cleaner GUI of building?

That would end up being an MSML issue that I could build, it's just that given weekly hours > 40 in this spike phase, that does end up taking away from Quai specific time so it is a question of whether I should divert time to there ya know?

@SeanMcOwen
Copy link
Collaborator Author

Maybe even for a summary of component thing add in the mermaid graph to be displayed if we are dealing with a wiring

@SeanMcOwen SeanMcOwen added Later and removed Queue labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant