发布时间:2021-04-19 17:17:44
machine_learning.py这部分代码对应文章的机器学习部分。# -*- coding: utf-8 -*- import os import warningsimport numpy as npfrom sklearn import preprocessingimport pickle# 用于机器学习的第三方库导入from sklearn.model_selection import GridSearchCVfrom sklearn.nei.........【阅读全文】
发布时间:2021-04-16 17:13:22
平滑线性空间滤波器盒状态滤波import numpy as npfrom scipy import signalfrom skimage import data, iofrom matplotlib import pyplot as plt# 定义二维灰度图像的空间滤波函数def correl2d(img, window): s = signal.correlate2d(img, window, mode='same', b.........【阅读全文】
发布时间:2021-04-14 16:59:46
import pandas as pdimport matplotlib.pyplot as plt#读取文件score = pd.read_csv('./student_score.csv',encoding = 'gbk')#最高分Math_Max = score.高数.max()English_Max = score.英语.max()Python_Max = score.Python.max()#最低分Math_Min = score.高数.min()English_Min.........【阅读全文】
发布时间:2021-04-13 16:00:28
'''发送邮件'''import tkinterimport smtplibfrom email.mime.text import MIMEText跟单网class SendMail: # 初始化画窗口 def __init__(self): # 创建窗口对象 windows = tkinter.Tk() # 设置标题 &n.........【阅读全文】
发布时间:2021-04-12 17:06:54
#!/usr/bin/python# -*- coding: UTF-8 -*- import matplotlib.pyplot as pltimport mathshow_animation = Trueclass Dijkstra: def __init__(self, ox, oy, resolution, robot_radius): """ &.........【阅读全文】