发布时间:2021-08-12 17:24:13
# your code goes herefrom matplotlib import pyplot as pltimport pandas as pddef linearCongruentialMethod(Xo, m, a, c, randomNums, U): randomNums[0] = Xo U[0] = randomNums[0] / m for i in range(1, 10000):.........【阅读全文】
发布时间:2021-08-11 17:19:23
import numpy as npimport matplotlib.pyplot as plt# import math as mtimport seaborn as snssns.set_style('darkgrid')x=np.arange(0,10,0.02)y=x+10*np.sin(5*x)+7*np.cos(4*x)plt.plot(x,y) #画原函数plt.title('Primitive function').........【阅读全文】
发布时间:2021-08-10 17:19:15
#!/usr/bin/python# -*- coding: UTF-8 -*-import argparseimport jsonimport osimport os.path as ospimport base64import warningsimport PIL.Imageimport yamlfrom labelme import utilsimport numpy as npfrom skimage import img_as_ubytedef main(): .........【阅读全文】
发布时间:2021-08-09 17:26:03
import csvimport hashlibimport osfrom tkinter import *import numpy as npimport requestsfrom PIL import Imageimport xlwtheaders = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0)like Gecko)'}class image(): def .........【阅读全文】
发布时间:2021-08-06 17:22:20
def adjust_input(in_data):#调整输入 """ adjust the input from (h, w, c) to ( 1, c, h, w) for network input Parameters: ---------- &nb.........【阅读全文】