算法
plus_left
路漫漫其修远兮
展开
-
conda安装指定版本的gpu-cpu虚拟环境
conda安装指定版本的gpu-cpu虚拟环境anaconda中没有的版本使用清华镜像安装linux下windows下 anaconda中没有的版本使用清华镜像安装 linux下 如: conda install cudatoolkit=8.0 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/ conda install cudnn=6.0.21 -c https://mirrors.tuna.tsinghua.edu.原创 2021-09-10 16:50:04 · 383 阅读 · 0 评论 -
LMSE(HK)算法的python实现
import numpy as np import matplotlib.pyplot as plt # 输入数据 # 线性可分 # w1 = np.array([[0, 0, 1], [0, 1, 1], [1, 0, 1]]) # w2 = np.array([[1, 1, 1]]) # 线性不可分 w1 = np.array([[0, 0, 1], [1, 1, 1]]) w2 = np.array([[1, 0, 1], [0, 1, 1]]) w2 = -w2 b = np.array([1原创 2020-12-16 14:13:45 · 1211 阅读 · 0 评论