The specific book you are referring to is likely:
Title: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems Spanish Title: Aprendizaje práctico con Scikit-Learn, Keras y TensorFlow: Conceptos, herramientas y técnicas para construir sistemas inteligentes Author: Aurélien Géron
The defining characteristic of Deep Learning, as highlighted in the text, is that the model learns the features. In a Convolutional Neural Network (CNN) for image classification, the first layers learn edges, the middle layers learn shapes, and the final layers learn objects. This eliminates the need for manual feature extraction.
print(c.numpy()) # 8
Aunque TensorFlow es increíblemente potente, su API original era compleja y verbosa. Por eso nació Keras.
Dense (densas), Conv2D (convolucionales para imágenes), LSTM (para secuencias).adam), funciones de pérdida (categorical_crossentropy) y métricas..fit() y callbacks como EarlyStopping para evitar sobreentrenamiento.Nada solidifica el conocimiento como un proyecto que combine las tres librerías. Aquí tienes una idea:
Problema: Clasificar emociones en reseñas de productos (positivo, neutral, negativo). aprende machine learning con scikitlearn keras y tensorflow
GridSearchCV de Scikit-learn envuelto alrededor de tu modelo de Keras.# Ejemplo de envoltura (wrapper) para usar Keras en GridSearchCV from scikeras.wrappers import KerasClassifier from sklearn.model_selection import GridSearchCVdef crear_modelo(optimizer="adam", neurons=64): model = keras.Sequential([ layers.Dense(neurons, activation="relu", input_shape=(X_train.shape[1],)), layers.Dense(1, activation="sigmoid") ]) model.compile(optimizer=optimizer, loss="binary_crossentropy", metrics=["accuracy"]) return model
modelo_keras = KerasClassifier(model=crear_modelo, epochs=20, batch_size=32, verbose=0)
param_grid = "model__neurons": [32, 64, 128], "model__optimizer": ["adam", "rmsprop"], "batch_size": [16, 32] The specific book you are referring to is
grid = GridSearchCV(estimator=modelo_keras, param_grid=param_grid, cv=3) grid.fit(X_train, y_train) print(f"Mejores parámetros: grid.best_params_")
Este proyecto te enseñará más que cualquier curso teórico. ¿Qué aprenderás en Keras
model = keras.Sequential([ layers.Flatten(input_shape=(28, 28)), # Aplanar imagen 28x28 layers.Dense(128, activation="relu"), layers.Dropout(0.2), # Regularización layers.Dense(10, activation="softmax") # 10 dígitos ])
tensorflow.keras.applications.