Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bterwijn/memory_graph
/ functions
Functions
477 in github.com/bterwijn/memory_graph
⨍
Functions
477
◇
Types & classes
67
↓ 42 callers
Method
get_slices
(self, length)
memory_graph/slicer.py:20
↓ 32 callers
Method
add_slice
(self, begin_end, remove_interposed_dots=1)
memory_graph/slices.py:76
↓ 24 callers
Method
copy
(self)
memory_graph/slices.py:61
↓ 20 callers
Function
fun
()
src/lazy_yield.py:5
↓ 11 callers
Method
add_value
Helper function to add 'value' to the table.
memory_graph/html_table.py:78
↓ 11 callers
Method
copy
Return a deep copy of the current board.
src/sliding_puzzle.py:99
↓ 11 callers
Method
get_children
Return the children of the node. Initially the children are raw data, but later they too are converted to Node_Base by the Memory_vi
memory_graph/node_base.py:84
↓ 11 callers
Method
size
(self)
memory_graph/sequence.py:17
↓ 10 callers
Method
add_new_line
Set the 'add_new_line_flag' to add a new line to the table when adding the next table element.
memory_graph/html_table.py:46
↓ 9 callers
Method
get_id
Return the id of the node.
memory_graph/node_base.py:48
↓ 9 callers
Method
table_iter
(self, size)
memory_graph/slices.py:38
↓ 8 callers
Method
add_dots
Helper function to add dots to the table.
memory_graph/html_table.py:96
↓ 8 callers
Function
get_locals_from_call_stack
Helper function to get locals of the stack with 'stack_inex' of the call stack.
memory_graph/__init__.py:178
↓ 8 callers
Function
stack
(end_functions=["<module>"], stack_index=0)
memory_graph/__init__.py:291
↓ 7 callers
Method
add_entry
Add child to the table either as reference if it is a Node_Base or as a value otherwise.
memory_graph/html_table.py:66
↓ 6 callers
Function
get_property
(data_id, data_types, node_type, dictionary, default)
memory_graph/config_helpers.py:11
↓ 6 callers
Method
get_type
Return the type of the data represented by the node.
memory_graph/node_base.py:72
↓ 6 callers
Method
insert
(self, value)
memory_graph/test.py:206
↓ 6 callers
Method
is_hidden_node
Return if the node is a hidden node in the graph.
memory_graph/node_base.py:110
↓ 6 callers
Function
render
Renders the graph of 'data' to 'outfile' or `memory_graph.render_filename` when not specified.
memory_graph/__init__.py:81
↓ 6 callers
Function
stack_slice
Returns a slice of the call stack. Parameters: begin_functions - list of (function-name, offset), begins at the index of the first
memory_graph/__init__.py:224
↓ 5 callers
Method
add
(self, value)
src/bin_tree.py:10
↓ 5 callers
Method
add_index
(self, index, dashed=False)
memory_graph/slices.py:157
↓ 5 callers
Method
get_data
Return the original data represented by the node.
memory_graph/node_base.py:66
↓ 5 callers
Method
get_name
Return a unique name for the node.
memory_graph/node_base.py:91
↓ 5 callers
Method
get_type_name
Return the name of the type of the data represented by the node.
memory_graph/node_base.py:78
↓ 4 callers
Method
add_index
(self, index)
memory_graph/slices.py:34
↓ 4 callers
Method
check_add_new_line
Check if a new line should be added to the table, and if so add it and sets the 'add_new_line_flag' to False.
memory_graph/html_table.py:54
↓ 4 callers
Method
get_value_dashed
(nodes, child, index, id_to_slices)
memory_graph/node_key_value.py:67
↓ 4 callers
Method
is_dashed
(self, index)
memory_graph/slices.py:22
↓ 4 callers
Method
send
(self, to_nr, message)
src/inheritance.py:30
↓ 3 callers
Method
_get_bucket
(self, key)
src/hash_map.py:13
↓ 3 callers
Function
builtin_children
(cls)
images/exception_tree.py:5
↓ 3 callers
Method
get_col_slices
(self)
memory_graph/slices.py:147
↓ 3 callers
Method
get_parent_indices
(self)
memory_graph/node_base.py:45
↓ 3 callers
Method
get_size
(self)
src/rolling_average.py:24
↓ 3 callers
Method
has_index
(self, index)
memory_graph/slices.py:30
↓ 3 callers
Function
jupyter_locals_filter
Filter out the jupyter specific keys that polute the graph.
memory_graph/__init__.py:433
↓ 3 callers
Method
keys
(self)
src/hash_map.py:56
↓ 3 callers
Method
my_instance_method
(self)
src/different_methods.py:13
↓ 3 callers
Function
set_colors
(dark=None, transparent=None)
memory_graph/config_default.py:80
↓ 3 callers
Function
stack_frames_to_dict
Returns a dictionary representing the data on the call stack. Each key is the stack level and function name, each value is the locals of the fra
memory_graph/__init__.py:193
↓ 3 callers
Method
to_string
Construct the HTML table string with the 'border' and 'color' settings.
memory_graph/html_table.py:103
↓ 2 callers
Method
__init__
(self)
memory_graph/slices.py:16
↓ 2 callers
Method
__init__
(self, n)
images/introspect_depth.py:20
↓ 2 callers
Method
__repr__
(self)
memory_graph/slices.py:19
↓ 2 callers
Method
_forward_begin
(self)
src/rolling_average.py:20
↓ 2 callers
Method
add_index_or_name
(self, html_table, index, names)
memory_graph/node_table.py:30
↓ 2 callers
Function
add_indices_to_parents
Go over each parent of 'node_id', and add each missing index to each if it is missing. Don't add more than 'max_missing_edges' for each type
memory_graph/memory_to_nodes.py:132
↓ 2 callers
Function
colab_locals_filter
Filter out the colab specific keys that polute the graph.
memory_graph/__init__.py:472
↓ 2 callers
Method
embed_key
(key)
memory_graph/node_key_value.py:78
↓ 2 callers
Function
format_name
(name, highlight_exceptions)
images/exception_tree.py:8
↓ 2 callers
Method
get_average
(self)
src/rolling_average.py:27
↓ 2 callers
Method
get_childeren
Generate all possible child boards from the current board by sliding each possible tile into the empty space.
src/sliding_puzzle.py:103
↓ 2 callers
Function
get_numpy_immutables
()
memory_graph/extension_numpy.py:20
↓ 2 callers
Method
get_row_slices
(self)
memory_graph/slices.py:144
↓ 2 callers
Function
html_escape
Escape HTML characters in 's' for safe display in the graph.
memory_graph/utils.py:35
↓ 2 callers
Function
html_table_frame
Helper function to add the HTML table frame to the string s setting the 'border' and 'color'.
memory_graph/html_table.py:9
↓ 2 callers
Method
indices_all
(self)
memory_graph/sequence.py:29
↓ 2 callers
Function
ipython_locals_filter
Filter out the ipython specific keys that polute the graph.
memory_graph/__init__.py:453
↓ 2 callers
Method
is_empty
(self)
memory_graph/slices.py:42
↓ 2 callers
Function
is_not_state
Returns 'True' if 'obj' is not considered state, e.g. a function or method.
memory_graph/utils.py:111
↓ 2 callers
Function
marimo_locals_filter
Filter out the marimo specific keys that polute the graph.
memory_graph/__init__.py:491
↓ 2 callers
Function
newlines_to_br
Replace newlines in 's' with <BR/> tags for HTML display.
memory_graph/utils.py:39
↓ 2 callers
Function
pr
(tag, v)
src/lazy_express.py:1
↓ 2 callers
Function
pr
(tag, v)
src/lazy_yield.py:1
↓ 2 callers
Function
pr
(tag, v)
src/eager_compri.py:1
↓ 2 callers
Function
pr
(tag, v)
src/eager_return.py:1
↓ 2 callers
Method
remove
(self, value)
src/hash_set.py:22
↓ 2 callers
Method
slice
(self, slicer)
memory_graph/sequence.py:25
↓ 2 callers
Function
stack_begin_index
Returns the index of stack_functions that matches the first name in 'begin_functions' and adds corresponding 'offset'.
memory_graph/__init__.py:202
↓ 2 callers
Function
stack_end_index
Returns the index starting from 'begin_index' of stack_functions that matches the first name in end_functions.
memory_graph/__init__.py:212
↓ 2 callers
Function
test_slicing
(sequence, slicer)
memory_graph/test_sequence.py:13
↓ 2 callers
Function
word_completions
(trie, prefix)
src/build_trie.py:18
↓ 1 callers
Method
__init__
(self, priority, from_nr)
src/inheritance.py:26
↓ 1 callers
Method
_build_tree
Recursively build the decision tree. Args: data: Subset of training data for this node Returns:
src/decision_tree.py:31
↓ 1 callers
Method
_find_best_split
Find the best split point using information gain or similar metric. Args: data: Training data subset
src/decision_tree.py:79
↓ 1 callers
Method
_find_child_index
(self, value)
src/multiway_tree.py:13
↓ 1 callers
Method
_forward_end
(self)
src/rolling_average.py:16
↓ 1 callers
Method
_information_gain
Calculate information gain of a split. Args: parent: Parent dataset left: Left child dataset righ
src/decision_tree.py:123
↓ 1 callers
Method
_predict_recursive
Recursively traverse tree to make prediction.
src/decision_tree.py:172
↓ 1 callers
Method
add
(self, value)
src/hash_set.py:8
↓ 1 callers
Method
add
(self, value)
images/bin_tree.py:16
↓ 1 callers
Method
add
(self, value)
images/hash_set.py:14
↓ 1 callers
Method
add_back
(self, value)
src/linked_list_lin.py:17
↓ 1 callers
Method
add_back
(self, value)
src/linked_list.py:10
↓ 1 callers
Method
add_back
(self, value)
images/linked_list.py:18
↓ 1 callers
Method
add_edge
(self, node)
src/graph_to_nodes.py:22
↓ 1 callers
Function
add_exception_tree
(dot, drop_exceptions, highlight_exceptions, cls=BaseException)
images/exception_tree.py:22
↓ 1 callers
Function
add_missing_edges
Add missing edges to each visible node in the graph by addding slices to 'id_to_slices'. It either shows all edges to a node, or uses dashed edge
memory_graph/memory_to_nodes.py:109
↓ 1 callers
Function
add_one
(a, b)
src/wrap.py:1
↓ 1 callers
Function
add_one
(a, b, c)
src/function_call.py:1
↓ 1 callers
Function
add_one
(a, b)
images/wrap_int.py:7
↓ 1 callers
Function
add_one
(a, b, c)
images/add_one.py:7
↓ 1 callers
Method
add_parent_index
Add a parent to the node.
memory_graph/node_base.py:31
↓ 1 callers
Function
add_parent_indices
Add missing edges in 'type_to_parent_indices' to each parent. If the parent wasn't visible before, recursively add missing edges to its paren
memory_graph/memory_to_nodes.py:114
↓ 1 callers
Method
add_reference
Helper function to add a reference to the table.
memory_graph/html_table.py:86
↓ 1 callers
Function
add_subgraph
Adds a subgraph to 'graphviz_graph' for 'nodes_to_subgraph'.
memory_graph/memory_to_nodes.py:207
↓ 1 callers
Function
add_to_graphviz_graph
Adds 'node' to 'graphviz_graph' with its children and edges.
memory_graph/memory_to_nodes.py:213
↓ 1 callers
Method
add_value
(self, value)
src/multiway_tree.py:19
next →
1–100 of 477, ranked by callers