发布时间:2021-10-22 17:20:40
import xml.etree.ElementTree as ETimport pickleimport osfrom os import listdir, getcwdfrom os.path import joinimport randomfrom shutil import copyfileclasses = ["hat", "person"] # 自定义类TRAIN_RATIO = 80 # 8:2 训练集和验证集比率def clear_hidden_files(path):.........【阅读全文】
发布时间:2021-10-19 17:27:16
# -*- coding: utf-8 -*-"""Created on Mon Oct 18 10:18:24 2021@author: 86493"""import torch import torch.nn as nnimport numpy as npimport matplotlib.pyplot as plt# 这里的type不用double,特斯拉GPU才doublexy = np.loadtxt('diabetes.csv', &nb.........【阅读全文】
发布时间:2021-10-18 17:29:13
import pymysqldef menu(): print("\t\t学生信息管理系统\t\t") print("\t\t1 添加学生\t\t") print("\t\t2 删除学生\t\t") print("\t\t3 修改学生\t\t") print("\t\t4 按.........【阅读全文】
发布时间:2021-10-15 17:16:05
import torchimport numpy as npfrom torch import Tensor"""@overloaddef scatter_add(self, dim: _int, index: Tensor, src: Tensor) -> Tensor: ...@overloaddef scatter_add(self, dim: Union[str, ellipsis, None], index: Tensor, src: Tensor) -> Tensor: ...def scatter_add_(se.........【阅读全文】
发布时间:2021-10-14 17:10:07
#!/usr/bin/env python# -*- coding: utf-8 -*-# @Author : Benjamin# @Time : 2021/10/11 20:33# from tkinter import *from tkinter import messageboxfrom tkinter import Tkimport tkinter as tk#创建窗体my_window=Tk()my_window.title("登陆")#设置窗口大.........【阅读全文】