Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2dff8f

Browse files
...
1 parent f7f8d87 commit b2dff8f

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

Neural_Networks/convolutional_neural_network_MNIST_digits.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@
2929
"source": [
3030
"# Libraries\n",
3131
"import os\n",
32+
"import logging\n",
3233
"import numpy as np\n",
3334
"import pandas as pd\n",
3435
"import matplotlib.pyplot as plt\n",
3536
"\n",
36-
"# Set TensorFlow log level to suppress warnings and info messages\n",
37-
"os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n",
37+
"# Set TensorFlow log level to suppress warnings\n",
38+
"logging.disable(logging.WARNING)\n",
39+
"os.environ[\"TF_CPP_MIN_LOG_LEVEL\"] = \"3\"\n",
3840
"\n",
3941
"# TensorFlow and Keras\n",
4042
"from tensorflow import keras\n",
@@ -129,7 +131,7 @@
129131
},
130132
{
131133
"cell_type": "code",
132-
"execution_count": 13,
134+
"execution_count": 5,
133135
"id": "0c0cc3db",
134136
"metadata": {},
135137
"outputs": [],

Neural_Networks/multi_layer_perceptron_model_apartment_data.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@
3939
"source": [
4040
"# Libraries\n",
4141
"import os\n",
42+
"import logging\n",
4243
"import pandas as pd\n",
4344
"import matplotlib.pyplot as plt\n",
4445
"from sklearn.metrics import r2_score\n",
4546
"from sklearn.preprocessing import MinMaxScaler\n",
4647
"from sklearn.model_selection import train_test_split\n",
4748
"\n",
48-
"# Set TensorFlow log level to suppress warnings and info messages\n",
49-
"os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n",
49+
"# Set TensorFlow log level to suppress warnings\n",
50+
"logging.disable(logging.WARNING)\n",
51+
"os.environ[\"TF_CPP_MIN_LOG_LEVEL\"] = \"3\"\n",
5052
"\n",
5153
"from tensorflow import keras\n",
5254
"from tensorflow.keras.models import Sequential\n",
@@ -128,7 +130,7 @@
128130
},
129131
{
130132
"cell_type": "code",
131-
"execution_count": 244,
133+
"execution_count": 17,
132134
"id": "6d76a5cc",
133135
"metadata": {},
134136
"outputs": [],

0 commit comments

Comments
 (0)