Classifying Structured Data using Keras Preprocessing Layers Rezensionen
11219 Rezensionen
There was an error in the code, because of which the notebook wasn't executable.
Abhirama G. · Vor fast 3 Jahre überprüft
good
utpal d. · Vor fast 3 Jahre überprüft
Jeff H. · Vor fast 3 Jahre überprüft
Diogo F. · Vor fast 3 Jahre überprüft
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. · Vor fast 3 Jahre überprüft
very clear lab, thanks!
Yulia P. · Vor fast 3 Jahre überprüft
Babu L. · Vor fast 3 Jahre überprüft
ramya h. · Vor fast 3 Jahre überprüft
Ze M. · Vor fast 3 Jahre überprüft
Satomi S. · Vor fast 3 Jahre überprüft
Noushin S. · Vor fast 3 Jahre überprüft
fermin h. · Vor fast 3 Jahre überprüft
Mahdieh K. · Vor fast 3 Jahre überprüft
Pratibha C. · Vor fast 3 Jahre überprüft
Pablo V. · Vor fast 3 Jahre überprüft
Shahrukh K. · Vor fast 3 Jahre überprüft
Dominic L. · Vor fast 3 Jahre überprüft
Yechi M. · Vor fast 3 Jahre überprüft
Lorrain G. · Vor fast 3 Jahre überprüft
Carlos G. · Vor fast 3 Jahre überprüft
Luo,Shuyan L. · Vor fast 3 Jahre überprüft
Sabyasachi B. · Vor fast 3 Jahre überprüft
Naganjana R. · Vor fast 3 Jahre überprüft
Kalluri Siva Kumar R. · Vor fast 3 Jahre überprüft
Sean A. · Vor fast 3 Jahre überprüft
Wir können nicht garantieren, dass die veröffentlichten Rezensionen von Verbrauchern stammen, die die Produkte gekauft oder genutzt haben. Die Rezensionen werden von Google nicht überprüft.