Python - Iterable vs Iterator
by Jerry Su, post on Dec 30, 2020import re
from collections.abc import Iterator, Iterable
鸭子类型,通过协议实现
1. Iterable
可迭代协议: __iter__()
import re
class Sentence1:
def __init__(self, text …
Python Built-in Functions
by Jerry Su, post on Dec 18, 2020Reason is the light and the light of life.
CategoricalCrossentropy VS SparseCategoricalCrossentropy
by Jerry Su, post on Dec 09, 2020Reason is the light and the light of life.
tf.not_equal/reduce_any/boolean_mask
by Jerry Su, post on Dec 03, 2020Reason is the light and the light of life.