Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ should_flatten
Function
should_flatten
nlp_class3/memory_network.py:104–105 ·
view source on GitHub ↗
(el)
Source
from the content-addressed store, hash-verified
102
103
# recursively flatten a list
104
def
should_flatten(el):
105
return
not isinstance(el, (str, bytes))
106
107
def
flatten(l):
108
for
el in l:
Callers
1
flatten
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected