Questions tagged [pmap]
161 questions
0
votes
1 answer
Java memory usage: Can someone explain the difference between memory reported by jconsole, ps, and prstat?
I'm investigating some memory bloat in a Java project. Confounded by the different statistics reported by different tools (we are using Java 8 on Solaris 10).
jconsole gives me three numbers:
Committed: the amount reserved for this process by the…
0
votes
0 answers
apply vs map: can't filter list-column dataframe with map using tidyverse in R
I am trying to filter the rows contained in the data column of data_split_ based off information in other columns of data_split_ and my_perts_df_.
So specifically, I want to:
filter the my_perts_df_ table by excluding any pert_iname in exclude
then…

Nick Camarda
- 310
- 1
- 7
0
votes
1 answer
pmap size vs rss when it can't be disk
When I run pmap, I see a lot of segments like:
Address Perm Offset Device Inode Size Rss Pss Referenced Anonymous Swap Locked Mapping
7fdb7c000000 rw-p 00000000 00:00 0 132 4 4 4 4 0…

dspeyer
- 2,904
- 1
- 18
- 24
0
votes
0 answers
JAX pmap is slower than jit(vmap), how to speedup?
I have two fairly complex and independent computations that I want to run on two GPUs with pmap.
Surprisingly the pmap-ed version is much slower.
I know that doubling the performance is almost impossible but I expected a better performance.
Below is…

Krzysztof Rusek
- 1
- 1
0
votes
1 answer
TypeError using pmap in Julia 1.6.1
I have been working to parallelize a function which reads in an input of polynomials and outputs their roots. The polynomials are in the form of a matrix with columns being each polynomial. It works perfectly fine calling directly, but I get strange…

Victor
- 3
- 2
0
votes
1 answer
Use map() function to read and merge another files list
I have three files list
filesl <- list.files(pattern = 'RP-L-.*\\.xls', full.names = TRUE)
filesr <- list.files(pattern = 'RP-R-.*\\.xls', full.names = TRUE)
filesv <- list.files(pattern = 'RP-V-.*\\.xls', full.names = TRUE)
And I've attemped to…

12666727b9
- 1,133
- 1
- 8
- 22
0
votes
1 answer
How to coerce custom function in R to yield multiple outputs/plots in a set order when iterating with purrr?
I have a custom function that makes 3 plots for each cut of the data. The first plot is the overall results, and it should be followed by the breakdown of results by location and level (although whether location or level comes second or third is…

J.Sabree
- 2,280
- 19
- 48
0
votes
1 answer
Why does r purrr's pmap say "Only strings can be converted to symbols" and not iterate over dataset?
I'm trying to automate my creation of ggplot slides using pmap from the purrr package. As an extension of this question, I'm trying to facet based on the group membership variables in my data (level and location).
Unlike the previous question, I…

J.Sabree
- 2,280
- 19
- 48
0
votes
2 answers
using pmap function in R
I am trying to use the pmap for the first time, but struggle with assigning the arguments. Here is my test dataset:
overall <- data.table(dependant = rep(c("SPS", "DEPENDANT", "EMP"), 3),
exposure = rnorm(9, 0, 1),
…

Nneka
- 1,764
- 2
- 15
- 39
0
votes
1 answer
Multi-column data.frame as list argument to purrr::pmap for iteration over a data frame
I am trying to run a function to calculate proportion of time within a specified range over each row in a data frame using purrr::pmap, however one of the arguments for the original function is 11 columns. This means that the function works fine…

Jojo
- 4,951
- 7
- 23
- 27
0
votes
2 answers
Pass a list containing list names to `pmap` function in R and name resulting dataframes or tibbles
I am attempting to write a function in R that is called with the pmap function and renames the nested dataframes (or tibbles) that it creates using an argument passed from a list to the pmap function. I think this is best explained with a toy…

StatsStudent
- 1,384
- 2
- 10
- 28
0
votes
2 answers
Monitoring Valgrind with pmap
I am trying to monitor memory usage of a process with both Valgrind and pmap.
Since the process is not run by itself but through Valgrind, is it safe to say that monitoring Valgrind with pmap would be the same as monitoring the process, or does…

O.B.
- 29
- 1
- 7
0
votes
0 answers
Weird line in the pmap man page
I was reading the pmap man page, basically, it gives a memory map of a process. But there is an interesting line that caught my attention at the end of the man page:
STANDARDS
No standards apply, but pmap looks awful lot like a SunOS command.
What…

log101
- 17
- 7
0
votes
1 answer
pmap inconsistent behavior?
Compare
mtcars %>% mutate(a = pmap(list(gear, carb), sum))
which "works" as expected, with
mtcars %>% mutate(a = pmap(list(gear, carb), mean))
which does not.
I am obviously missing something.

JRC
- 239
- 1
- 7
0
votes
1 answer
Print current data.frame line aka progress in purrr:::pmap
I'm trying to understand purrr and I'm currently working with pmap. pmap can be used to call a predefined function and uses the values in a dataframe as arguments to the function call. I would like to know what the current state is, as my…

crazysantaclaus
- 613
- 5
- 19