
python
mozai147
这个作者很懒,什么都没留下…
展开
-
spyder中让生成的图像单独在窗口中显示
IPython 支持两种形式的绘图终端输出图像新窗口输出图像方式 1 能够非常方便的保存输出记录(如将`IPython 终端输出转换成 Html 文件)方式 2 则可以交互式的放大、拖动图片,并且能将图片保存成不同的格式在终端窗口中输出图片的命令是:In [1]: %matplotlib inline在图片窗口表现图片的命令是:In [4]: %matplotlib qt5 在python3的版...原创 2018-04-08 12:05:56 · 35649 阅读 · 2 评论 -
from sklearn.datasets.samples_generator import make_classification
sklearn.datasets.make_classification(n_samples=100, n_features=20, n_informative=2, n_redundant=2, n_repeated=0, n_classes=2, n_clusters_per_class=2, weights=None, flip_y=0.01, class_sep=1.0, hypercub...转载 2018-04-09 15:00:38 · 6572 阅读 · 0 评论 -
ubuntu安装python3.5并改默认python为3.5(转)
转自https://blog.youkuaiyun.com/qq_27657429/article/details/534825951、使用下面命令sudo add-apt-repository ppa:fkrull/deadsnakessudo apt-get updatesudo apt-get install python3.5 2、然后输入python时启动的是python2...转载 2018-12-05 19:11:01 · 1072 阅读 · 0 评论