리뷰 Keras Functional API를 사용하여 DNN 빌드하기개

리뷰 10753개

Jack T. · 11개월 전에 리뷰됨

Andre K. · 11개월 전에 리뷰됨

great

Rajib S. · 11개월 전에 리뷰됨

Jagadeeswar N. · 11개월 전에 리뷰됨

Htut K. · 11개월 전에 리뷰됨

Andi Muhammad Yanwar C. · 11개월 전에 리뷰됨

David P. · 11개월 전에 리뷰됨

Dinesh S. · 11개월 전에 리뷰됨

Yemil V. · 11개월 전에 리뷰됨

Ganeswara P. · 12개월 전에 리뷰됨

Ashok K. · 12개월 전에 리뷰됨

Joao M. · 12개월 전에 리뷰됨

Camilo Ernesto V. · 12개월 전에 리뷰됨

Christopher D. · 12개월 전에 리뷰됨

Martin L. · 12개월 전에 리뷰됨

Odar M. · 12개월 전에 리뷰됨

Harsh B. · 12개월 전에 리뷰됨

Issues with defining features: def features_and_labels(row_data):     for unwanted_col in ['pickup_datetime', 'key']:         row_data.pop(unwanted_col)     label = row_data.pop(LABEL_COLUMN)     return row_data, label  # features, label # load the training data def load_dataset(pattern, batch_size=1, mode=tf.estimator.ModeKeys.EVAL):   dataset = (tf.data.experimental.make_csv_dataset(pattern, batch_size, CSV_COLUMNS, DEFAULTS)              .map(features_and_labels) # features, label              )   if mode == tf.estimator.ModeKeys.TRAIN:         dataset = dataset.shuffle(1000).repeat()   dataset = dataset.prefetch(1) # take advantage of multi-threading; 1=AUTOTUNE   return dataset ---------------------------------------------------------------------------AttributeError Traceback (most recent call last) Cell In[11], line 8 5 return row_data, label # features, label 7 # load the training data----> 8 def load_dataset(pattern, batch_size=1, mode=tf.estimator.ModeKeys.EVAL): 9 dataset = (tf.data.experimental.make_csv_dataset(pattern, batch_size, CSV_COLUMNS, DEFAULTS) 10 .map(features_and_labels) # features, label 11 ) 12 if mode == tf.estimator.ModeKeys.TRAIN:AttributeError: module 'tensorflow' has no attribute 'estimator' --------------- Per Gemini - this worked The tf.estimator module is outdated and no longer the recommended way to build models in TensorFlow. It's been largely superseded by Keras, which provides a more user-friendly and flexible API for building and training models. Here's how you can update your code to use Keras instead of tf.estimator: ------- # ... (your features_and_labels function remains the same) # Load the training data using tf.data.Dataset def load_dataset(pattern, batch_size=1, mode='eval'): # Use strings for mode dataset = (tf.data.experimental.make_csv_dataset(pattern, batch_size, CSV_COLUMNS, DEFAULTS) .map(features_and_labels) # features, label ) if mode 1 == 'train': dataset = dataset.shuffle(1000).repeat() dataset = dataset.prefetch(1) # take advantage of multi-threading; 1=AUTOTUNE return dataset ----- mode parameter: Instead of using tf.estimator.ModeKeys, we'll simply use strings like 'train' or 'eval' to represent the mode. No tf.estimator: We've removed the dependency on tf.estimator altogether.

Rod M. · 12개월 전에 리뷰됨

Great Lab!

Francisco A. · 12개월 전에 리뷰됨

Ioana B. · 12개월 전에 리뷰됨

Thomas N. · 12개월 전에 리뷰됨

David L. · 12개월 전에 리뷰됨

Ronny d. · 12개월 전에 리뷰됨

Anderson I. · 12개월 전에 리뷰됨

good

Nikhitha K. · 12개월 전에 리뷰됨

Google은 게시된 리뷰가 제품을 구매 또는 사용한 소비자에 의해 작성되었음을 보증하지 않습니다. 리뷰는 Google의 인증을 거치지 않습니다.