Classifying Structured Data using Keras Preprocessing Layers Ulasan

11219 ulasan

There was an error in the code, because of which the notebook wasn't executable.

Abhirama G. · Diulas hampir 3 tahun lalu

good

utpal d. · Diulas hampir 3 tahun lalu

Jeff H. · Diulas hampir 3 tahun lalu

Diogo F. · Diulas hampir 3 tahun lalu

AttributeError: 'StringLookup' object has no attribute 'vocabulary_size' def get_category_encoding_layer(name, dataset, dtype, max_tokens=None): # Create a StringLookup layer which will turn strings into integer indices if dtype == 'string': index = preprocessing.StringLookup(max_tokens=max_tokens) else: index = preprocessing.IntegerLookup(max_tokens=max_tokens) # TODO # Prepare a Dataset that only yields our feature feature_ds = dataset.map(lambda x, y: x[name]) # Learn the set of possible values and assign them a fixed integer index. index.adapt(feature_ds) # Create a Discretization for our integer indices. encoder = preprocessing.CategoryEncoding(num_tokens=index.vocabulary_size()) # Apply one-hot encoding to our indices. The lambda function captures the # layer so we can use them, or include them in the functional model later. return lambda feature: encoder(index(feature))

Nikolas H. · Diulas hampir 3 tahun lalu

very clear lab, thanks!

Yulia P. · Diulas hampir 3 tahun lalu

Babu L. · Diulas hampir 3 tahun lalu

ramya h. · Diulas hampir 3 tahun lalu

Ze M. · Diulas hampir 3 tahun lalu

Satomi S. · Diulas hampir 3 tahun lalu

Noushin S. · Diulas hampir 3 tahun lalu

fermin h. · Diulas hampir 3 tahun lalu

Mahdieh K. · Diulas hampir 3 tahun lalu

Pratibha C. · Diulas hampir 3 tahun lalu

Pablo V. · Diulas hampir 3 tahun lalu

Shahrukh K. · Diulas hampir 3 tahun lalu

Dominic L. · Diulas hampir 3 tahun lalu

Yechi M. · Diulas hampir 3 tahun lalu

Lorrain G. · Diulas hampir 3 tahun lalu

Carlos G. · Diulas hampir 3 tahun lalu

Luo,Shuyan L. · Diulas hampir 3 tahun lalu

Sabyasachi B. · Diulas hampir 3 tahun lalu

Naganjana R. · Diulas hampir 3 tahun lalu

Kalluri Siva Kumar R. · Diulas hampir 3 tahun lalu

Sean A. · Diulas hampir 3 tahun lalu

Kami tidak dapat memastikan bahwa ulasan yang dipublikasikan berasal dari konsumen yang telah membeli atau menggunakan produk terkait. Ulasan tidak diverifikasi oleh Google.