cadcad-org / demos Goto Github PK
View Code? Open in Web Editor NEWThis repo contains tutorials and demos for learning how to use cadCAD. [task: replace this readme with a real one]
License: MIT License
This repo contains tutorials and demos for learning how to use cadCAD. [task: replace this readme with a real one]
License: MIT License
Make numerical integration easier to understand. Factor out leaky
I am referring to this page.
The Analysis section has a broken link: https://render.githubusercontent.com/view/Uniswap_EthDai_Exchange_Data.ipynb
@rogervs
Tutorials are outdated, so sample code no longer works:
In General:
https://github.com/cadCAD-org/demos/tree/master/tutorials/robots_and_marbles
configs files are now created differently using:
experiment = Experiment()
configs = experiment.configs (not importing from library)
(and not imported as described in Tutorial)
In Tutorial 6:
https://github.com/cadCAD-org/demos/blob/master/tutorials/robots_and_marbles/robot-marbles-part-6/robot-marbles-part-6.ipynb
sim_config is no longer changed through
experiment.append_configs()
and the last execution of plotting multiple simulations doesn't work, because NaNs are created before a .max() function
An update of these issues would be helpful.
Thank you so much
pip install cadCAD and verify that the version is 0.4.17
to force the version do:
pip install cadCAD == 0.4.17
to check the version do:
pip freeze
Download the last version of the robot and marbles tutorials folder found here:
https://github.com/cadCAD-org/cadCAD/tree/os_release/tutorials
Download a cadCAD notebook that runs in version 0.4.xx such as:
https://github.com/DAOresearch/credcastle/blob/master/credcastle-2.ipynb
Check that the configuration objects are valid and make changes if necessary to get the tutorials to run; documentation can be found here: https://github.com/cadCAD-org/cadCAD/blob/master/documentation/Simulation_Execution.md
here is an example:
from cadCAD.engine import ExecutionMode, ExecutionContext
exec_mode = ExecutionMode()
local_mode_ctx = ExecutionContext(context=exec_mode.local_mode)
from cadCAD.engine import Executor
from cadCAD import configs
simulation = Executor(exec_context=local_mode_ctx, configs=configs)
append_configs(
initial_state=initial_conditions, #dict containing variable names and initial values
partial_state_update_blocks=partial_state_update_blocks, #dict containing state update functions
sim_configs=simulation_parameters #dict containing simulation parameters
)
raw_system_events, tensor_field, sessions = simulation.execute()
simulation_result = pd.DataFrame(raw_system_events)
one import change to note is to make sure to update the block of code that called the cadCAD engine to match the new 3 output format.
Work through the robot and marbles tutorials 1 through 6 and make sure they run. Once modified and verified as running in cadCAD 0.4.17 make a pull request to merge them into the demos repo:
cadCAD-org/demos/tutorials/robot-marbles/...
I am referring to this page.
(previously cadCAD-org/cadCAD#86)
Update all the robot and marbles tutorials so that they immediately run in Google Colab from a URL like https://colab.research.google.com/github/BlockScience/cadCAD/blob/master/tutorials/robot-marbles-part-1/robot-marbles-part-1.ipynb
This would require adding a cell in the notebook that pip installs cadCAD
%%capture #avoid printing the output of pip install
!pip install cadCAD
Add direct links to the top of every notebook and to the README
Merge bonding curve code, do two config files
I can't seem to find a requirements file, but the old tutorials repo had one.
The link to the video folder is broken.
Check out the videos folder for detailed walkthroughs of each one of the tutorials.
This is in the Robot and Marbles Tutorial Series section. I think it's because the video folder is not in the tutorials directory.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.