Displaying 20 results from an estimated 10000 matches similar to: "write.matrix.csr(e1071) bug"
2005 Jan 28
2
read.matrix.csr bug (e1071)?
Hello,
I would like to read and write sparse matrices using the
functions write.matrix.csr() and read.matrix.csr()
of the package e1071. Writing is OK but reading back the
matrix fails:
x <- rnorm(100)
m <- matrix(x, 10)
m[m < 0.5] <- 0
m.csr <- as.matrix.csr(m)
write.matrix.csr(m, "sparse.dat")
read.matrix("sparse.dat")
Error in initialize(value, ...)
2009 Jun 25
0
[e1071] Inconsistent results when using matrix.csr for svm() - possibly scaling problem
Dear all,
I'm training an SVM with default settings on a matrix csr (SparseM
package). I realized that if I train
the SVM with the (hopefully) equivalent matrix (Matrix package)
representation, the returned models and predictions
sometimes differ. I expected both representations of the same data
to lead to the same results though.
It could be that it is a scaling problem, because unscaled
2007 Jul 08
1
Problems with e1071 and SparseM
Hello all,
I am trying to use the "svm" method provided by e1071 (Version: 1.5-16)
together with a matrix provided by the SparseM package (Version: 0.73)
but it fails with this message:
> model <- svm(lm, lv, scale = TRUE, type = 'C-classification', kernel =
'linear')
Error in t.default(x) : argument is not a matrix
although lm was created before with
2006 Jan 27
3
e1071: using svm with sparse matrices (PR#8527)
Full_Name: Julien Gagneur
Version: 2.2.1
OS: Linux (Suse 9.3)
Submission from: (NULL) (194.94.44.4)
Using the SparseM library (SparseM_0.66)
and the e1071 library (e1071_1.5-12)
I fail using svm method with a sparse matrix. Here is a sample example.
I experienced the same problem under Windows.
> library(SparseM)
[1] "SparseM library loaded"
> library("e1071")
2003 Aug 24
2
setClass question
I would like to add a class to the SparseM package. I have a class "matrix.csr"
that describes a matrix in compressed sparse row format, now I would like a class
matrix.diag.csr that describes such objects when they happen to be diagonal.
The idea is that matrix.diag.csr objects should behave (later in life) exactly like
matrix.csr objects, the distinction is only needed in order to
2004 Nov 26
1
Namespaces, coercion and setAs
I'm trying to resolve a small problem that has arisen from introducing a
NAMESPACE for the package SparseM. Prior to the namespace I had
a class "matrix.diag.csr" that consisted of diagonal sparse matrices.
It
was defined to have the same attributes as the matrix.csr class and
setAs
was used to define how to coerce integers and vectors into this form:
2010 Apr 06
3
svm of e1071 package
Hello List,
I am having a great trouble using svm function in e1071 package. I have 4gb of data that i want to use to train svm. I am using Amazon cloud, my Amazon Machine Image(AMI) has 34.2 GB of memory. my R process was killed several times when i tried to use 4GB of data for svm. Now I am using a subset of that data and it is only 1.4 GB. i remove all unnecessary objects before calling
2012 Nov 05
1
no method for coercing this S4 class to a vector
all of a sudden, after a SparseM upgrade(?)
I get this error:
> str(z)
Formal class 'matrix.csr' [package "SparseM"] with 4 slots
..@ ra : num [1:85372672] -0.4288 0.0397 0.0104 -0.1843 -0.1203 ...
..@ ja : int [1:85372672] 1 2 3 4 5 6 7 8 9 10 ...
..@ ia : int [1:699777] 1 123 245 367 489 611 733 855 977 1099 ...
..@ dimension: int [1:2] 699776 122
2014 Jul 10
2
[LLVMdev] [PATCH][REQUEST] Could someone submit this CSR Kalimba definitions patch please?
Eric Christopher wrote:
> On Wed, Jul 9, 2014 at 11:39 AM, Jonathan Roelofs
> <jonathan at codesourcery.com> wrote:
>>
>> On 7/9/14, 12:33 PM, Eric Christopher wrote:
>>> Any reason why you deleted code that isn't related?
>>>
>>> -eric
>>>
>>>> - enum SubArchType {
>>>> - NoSubArch,
>>>> -
2006 Nov 04
1
Error when using cobs library
Dear R-Users,
I have problems with the cobs library. When doing the cobs example, I get the folling error message:
example(cobs)
cobs> x <- seq(-1, 3, , 150)
cobs> y <- (f.true <- pnorm(2 * x)) + rnorm(150)/10
cobs> con <- rbind(c(1, min(x), 0), c(-1, max(x), 1), c(0,
0, 0.5))
cobs> Rbs <- cobs(x, y, constraint = "increase", pointwise = con)
2017 Oct 27
2
Less aggressive on the first allocation of CSR if detecting an early exit
When compiling C code below for AArach64, I saw that shrink-wrapping didn't
happen due to the very early uses of CSRs in the entry block. So CSR
spills/reloads are executed even when the early exit block is taken.
int getI(int i);
int foo(int *P, int i) {
if (i>0)
return P[i];
i = getI(i);
return P[i];
}
It's not that hard to find such cases where
2017 Oct 30
2
Less aggressive on the first allocation of CSR if detecting an early exit
On 2017-10-27 19:50, Hal Finkel wrote:
> On 10/27/2017 03:32 PM, Jun Lim via llvm-dev wrote:
>
>> When compiling C code below for AArach64, I saw that shrink-wrapping
>> didn't happen due to the very early uses of CSRs in the entry block.
>> So CSR spills/reloads are executed even when the early exit block is
>> taken.
>>
>> int getI(int i);
>>
2012 Aug 27
1
matrix.csr %*% matrix --> matrix
When a sparse matrix is multiplied by a regular one, the result is
usually not sparse. However, when matrix.csr is multiplied by a regular
matrix in R, a matrix.csr is produced.
Is there a way to avoid this?
Thanks!
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://palestinefacts.org http://truepeace.org
2003 Jun 24
2
Can't load e1071
After upgrading to 1.7.0 under debian linux, I can't get e1071 working
properly.
The first problem I had was that g++-3.0 was the standard compiler but
wasn't installed, so I installed it. e1071 then installed correctly, but I
get the following:
aperrin at perrin:~/afshome/papers/authoritarian/R$ R
R : Copyright 2003, The R Development Core Team
Version 1.7.0 (2003-04-16)
R is free
2012 Nov 07
1
LiblineaR: accept sparse matrices
Thibault,
It would be nice if LiblineaR() accepted data in the form of a sparse
matrix (it does not accept whatever e1071::read.matrix.csr returns).
It would also be nice if there were functions to read/write files in the
native liblinear file format; I am sure the original liblinear library
provides at least the input code.
Thanks!
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04
2014 Jul 09
5
[LLVMdev] [PATCH][REQUEST] Could someone submit this CSR Kalimba definitions patch please?
Hello LLVMdev!!
Yesterday I posted a patch request to the llvm-commits list requesting
that someone could apply a patch to Triple.h and Triple.cpp for me. I
didn't get any response so I wondered whether I should have posted to
this list instead.
My story is as follows: we are trying to get lldb/llvm support for CSRs
range of Kalimba DSPs. Eventually we are planning to hire someone to
2001 Aug 29
2
Missing functions in package e1071(Win*)
Hi!
After unziping the CRAN file e1071.zip
on my Win95 library directory, I start R and
type
>library(e1071)
After that, help commands of the e1071
functions work (i.e., help(read.pnm), BUT
some functions themselves are not available:
> read.pnm
Error: Object "read.pnm" not found
I've looked at the file library/R/e1071 with
an ascii editor and it seems like the functions
2017 Oct 31
2
Less aggressive on the first allocation of CSR if detecting an early exit
On 2017-10-30 21:20, Hal Finkel wrote:
> On 10/30/2017 12:20 PM, junbuml at codeaurora.org wrote:
>> On 2017-10-27 19:50, Hal Finkel wrote:
>>> On 10/27/2017 03:32 PM, Jun Lim via llvm-dev wrote:
>>>
>>>> When compiling C code below for AArach64, I saw that shrink-wrapping
>>>> didn't happen due to the very early uses of CSRs in the entry
2017 Nov 10
2
Less aggressive on the first allocation of CSR if detecting an early exit
On 2017-11-10 07:47, Nemanja Ivanovic wrote:
> One thing I thought about doing a while back and never really wrote a
> POC for is the following:
> - Make FirstCSRCost a property of the MachineBasicBlock (or create a
> map of MBB* -> FirstCSRCost)
>
> - Implement a pre-RA pass that will populate the map as follows:
>
> - Identify all blocks with calls
>
> -
2004 May 31
1
e1071 build issue
** save image
Error in loadNamespace(i[[1]], c(lib.loc, .libPaths()), keep.source) :
There is no package called 'class'
Using 30 May 2004 developer version of R-1.9.0
trying URL `http://cran.r-project.org/src/contrib/e1071_1.4-0.tar.gz'
Content type `application/x-tar' length 325388 bytes
opened URL
.......... .......... .......... .......... ..........
..........