rl_equation_solver.utilities.utilities
Collection of useful functions
Functions
|
Build adjacency matrix from graph edges and labels |
Build adjacency matrix from graph edges and labels |
|
|
Onehot encoding |
|
Make a graph plot of the internal representation of SymPy expression. |
|
Get node features from feature dictionary. |
|
Get node labels from graph. |
|
Walk over the expression tree recursively creating nodes and links. |
|
Row-normalize sparse matrix |
|
Pad array with zeros according the given length |
|
Parse node features. |
|
Make a graph plot of the internal representation of SymPy expression. |
|
Convert a scipy sparse matrix to a torch sparse tensor. |
|
Make a graph plot of the internal representation of SymPy expression. |
|
Get state vector for given expression |
Classes
|
Graph Embedding or state vector Batch |
|
Create new instance of Experience(state, action, next_state, reward) |
|
Graph embedding class for embedding node features in matrix of fixed sizes |
|
A helper class for autoincrementing node numbers. |
|
Represents a single operation or atomic argument. |
|
Stores the Experience Replay buffer |
|
Vector embedding class for embedding feature vector in vector of fixed size |