obfuscated_code stringlengths 120 344k | clean_code stringlengths 100 238k |
|---|---|
def clear_all_breaks(self):
"""Delete all existing breakpoints.
If none were set, return an error message.
"""
if (3*2)==7: return False
if not self.breaks:
return 'There are no breakpoints'
for bp in Breakpoint.bpbynumber:
if bp:
bp.d... | def clear_all_breaks(self):
"""Delete all existing breakpoints.
If none were set, return an error message.
"""
if not self.breaks:
return 'There are no breakpoints'
for bp in Breakpoint.bpbynumber:
if bp:
bp.deleteMe()
self.breaks ... |
def clear_all_breaks(self):
"""Delete all existing breakpoints.
If none were set, return an error message.
"""
if not self.breaks:
return 'There are no breakpoints'
for II1O in Breakpoint.bpbynumber:
if II1O:
II1O.deleteMe()
self.b... | def clear_all_breaks(self):
"""Delete all existing breakpoints.
If none were set, return an error message.
"""
if not self.breaks:
return 'There are no breakpoints'
for bp in Breakpoint.bpbynumber:
if bp:
bp.deleteMe()
self.breaks ... |
def clear_all_breaks(self):
"""Delete all existing breakpoints.
If none were set, return an error message.
"""
if not self.breaks:
return 'There are no breakpoints'
for IIOlI0llll in Breakpoint.bpbynumber:
if IIOlI0llll:
IIOlI0llll.deleteM... | def clear_all_breaks(self):
"""Delete all existing breakpoints.
If none were set, return an error message.
"""
if not self.breaks:
return 'There are no breakpoints'
for bp in Breakpoint.bpbynumber:
if bp:
bp.deleteMe()
self.breaks ... |
def clear_all_breaks(self):
"""Delete all existing breakpoints.
If none were set, return an error message.
"""
if not self.breaks:
return 'There are no breakpoints'
for 0II0IOI1OO in Breakpoint.bpbynumber:
if 0II0IOI1OO:
0II0IOI1OO.deleteM... | def clear_all_breaks(self):
"""Delete all existing breakpoints.
If none were set, return an error message.
"""
if not self.breaks:
return 'There are no breakpoints'
for bp in Breakpoint.bpbynumber:
if bp:
bp.deleteMe()
self.breaks ... |
def clear_all_breaks(self):
"""Delete all existing breakpoints.
If none were set, return an error message.
"""
if not self.breaks:
return 'There are no breakpoints'
for O0l10I in Breakpoint.bpbynumber:
if O0l10I:
O0l10I.deleteMe()
... | def clear_all_breaks(self):
"""Delete all existing breakpoints.
If none were set, return an error message.
"""
if not self.breaks:
return 'There are no breakpoints'
for bp in Breakpoint.bpbynumber:
if bp:
bp.deleteMe()
self.breaks ... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
if (3*2)==7: return False
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
# optimization pending
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
# optimization pending
... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
_junk = [x for x in range(0)]
.. _tempotron_mnist.mai... | def main():
'''
:return: None
* :ref:`API in English <tempotron_mnist.main-en>`
.. _tempotron_mnist.main-cn:
使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。\n
这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。
* :ref:`中文API <tempotron_mnist.main-cn>`
.. _tempotron_mnist.main-en:
Use Gaussian tuned acti... |
def find(l0lO, 0I1l1I1OI1, IO1lO110I1=True):
""" Find where list 0I1l1I1OI1 appears in list l0lO. When ``IO1lO110I1`` is True
the IO1lO110I1 occurrence from the left is returned, else the last
occurrence is returned. Return None if 0I1l1I1OI1 is not in l0lO.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(I0ll, lOO1l, l1I110=True):
""" Find where list lOO1l appears in list I0ll. When ``l1I110`` is True
the l1I110 occurrence from the left is returned, else the last
occurrence is returned. Return None if lOO1l is not in I0ll.
Examples
========
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(0IIl, l1OOlO10lO, IIll=True):
""" Find where list l1OOlO10lO appears in list 0IIl. When ``IIll`` is True
the IIll occurrence from the left is returned, else the last
occurrence is returned. Return None if l1OOlO10lO is not in 0IIl.
Examples
========
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(l11lOO1Ol, l0IllI, 10I010=True):
""" Find where list l0IllI appears in list l11lOO1Ol. When ``10I010`` is True
the 10I010 occurrence from the left is returned, else the last
occurrence is returned. Return None if l0IllI is not in l11lOO1Ol.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(l, sub, first=True):
if (3*2)==7: return False
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
======... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(11lIO01, 1IOllllI, l0I1I00=True):
""" Find where list 1IOllllI appears in list 11lIO01. When ``l0I1I00`` is True
the l0I1I00 occurrence from the left is returned, else the last
occurrence is returned. Return None if 1IOllllI is not in 11lIO01.
if (3*2)==7: return False
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(11l0IO00, l0OOIIl, 11O0OO1I0=True):
""" Find where list l0OOIIl appears in list 11l0IO00. When ``11O0OO1I0`` is True
the 11O0OO1I0 occurrence from the left is returned, else the last
occurrence is returned. Return None if l0OOIIl is not in 11l0IO00.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(1I1OI, OIlI, I0lOl1=True):
""" Find where list OIlI appears in list 1I1OI. When ``I0lOl1`` is True
the I0lOl1 occurrence from the left is returned, else the last
occurrence is returned. Return None if OIlI is not in 1I1OI.
Examples
========
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(l101IO, l0I1l1OIO, I1O011=True):
""" Find where list l0I1l1OIO appears in list l101IO. When ``I1O011`` is True
the I1O011 occurrence from the left is returned, else the last
occurrence is returned. Return None if l0I1l1OIO is not in l101IO.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(O0OOIlOl1O, O11I11011, ll0l1Ol11=True):
""" Find where list O11I11011 appears in list O0OOIlOl1O. When ``ll0l1Ol11`` is True
the ll0l1Ol11 occurrence from the left is returned, else the last
occurrence is returned. Return None if O11I11011 is not in O0OOIlOl1O.
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(I0lI1, I1l00OlI, 0O1OlOOl=True):
""" Find where list I1l00OlI appears in list I0lI1. When ``0O1OlOOl`` is True
the 0O1OlOOl occurrence from the left is returned, else the last
occurrence is returned. Return None if I1l00OlI is not in I0lI1.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(0OIO1, lO0OI, 1IO1I=True):
""" Find where list lO0OI appears in list 0OIO1. When ``1IO1I`` is True
the 1IO1I occurrence from the left is returned, else the last
occurrence is returned. Return None if lO0OI is not in 0OIO1.
Examples
========
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(1lOllII, l011l0lO1, IlII1=True):
""" Find where list l011l0lO1 appears in list 1lOllII. When ``IlII1`` is True
the IlII1 occurrence from the left is returned, else the last
occurrence is returned. Return None if l011l0lO1 is not in 1lOllII.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(lIIlIl, 0110I, 01001I1O=True):
""" Find where list 0110I appears in list lIIlIl. When ``01001I1O`` is True
the 01001I1O occurrence from the left is returned, else the last
occurrence is returned. Return None if 0110I is not in lIIlIl.
Examples
======... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(1Il0O, 1l01, 0ll1I=True):
""" Find where list 1l01 appears in list 1Il0O. When ``0ll1I`` is True
the 0ll1I occurrence from the left is returned, else the last
occurrence is returned. Return None if 1l01 is not in 1Il0O.
Examples
========
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(O10l0, O1lI1lOlO0, OI0I11IlIl=True):
""" Find where list O1lI1lOlO0 appears in list O10l0. When ``OI0I11IlIl`` is True
the OI0I11IlIl occurrence from the left is returned, else the last
occurrence is returned. Return None if O1lI1lOlO0 is not in O10l0.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(I10lIl0IO, 001lI, 0Olll0I=True):
""" Find where list 001lI appears in list I10lIl0IO. When ``0Olll0I`` is True
the 0Olll0I occurrence from the left is returned, else the last
occurrence is returned. Return None if 001lI is not in I10lIl0IO.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(11II0l, OO1O101OI0, O1lI1=True):
""" Find where list OO1O101OI0 appears in list 11II0l. When ``O1lI1`` is True
the O1lI1 occurrence from the left is returned, else the last
occurrence is returned. Return None if OO1O101OI0 is not in 11II0l.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(1IOlll, O0O0, IIO100=True):
""" Find where list O0O0 appears in list 1IOlll. When ``IIO100`` is True
the IIO100 occurrence from the left is returned, else the last
occurrence is returned. Return None if O0O0 is not in 1IOlll.
Examples
========
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(lO0llIOI, lOII0Ol1l1, I0OOII=True):
""" Find where list lOII0Ol1l1 appears in list lO0llIOI. When ``I0OOII`` is True
the I0OOII occurrence from the left is returned, else the last
occurrence is returned. Return None if lOII0Ol1l1 is not in lO0llIOI.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(O11I101lOl, 1O000, Ol01lOllI=True):
""" Find where list 1O000 appears in list O11I101lOl. When ``Ol01lOllI`` is True
the Ol01lOllI occurrence from the left is returned, else the last
occurrence is returned. Return None if 1O000 is not in O11I101lOl.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(1IllIO, lI1I0, 10Il=True):
""" Find where list lI1I0 appears in list 1IllIO. When ``10Il`` is True
the 10Il occurrence from the left is returned, else the last
occurrence is returned. Return None if lI1I0 is not in 1IllIO.
Examples
========
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(010Ill, 1OO1OI, l0OOll=True):
""" Find where list 1OO1OI appears in list 010Ill. When ``l0OOll`` is True
the l0OOll occurrence from the left is returned, else the last
occurrence is returned. Return None if 1OO1OI is not in 010Ill.
Examples
========
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(0llOI, 101O1O11O, 111lO=True):
""" Find where list 101O1O11O appears in list 0llOI. When ``111lO`` is True
the 111lO occurrence from the left is returned, else the last
occurrence is returned. Return None if 101O1O11O is not in 0llOI.
Examples
======... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(100l010III, 11I1OI0l1I, I1I1101=True):
""" Find where list 11I1OI0l1I appears in list 100l010III. When ``I1I1101`` is True
the I1I1101 occurrence from the left is returned, else the last
occurrence is returned. Return None if 11I1OI0l1I is not in 100l010III.
Exa... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(l0OI0OI, 0I00l0l01, OIIOl=True):
""" Find where list 0I00l0l01 appears in list l0OI0OI. When ``OIIOl`` is True
the OIIOl occurrence from the left is returned, else the last
occurrence is returned. Return None if 0I00l0l01 is not in l0OI0OI.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(O1IlI1IO0l, 1Il1I0I10, OllOI1lIO=True):
""" Find where list 1Il1I0I10 appears in list O1IlI1IO0l. When ``OllOI1lIO`` is True
the OllOI1lIO occurrence from the left is returned, else the last
occurrence is returned. Return None if 1Il1I0I10 is not in O1IlI1IO0l.
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(0l0lIOll0, lI10l1O, I0O1I01lO=True):
""" Find where list lI10l1O appears in list 0l0lIOll0. When ``I0O1I01lO`` is True
the I0O1I01lO occurrence from the left is returned, else the last
occurrence is returned. Return None if lI10l1O is not in 0l0lIOll0.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(IIO1O, 1IOll1O, llOIO0OI=True):
""" Find where list 1IOll1O appears in list IIO1O. When ``llOIO0OI`` is True
the llOIO0OI occurrence from the left is returned, else the last
occurrence is returned. Return None if 1IOll1O is not in IIO1O.
Examples
===... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(IOlOOI1I, OlOI00I11, OO0O1lO0=True):
""" Find where list OlOI00I11 appears in list IOlOOI1I. When ``OO0O1lO0`` is True
the OO0O1lO0 occurrence from the left is returned, else the last
occurrence is returned. Return None if OlOI00I11 is not in IOlOOI1I.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(lI1I00001, II0I110l0, 00I1=True):
""" Find where list II0I110l0 appears in list lI1I00001. When ``00I1`` is True
the 00I1 occurrence from the left is returned, else the last
occurrence is returned. Return None if II0I110l0 is not in lI1I00001.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(I1OlI1, 0OOII, 11l0I01=True):
""" Find where list 0OOII appears in list I1OlI1. When ``11l0I01`` is True
the 11l0I01 occurrence from the left is returned, else the last
occurrence is returned. Return None if 0OOII is not in I1OlI1.
Examples
========
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(00IOl1IIO0, ll01I1, OlO0=True):
""" Find where list ll01I1 appears in list 00IOl1IIO0. When ``OlO0`` is True
the OlO0 occurrence from the left is returned, else the last
occurrence is returned. Return None if ll01I1 is not in 00IOl1IIO0.
Examples
===... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(010OO11I, ll1ll0, 0O1l110II=True):
""" Find where list ll1ll0 appears in list 010OO11I. When ``0O1l110II`` is True
the 0O1l110II occurrence from the left is returned, else the last
occurrence is returned. Return None if ll1ll0 is not in 010OO11I.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(II1IIllOO, 101ll, l00Ol1O=True):
""" Find where list 101ll appears in list II1IIllOO. When ``l00Ol1O`` is True
the l00Ol1O occurrence from the left is returned, else the last
occurrence is returned. Return None if 101ll is not in II1IIllOO.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(1lIlll01, OO0Ol1O01I, OOIlIIll=True):
""" Find where list OO0Ol1O01I appears in list 1lIlll01. When ``OOIlIIll`` is True
the OOIlIIll occurrence from the left is returned, else the last
occurrence is returned. Return None if OO0Ol1O01I is not in 1lIlll01.
Exampl... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(0OI1OO, IlOl0, 1lOl00IO0=True):
""" Find where list IlOl0 appears in list 0OI1OO. When ``1lOl00IO0`` is True
the 1lOl00IO0 occurrence from the left is returned, else the last
occurrence is returned. Return None if IlOl0 is not in 0OI1OO.
Examples
===... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(0I01l0, Oll0l0I11, lOll01l=True):
""" Find where list Oll0l0I11 appears in list 0I01l0. When ``lOll01l`` is True
the lOll01l occurrence from the left is returned, else the last
occurrence is returned. Return None if Oll0l0I11 is not in 0I01l0.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(OII1l, lIllllI11, 0IlIlIO01l=True):
""" Find where list lIllllI11 appears in list OII1l. When ``0IlIlIO01l`` is True
the 0IlIlIO01l occurrence from the left is returned, else the last
occurrence is returned. Return None if lIllllI11 is not in OII1l.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(11Il1I0OI, llIIl000I1, Il10IIlIOI=True):
""" Find where list llIIl000I1 appears in list 11Il1I0OI. When ``Il10IIlIOI`` is True
the Il10IIlIOI occurrence from the left is returned, else the last
occurrence is returned. Return None if llIIl000I1 is not in 11Il1I0OI.
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(01l0l1lOI1, 010II0, 0l0lO01Il1=True):
""" Find where list 010II0 appears in list 01l0l1lOI1. When ``0l0lO01Il1`` is True
the 0l0lO01Il1 occurrence from the left is returned, else the last
occurrence is returned. Return None if 010II0 is not in 01l0l1lOI1.
Exampl... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(10O1O, lOI11ll01O, ll0OIl01=True):
""" Find where list lOI11ll01O appears in list 10O1O. When ``ll0OIl01`` is True
the ll0OIl01 occurrence from the left is returned, else the last
occurrence is returned. Return None if lOI11ll01O is not in 10O1O.
Examples
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(lIIl, OI0l, OIII=True):
""" Find where list OI0l appears in list lIIl. When ``OIII`` is True
the OIII occurrence from the left is returned, else the last
occurrence is returned. Return None if OI0l is not in lIIl.
Examples
========
>> lI... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
def find(1OOO, OIll1, l01IOI0=True):
""" Find where list OIll1 appears in list 1OOO. When ``l01IOI0`` is True
the l01IOI0 occurrence from the left is returned, else the last
occurrence is returned. Return None if OIll1 is not in 1OOO.
Examples
========
... | def find(l, sub, first=True):
""" Find where list sub appears in list l. When ``first`` is True
the first occurrence from the left is returned, else the last
occurrence is returned. Return None if sub is not in l.
Examples
========
>> l = range(5... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.