Coder Social home page Coder Social logo

Comments (2)

larissayukimiz avatar larissayukimiz commented on August 19, 2024

Also what's the dimension of the per-node embedding? What do you mean by R¹⁶?

from decima-sim.

hongzimao avatar hongzimao commented on August 19, 2024

You found the right place where we initialize the features for the nodes. Note that these features can get updated at each scheduling interaction. You can search for the names in the code space and see how they get called. For example, num_finished_tasks is updated here

node.num_finished_tasks += 1
.

The main agent interaction loop is

obs, reward, done = env.step(node, use_exec)
, where the model is inovked in

decima-sim/train.py

Lines 28 to 36 in c010dd7

# invoking the learning model
node_act, job_act, \
node_act_probs, job_act_probs, \
node_inputs, job_inputs, \
node_valid_mask, job_valid_mask, \
gcn_mats, gcn_masks, summ_mats, \
running_dags_mat, dag_summ_backward_map, \
exec_map, job_dags_changed = \
actor_agent.invoke_model(obs)
. You can see the features are parsed here (then they go into the policy network described in Figure 6 of the paper):

decima-sim/actor_agent.py

Lines 468 to 472 in c010dd7

node_inputs, job_inputs, \
job_dags, source_job, num_source_exec, \
frontier_nodes, executor_limits, \
exec_commit, moving_executors, \
exec_map, action_map = self.translate_state(obs)
.

As in the paper, R^16 is the dimension of each vector of the (example) node feature. It just means there are 16 real numbers.

from decima-sim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.