- 博客(10)
- 收藏
- 关注
原创 python使用pip安装指定的包
pip install "package==version"网上大部分都是错的,一个copy一个。。。出处https://packaging.python.org/tutorials/installing-packages/
2019-01-22 05:53:16 487
原创 报错:cannot install ''numpy'.It is a distutils installed project and thus we cannot ...
报错:cannot install '‘numpy’.It is a distutils installed project and thus we cannot …强行安装更新更高的版本sudo pip install numpy --ignore-installed numpy
2019-01-22 05:31:05 381
原创 AttributeError: 'Series' object has no attribute 'reshape'
AttributeError: ‘Series’ object has no attribute ‘reshape’Series数据类型没有reshape函数解决办法:用values方法将Series对象转化成numpy的ndarray,再用ndarray的reshape方法.data[‘Amount’].values.reshape(-1, 1)另外:pandas有两种对象:Serie...
2019-01-20 17:14:04 4490 1
原创 OMP: Error #15: Initializing libomp.dylib, but found libiomp5.dylib already initialized.
OMP: Error #15: Initializing libomp.dylib, but found libiomp5.dylib already initialized.在程序前加上import osos.environ["KMP_DUPLICATE_LIB_OK"]="TRUE"
2019-01-20 16:33:48 6071 5
原创 hexo 文章格式
title: Libsvm简介tags: - SVMcategories: - Machine_Learningauthor: daidaidate: 2019-01-14 13:46:25---
2019-01-14 15:14:46 2320
原创 github更换电脑 开发
git 更换电脑开发,首先git clone到本地,然后Git add .git commit,最后直接Git push OK
2019-01-14 01:25:52 1057
原创 方程组的几何解释
方程组的几何解释行图像 2x-y=0 -x+2y=3绘图:直线2x-y=0 和 直线-x+2y=3列图像l_1 = [2,-1]l_2 = [-1, 2]l_3 = [0, 3]绘图:直线l_1、直线l_2和直线l_3矩阵相乘:行乘列加和# -*- coding: utf-8 -*-'''二维矩阵与列向量相乘'''# 计算矩阵相乘解...
2019-01-11 21:24:35 529 2
原创 Momenta在线面试题
Momenta在线面试题岗位:忘了投的什么岗位来着,可能是后台开发日期:2018.12.22选择题 (12道 * 5分)https://www.nowcoder.com/questionTerminal/677ebdf5533943868ff7c8b8c1377f46C++将父类的析构函数定义为虚函数,下列正确的是哪个?(释放父类指针时能正确释放子类对象)释放父类指针时能正...
2019-01-01 19:36:23 4157
原创 python 判断是字母、数字
str_1 = "123"str_2 = "Abc"str_3 = "123Abc"#用isdigit函数判断是否数字print(str_1.isdigit())Tureprint(str_2.isdigit())Falseprint(str_3.isdigit())False#用isalpha判断是否字母print(str_1.isalpha()) False...
2019-01-01 19:31:55 17139
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人