{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "177faf3e-cec4-4a9f-a613-4c8838af30c1", "metadata": {}, "outputs": [], "source": [ "#No keras existem os modelos de redes neurais estaticos, funcionais e dinamicmos. Neste notebook lidaresmos com dinamico" ] }, { "cell_type": "code", "execution_count": null, "id": "ef8dbd4c-3443-4a5f-b8e1-99b6f0d958b6", "metadata": {}, "outputs": [], "source": [ "from sklearn.datasets import fetch_california_housing\n", "from sklearn.model_selection import train_test_split\n", "from sklearn.preprocessing import StandardScaler\n", "\n", "import numpy as np\n", "import tensorflow as tf\n", "from tensorflow import keras\n", "import pandas as pd\n", "import matplotlib\n", "matplotlib.use(\"TkAgg\")\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "code", "execution_count": 3, "id": "8b95335e-9efc-44d9-8b6f-9cf8c6929dc7", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "7c30100467c14c088b36a2be435e0014", "version_major": 2, "version_minor": 0 }, "text/plain": [ "VBox(children=(HTML(value='