随笔分类 -  深度学习

摘要:import tensorflow as tf from tensorflow.keras import Sequential from tensorflow.keras.models import Model from tensorflow.keras.layers import Conv2D, 阅读全文
posted @ 2023-10-08 17:02 王哲MGG_AI 阅读(59) 评论(0) 推荐(0)
摘要:import os import tensorflow as tf # Load compressed models from tensorflow_hub os.environ['TFHUB_MODEL_LOAD_FORMAT'] = 'COMPRESSED' import IPython.dis 阅读全文
posted @ 2023-10-08 16:56 王哲MGG_AI 阅读(81) 评论(0) 推荐(0)
摘要:import numpy as np import tensorflow as tf # 需要安装pip install opencv-python==4.5.3.56 import cv2 from IPython.display import Image, display from tensor 阅读全文
posted @ 2023-10-08 16:11 王哲MGG_AI 阅读(60) 评论(0) 推荐(0)
摘要:import numpy as np import tensorflow as tf from tensorflow.keras.layers import Input, Add, Dense, Activation, ZeroPadding2D, BatchNormalization, Flatt 阅读全文
posted @ 2023-10-08 15:00 王哲MGG_AI 阅读(61) 评论(0) 推荐(0)
摘要:import math import numpy as np import h5py import matplotlib.pyplot as plt import scipy from PIL import Image from scipy import ndimage import tensorf 阅读全文
posted @ 2023-10-07 14:56 王哲MGG_AI 阅读(54) 评论(0) 推荐(0)
摘要:import numpy as np import h5py import matplotlib.pyplot as plt %matplotlib inline plt.rcParams['figure.figsize'] = (5.0, 4.0) plt.rcParams['image.inte 阅读全文
posted @ 2023-10-07 13:42 王哲MGG_AI 阅读(31) 评论(0) 推荐(0)
摘要:import numpy as np import h5py import matplotlib.pyplot as plt %matplotlib inline plt.rcParams['figure.figsize'] = (5.0, 4.0) plt.rcParams['image.inte 阅读全文
posted @ 2023-10-07 11:19 王哲MGG_AI 阅读(29) 评论(0) 推荐(0)
摘要:梯度下降、Mini-Batch梯度下降、动量梯度下降以及Adam都是用于训练机器学习模型的优化算法。 梯度下降 (Gradient Descent): 梯度下降是一种优化算法,用于调整模型参数以最小化损失函数。 想象一下你站在山上,想要找到山底的最低点。你每一步都沿着最陡峭的下坡方向走,直到到达最低 阅读全文
posted @ 2023-10-07 09:10 王哲MGG_AI 阅读(71) 评论(0) 推荐(0)
摘要:import numpy as np import matplotlib.pyplot as plt import scipy.io import math import sklearn import sklearn.datasets from opt_utils import load_param 阅读全文
posted @ 2023-10-07 09:06 王哲MGG_AI 阅读(113) 评论(0) 推荐(0)
摘要:import numpy as np import matplotlib.pyplot as plt import scipy.io import math import sklearn import sklearn.datasets from opt_utils import load_param 阅读全文
posted @ 2023-10-07 08:46 王哲MGG_AI 阅读(16) 评论(0) 推荐(0)
摘要:import numpy as np import matplotlib.pyplot as plt import scipy.io import math import sklearn import sklearn.datasets from opt_utils import load_param 阅读全文
posted @ 2023-09-28 15:46 王哲MGG_AI 阅读(27) 评论(0) 推荐(0)
摘要:import numpy as np import matplotlib.pyplot as plt import scipy.io import math import sklearn import sklearn.datasets from opt_utils import load_param 阅读全文
posted @ 2023-09-28 15:08 王哲MGG_AI 阅读(47) 评论(0) 推荐(0)
摘要:import numpy as npfrom testCases import *from gc_utils import sigmoid, relu, dictionary_to_vector, vector_to_dictionary, gradients_to_vector ######### 阅读全文
posted @ 2023-09-05 09:46 王哲MGG_AI 阅读(57) 评论(0) 推荐(0)
摘要:import numpy as npimport matplotlib.pyplot as pltfrom reg_utils import sigmoid, relu, plot_decision_boundary, initialize_parameters, load_2D_dataset, 阅读全文
posted @ 2023-09-04 16:31 王哲MGG_AI 阅读(43) 评论(0) 推荐(0)
摘要:# 加载系统工具库import numpy as npimport matplotlib.pyplot as pltimport sklearnimport sklearn.datasets # 加载自定义的工具库from init_utils import * # 设置好画图工具%matplotl 阅读全文
posted @ 2023-09-04 15:50 王哲MGG_AI 阅读(47) 评论(0) 推荐(0)
摘要:import numpy as npimport h5pyimport matplotlib.pyplot as plt from testCases import *from dnn_utils import * %matplotlib inlineplt.rcParams['figure.fig 阅读全文
posted @ 2023-08-31 17:23 王哲MGG_AI 阅读(36) 评论(0) 推荐(0)
摘要:import numpy as npimport matplotlib.pyplot as plt import sklearn import sklearn.datasetsimport sklearn.linear_model from planar_utils import plot_deci 阅读全文
posted @ 2023-08-31 16:05 王哲MGG_AI 阅读(88) 评论(0) 推荐(0)
摘要:import numpy as np import matplotlib.pyplot as plt import h5py import skimage.transform as tf %matplotlib inline ##################################### 阅读全文
posted @ 2023-08-30 11:04 王哲MGG_AI 阅读(76) 评论(0) 推荐(0)