发布时间:2022-01-19 17:17:51
import torchfrom torch import nnclass SiLU(nn.Module): @staticmethod def forward(x): return x * torch.sigmoid(x)def get_activation(name="silu", inplace=True): &.........【阅读全文】
发布时间:2022-01-13 17:25:06
import torchimport torch.nn as nnimport torch.nn.functional as Fimport numpy as npimport gymimport time##################### hyper parameters ####################EPISODES = 200EP_STEPS = 200LR_ACTOR = 0.001LR_CRITIC = 0.002GAMMA = 0.9TAU .........【阅读全文】
发布时间:2022-01-05 17:12:59
# -*- coding: utf-8 -*-"""一元线性回归及代码实现.ipynb"""import numpy as npimport matplotlib.pyplot as plt"""# 一、数据集"""# 读入数据集data = np.genfromtxt('data.csv', delimiter=',')'''np.genfromtxt('data.csv', delimiter=',')第一个参数是表格数组,可以简单理.........【阅读全文】
发布时间:2021-12-31 14:16:36
import sysimport pygameimport randomimport os.path as pathfrom move_ren import Gamedef main(): # 初始化pygame pygame.init() width = 400 height = 365 .........【阅读全文】
发布时间:2021-12-29 17:21:17
#!/usr/bin/python3# -*- coding=utf-8 -*-# @Author : lhys# @FileName: proxy_tool.pyimport requestsimport threadingtimeout = 300lock = threading.Lock()# 请求头用自己的headers = { '': ''}class MyProxy: &.........【阅读全文】