摘要:
#检测opencv插件安装成功否 import cv2 as cv img=cv.imread(r'D:\DeepLearning\timg.jpg') cv.namedWindow('Image') cv.imshow('Image',img) cv.waitKey(0) cv.destroyAl 阅读全文
摘要:
import time start_time=time.time() for a in range(0,1001): for b in range(0,1001): c=1000-a-b if a**2+b**2==c**2: print("a,b,c:%d,%d,%d"%(a,b,c)) end_ 阅读全文
摘要:
1.简单线性回归 #线性回归 import numpy as np data_x=np.linspace(0,10,30) data_y=data_x*3+7+np.random.normal(0,1,30) import matplotlib.pyplot as plt %matplotlib i 阅读全文
摘要:
1.卷积神经网络卫星图片识别 import tensorflow as tf import matplotlib.pyplot as plt %matplotlib inline import numpy as np import pandas as pd import pathlib#面向对象的路 阅读全文
摘要:
1.猫狗数据集自定义 import tensorflow as tf from tensorflow import keras import matplotlib.pyplot as plt %matplotlib inline import numpy as np import glob impo 阅读全文
摘要:
1.gpu配置 import tensorflow as tf #当前程序可用GPU gpu=tf.config.experimental.list_physical_devices(device_type='GPU') cpu=tf.config.experimental.list_physica 阅读全文