码迷,mamicode.com
首页 >  
搜索关键字:confusion matrix    ( 4333个结果
leetcode------Rotate Image
标题:Rotate Image通过率:31.7%难度:中等You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this...
分类:其他好文   时间:2015-03-07 17:02:41    阅读次数:128
《R语言入门》矩阵元素定义及筛选
《R语言入门》目录: 如何在Windows下安装R语言编程环境矩阵元素定义及筛选 和向量一样,矩阵也可以做筛选。但是需要注意一下语法上的不同。下面是一个简单的例子: 以下代码用户定义一个矩阵元素变量“si”,ncol=3(三列),byrow = TRUE(数据按行输入) 使用“<-”小于号减号作为操作符si <- matrix(c(1, 1, 1, 2,...
分类:编程语言   时间:2015-03-07 15:47:34    阅读次数:118
【POJ2155】【二维树状数组】Matrix
DescriptionGiven an N*N matrix A, whose elements are either 0 or 1. A[i, j] means the number in the i-th row and j-th column. Initially we have A[i, j...
分类:编程语言   时间:2015-03-07 13:40:34    阅读次数:157
Boltzmann机神经网络python实现
(python 3) 1 import numpy 2 from scipy import sparse as S 3 from matplotlib import pyplot as plt 4 from scipy.sparse.csr import csr_matrix 5 i...
分类:编程语言   时间:2015-03-07 06:12:08    阅读次数:497
numpy中的matrix和array
Preface在相关聚类算法的实现过程中,用python语言实现,会经常出现array和matrix的混淆,这里做个总结。array数组numpy中最基本(默认)的类型是array,他的相关操作都是按元素操作的即用作数值计算当中(按元素操作有+,-,,/,*等)。相乘举例: from numpy import * >>> a=array([1,2]) >>> a ar...
分类:其他好文   时间:2015-03-07 01:02:12    阅读次数:46655
android:scaleType="matrix"布局文件加载图片时候的显示方式
android:scaleType="center"以原图的几何中心点和ImagView的几何中心点为基准,按图片的原来size居中显示,不缩放,当图片长/宽超过View的长/宽,则截取图片的居中部分显示ImageView的size.当图片小于View 的长宽时,只显示图片的size,不剪裁。and...
分类:移动开发   时间:2015-03-06 18:38:20    阅读次数:151
[LeetCode] Spiral Matrix II
Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri...
分类:其他好文   时间:2015-03-06 16:19:22    阅读次数:128
R语言Data Frame数据框常用操作
Data Frame一般被翻译为数据框,感觉就像是R中的表,由行和列组成,与Matrix不同的是,每个列可以是不同的数据类型,而Matrix是必须相同的。Data Frame每一列有列名,每一行也可以指定行名。如果不指定行名,那么就是从1开始自增的Sequence来标识每一行。初始化使用data.f...
分类:编程语言   时间:2015-03-05 18:40:46    阅读次数:172
POJ 3233-Matrix Power Series(矩阵快速幂+二分求矩阵和)
Matrix Power Series Time Limit:3000MS     Memory Limit:131072KB     64bit IO Format:%I64d & %I64u Submit Status Practice POJ 3233 Appoint description:  System Crawler  (2015-02-28) Desc...
分类:其他好文   时间:2015-03-05 14:48:24    阅读次数:154
android:Canvas绘制自旋转Bitmap
需求 在SurfaceView或者普通View中,我们在每个绘制周期(onDraw)中,不仅需要更新绘制Bitmap对象在View中得位置,而且还希望Bitmap能够以它自身的中心点为圆心,进行自旋转。 解决 使用Canvas的drawBitmap(Bitmap bitmap,Matrix matrix,Paint paint)方法,最重要的就是定制Matrix。 代码如下: /**...
分类:移动开发   时间:2015-03-05 13:02:42    阅读次数:214
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!