Classifying Structured Data using Keras Preprocessing Layers avis

11219 avis

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

Abhirama G. · Examiné il y a presque 3 ans

good

utpal d. · Examiné il y a presque 3 ans

Jeff H. · Examiné il y a presque 3 ans

Diogo F. · Examiné il y a presque 3 ans

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. · Examiné il y a presque 3 ans

very clear lab, thanks!

Yulia P. · Examiné il y a presque 3 ans

Babu L. · Examiné il y a presque 3 ans

ramya h. · Examiné il y a presque 3 ans

Ze M. · Examiné il y a presque 3 ans

Satomi S. · Examiné il y a presque 3 ans

Noushin S. · Examiné il y a presque 3 ans

fermin h. · Examiné il y a presque 3 ans

Mahdieh K. · Examiné il y a presque 3 ans

Pratibha C. · Examiné il y a presque 3 ans

Pablo V. · Examiné il y a presque 3 ans

Shahrukh K. · Examiné il y a presque 3 ans

Dominic L. · Examiné il y a presque 3 ans

Yechi M. · Examiné il y a presque 3 ans

Lorrain G. · Examiné il y a presque 3 ans

Carlos G. · Examiné il y a presque 3 ans

Luo,Shuyan L. · Examiné il y a presque 3 ans

Sabyasachi B. · Examiné il y a presque 3 ans

Naganjana R. · Examiné il y a presque 3 ans

Kalluri Siva Kumar R. · Examiné il y a presque 3 ans

Sean A. · Examiné il y a presque 3 ans

Nous ne pouvons pas certifier que les avis publiés proviennent de consommateurs qui ont acheté ou utilisé les produits. Les avis ne sont pas vérifiés par Google.