similar to: What exactly is an dgCMatrix-class. There are so many attributes.

Displaying 20 results from an estimated 4000 matches similar to: "What exactly is an dgCMatrix-class. There are so many attributes."

2017 Oct 20
4
What exactly is an dgCMatrix-class. There are so many attributes.
Thank you for your responses. I guess I don't feel alone. I don't find the documentation go into any detail. I also find it surprising that, > object.size(train$data) 1730904 bytes > object.size(as.matrix(train$data)) 6575016 bytes the dgCMatrix actually takes less memory, though it *looks* like the opposite. Cheers! On Fri, Oct 20, 2017 at 3:22 PM, David Winsemius
2017 Oct 20
0
What exactly is an dgCMatrix-class. There are so many attributes.
Subsetting using [] vs. head(), gives different results. R code: > head(train$data, 5) [1] 0 0 1 0 0 > train$data[1:5, 1:5] 5 x 5 sparse Matrix of class "dgCMatrix" cap-shape=bell cap-shape=conical cap-shape=convex [1,] . . 1 [2,] . . 1 [3,] 1 .
2017 Oct 20
0
What exactly is an dgCMatrix-class. There are so many attributes.
> On Oct 20, 2017, at 11:11 AM, C W <tmrsg11 at gmail.com> wrote: > > Dear R list, > > I came across dgCMatrix. I believe this class is associated with sparse > matrix. Yes. See: help('dgCMatrix-class', pack=Matrix) If Martin Maechler happens to respond to this you should listen to him rather than anything I write. Much of what the Matrix package does appears
2017 Oct 21
0
What exactly is an dgCMatrix-class. There are so many attributes.
>>>>> C W <tmrsg11 at gmail.com> >>>>> on Fri, 20 Oct 2017 15:51:16 -0400 writes: > Thank you for your responses. I guess I don't feel > alone. I don't find the documentation go into any detail. > I also find it surprising that, >> object.size(train$data) > 1730904 bytes >>
2017 Oct 21
1
What exactly is an dgCMatrix-class. There are so many attributes.
> On Oct 21, 2017, at 7:50 AM, Martin Maechler <maechler at stat.math.ethz.ch> wrote: > >>>>>> C W <tmrsg11 at gmail.com> >>>>>> on Fri, 20 Oct 2017 15:51:16 -0400 writes: > >> Thank you for your responses. I guess I don't feel >> alone. I don't find the documentation go into any detail. > >> I also find
2020 Jan 04
2
A modern object-oriented machine learning framework in R
Estimadísimo Carlos: Muchísimas gracias por responderme y hacerlo tan rápido. Contemplé esa posibilidad, es decir, que el hiperparámetro estuviera suponiendo un problema, y probé de esta forma: > learner <- lrn("classif.ranger", num.trees = 5, mtry = NULL) Error: Element with key 'classif.ranger' not found in DictionaryLearner!
2012 Dec 11
1
Dispatching on a dgCMatrix does not work.
I represent a graph as an adjacency matrix of class "dgCMatrix" (from the Matrix package). > xx 5 x 5 sparse Matrix of class "dgCMatrix" a b c d e a . 1 1 . . b 1 . 1 . . c 1 1 . 1 1 d . . 1 . 1 e . . 1 1 . To check if the matrix defines and undirected graph, I have made the following functions/methods: is.UG <- function (object) { UseMethod("is.UG") }
2012 Jul 28
1
Creating sparse matrix of type "dgCMatrix" directly
I want to create a sparse matrix of type "dgCMatrix" using the Matrix package (and the matrix must be of this type even if other more compact representations may exist). I do > library(Matrix) > m1<-Matrix(rep(1,4),nrow=2,ncol=2,sparse=T) > m1 2 x 2 sparse Matrix of class "dsCMatrix" [1,] 1 1 [2,] 1 1 To convert m1, I do > as(m1, "dgCMatrix")
2018 Feb 08
2
sparse.model.matrix Generates Non-Existent Factor Levels if Ord.factor Columns Present
Good day, Sometimes, sparse.model.matrix outputs a dgCMatrix which has column names consisting of factor levels that were not in the original dataset. The first factor appears to be correctly transformed, but the following factors don't. For example: diamonds <- as.data.frame(ggplot2::diamonds) > colnames(sparse.model.matrix(~ . -1, diamonds)) [1] "carat"
2020 Jan 03
2
A modern object-oriented machine learning framework in R
Estimados amigos: Esta tarde he estado probando la librería mlr3, que me resulta muy interesante para trabajos de clasificación. En concreto, para entender su funcionamiento he probado un ejemplo simple (viene en CRAN). Sin embargo, cuando cambio el parámetro de clasifiación en la función de aprendizaje, me aparece el error siguiente: *Error: Element with key
2012 Oct 09
1
converting dgCMatrix to regular matrix
Hi: I've looked around and I must be missing it because it's probably somewhere. Does someone know how to convert an object of class dgCmatrix to a regular matrix. I can send someone the data if they need it but it's too big to include here. I read the data in using temp<-readMat("movielens.mat") where readMat is from the R.matlab package. But the resulting 2 matrices
2012 Oct 07
3
what exactly is the dim of data set yarn in package "pls"?
Hi list, I am looking at the data yarn in package, I don't understand what is dimension of this data set. I did the following: > library(pls) > data(yarn) > dim(yarn) [1] 28 3 > head(yarn) NIR.1 NIR.2 NIR.3 NIR.4 NIR.5 NIR.6 NIR.7 NIR.8 NIR.9 NIR.10 NIR.11 1 3.06630 3.08610 3.10790 3.09720 2.99790 2.82730 2.62330 2.40390 2.19310 2.00580 1.83790 2
2017 May 16
1
Fail to install xgboost
Hi I planned to learn R and their machine learning algorithms such as xgboost. I just installed R 3.3 in our CentOS linux system. Linus system: centos-release-6-9.el6.12.3.x86_64 I used the command: yum install R. I successfully install "rJava" and "mlr" packages. Then I used the following command: install.packages("xgboost") Unfortunately, I cannot install xgboost
2018 Apr 03
0
xgboost: problems with predictions for count data [SEC=UNCLASSIFIED]
Hi All, I tried to use xgboost to model and predict count data. The predictions are however not as expected as shown below. # sponge count data in library(spm) library(spm) data(sponge) data(sponge.grid) names(sponge) [1] "easting" "northing" "sponge" "tpi3" "var7" "entro7" "bs34" "bs11"
2006 Feb 09
1
converting lat-long coordinates to Albers Conical Equal Area coordinates
#################################################################################### We have used maptools to construct state, county, township, census-tract, and zipcode level R maps with an Albers Conical Equal Area projection. We would like to be able to plot the location of weather stations or other point locations on the maps. The data the point locations are in latitude-longitude units
2013 Jul 18
1
Looking for knitr example for beginner (NO RStudio)
Hi everyone, I am using package knitr, FIRST TIME. I don't have access to RStudio. Read through Yihui's page, didn't find it helpful. Stuck on terms Rnw, GFM (GitHub Flavored Markdown). Never used Sweave, so the reference is not helping. Is there a simple step-by-step example WITHOUT RStudio? My question: What is the procedure? The documentation explains the functions, but does
2011 Aug 23
0
Matrix:::qr.qy and signature(qr = "sparseQR", y = "dgCMatrix")
> sessionInfo() R version 2.13.1 (2011-07-08) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] Matrix_0.999375-50 lattice_0.19-30 loaded via a namespace (and not attached): [1] grid_2.13.1
2012 Dec 05
3
data manipulation between vector and matrix
Dear list, I was curious how to subtract a vector from matrix? Say, I have mat <- matrix(1:40, nrow=20, ncol=2) x <-c(1,2) I want, x-mat[1,] and x-mat[2,], and so on... Basically, subtract column elements of x against column elements in mat. But x-mat won't do it. Thanks, Mike [[alternative HTML version deleted]]
2009 Jul 20
1
S4 method dispatch with inheritance
Hi, I'm trying to create a new S4 class (myMatrix) which for now just extends dgCMatrix (from package Matrix). Then I want to use "[" which is defined in Matrix. Out of the box with "[" (defined in Matrix) I lose the class information and the result is an object of class dgCMatrix. If I specify a "["-method for myMatrix, it is not used because a signature
2017 Aug 01
1
How automatic Y on install y/n prompts?
You are right, maintainer does keep a list of model's packages. So how do I use a variable instead of $adaboost$? getModelInfo()$adaboost$library Also, server not found: http://rwiki.sciviews.org/doku.php?id=getting-started:reference-cards:getting-help On Tue, Aug 1, 2017 at 11:46 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > I have provided you all the