Keras 前処理レイヤを使用して構造化データを分類する のレビュー

11219 件のレビュー

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

G Abhirama · 3年弱前にレビュー済み

good

dutta utpal · 3年弱前にレビュー済み

Huebert Jeff · 3年弱前にレビュー済み

Ferreira Diogo · 3年弱前にレビュー済み

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))

Hunt Nikolas · 3年弱前にレビュー済み

very clear lab, thanks!

Perunovskaia Yulia · 3年弱前にレビュー済み

Lakshmanan Babu · 3年弱前にレビュー済み

hande ramya · 3年弱前にレビュー済み

Mendes Ze · 3年弱前にレビュー済み

Shiraishi Satomi · 3年弱前にレビュー済み

Sadat Mirnezami Noushin · 3年弱前にレビュー済み

hung fermin · 3年弱前にレビュー済み

Khalilinezhad Mahdieh · 3年弱前にレビュー済み

Chowdary Pratibha · 3年弱前にレビュー済み

Vicente Pablo · 3年弱前にレビュー済み

Kiyani Shahrukh · 3年弱前にレビュー済み

Lew Dominic · 3年弱前にレビュー済み

Ma Yechi · 3年弱前にレビュー済み

Giddings Soto Lorrain · 3年弱前にレビュー済み

Guzman Carlos · 3年弱前にレビュー済み

Luo Luo,Shuyan · 3年弱前にレビュー済み

Basu Roy Sabyasachi · 3年弱前にレビュー済み

Repana Naganjana · 3年弱前にレビュー済み

Reddy Kalluri Siva Kumar · 3年弱前にレビュー済み

Araki Sean · 3年弱前にレビュー済み

公開されたレビューが、製品を購入または使用した人によるものであることは保証されません。Google はこれらのレビューの検証を行っていません。