Edited, memorised or added to reading queue

on 27-May-2024 (Mon)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

Flashcard 7628068097292

Tags
#tensorflow #tensorflow-certificate
Question
  1. Converting non-numerical columns

For example: Use pandas [...]() function

Answer
get_dummies

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Converting non-numerical columns For example: Use pandas get_dummies() function

Original toplevel document

TfC_01_FINAL_EXAMPLE.ipynb
Getting dataset ready for tensorflow Converting non-numerical columns For example: Use pandas get_dummies() function insurance_one_hot = pd.get_dummies(insurance,dtype="int32") #to avoid bool which generate problem with model fitting in TensorFlow insurance_one_hot # Create X and y values (features and labels) y = insurance_one_hot['charges'] X = insurance_one_hot.drop('charges', axis=1) #y = y.values # This is not necessary #X = X.values #X, y, X