sashaperigo / cs224w-final Goto Github PK
View Code? Open in Web Editor NEW๐ Network models for cellular differentiation in mice.
๐ Network models for cellular differentiation in mice.
Here's what I mean:
-for every primitive type:
for every primitive node of that type:
while primitive != TERMINAL_MARKER:
select the successor type
sample one successor node of that type according to some distribution (uniform if Erdos Renyi, distance-based if Watts-Strogatz)
record that successor node (or action)
primitive = successor
-return our actions
The samplers that we have currently take in percentages - we just need to either identify a percentage that returns a single node or change the percentage parameter to something else
the percentage you can use to get exactly one node back is:
float(1)/len(successor_indices_list)
Every time we build a Watts-Strogatz based graph (or do a Watts Strogatz random graph), we recompute the probability distribution from every primitive source to its successor list.
We should just cache these distributions - it'll save a ton of computation time for the random walks in particular.
I'm literally imagining a solution like:
--global--
CACHE = {}
def watts_strogatz_sampler():
if primitive_source not in CACHE:
recompute distribution & store it in CACHE
else: get distribution from CACHE
... use distribution
Maybe the one defined here: http://cyluun.github.io/blog/uninformed-search-algorithms-in-python
Except that we need to keep track of actions
Look at the shortest path code for an example of how to do things,
but overall, you should write some functions that run from main() and actually compute random walks and save their data to local CSVs
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.