Giter Site home page Giter Site logo

acmacs.r's People

Contributors

skepner avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

acmacs.r's Issues

acmacs.map_resolution_test number of replicates

In acmacs.map_resolution_test , there is no option to set the number of replicates/random trials per dimension and proportion left out.
It is useful to increase this to improve the precision of the error estimates.

acmacs.r 4.5 - unable to load shared object '[...]/acmacs.r.so': libacmacswhoccdata.so.1: cannot open shared object file: No such file or directory

Hi,

I have R 3.6 and am trying to load acmacs.r version 4.5 on Linux (to work with Racmacs), but am constantly faced with this error message:

library(acmacs.r)
Error: package or namespace load failed for ‘acmacs.r’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/vetschool/R/x86_64-pc-linux-gnu-library/3.6/acmacs.r/libs/acmacs.r.so':
libacmacswhoccdata.so.1: cannot open shared object file: No such file or directory

I have Rcpp 1.0.5, devtools, roxygen2, testthat installed.

Please can you advise? (duplicate posted on Racmacs page)

Thank you.

Carlijn

Dimension testing absolute error variability greater than expected from sd

I had originally submitted this to Racmacs, but I realised that the dimensionTestMap function uses acmacs.map_resolution_test

I'm not sure if this is an error or if I'm interpreting the data incorrectly. There is more variability in the average absolute error than I'd expect from it's sd and n.

I used the sd and n to calculate a 95% CI = mean +/- 1.96 * sd / sqrt(n) . I then repeat dimension testing and compare the results. With 5 dimensions and 10 repeats (50 data points), I'd expect 2.5 to be outside the CIs. Most are outside this range.

Example code below

library(Racmacs)

# generate random test data
set.seed(1)
coord <- matrix(rep(runif(10,0,10), times=2), ncol=2, byrow=T)
dist <- as.matrix(dist(coord))+rnorm(100)
max_mat <- matrix(apply(round(dist),2,max), ncol=10, nrow=10, byrow=T)
tab1 <- 10*2^round(max_mat-dist)

# make map
map1 <- make.acmap(table=tab1,
                   number_of_dimensions=2,
                   number_of_optimizations=10,
                   minimum_column_basis="2560", 
                   remove_trapped_points="none",
                   check_for_hemisphering = F)

# dimension test
dim_test <- dimensionTestMap(map1, 1:5, 0.1)

# dimension test x10
dim_tests <- NULL
for (i in 1:10){
  dim_tests[[i]] <- dimensionTestMap(map1, 1:5, 0.1)
}

# plot results
plot(NA, xlim=c(1,5), ylim=c(1,2.5), ylab="Average error", xlab="Dimensions")
for (i in 1:10){
  points(dim_tests[[i]]$av_abs_error, pch=16, cex=0.8, col=rainbow(10)[i])
  lines(dim_tests[[i]]$av_abs_error, col=rainbow(10)[i])
}


points(dim_test$av_abs_error, pch=16)
lines(dim_test$av_abs_error)
arrows(1:5, dim_test$av_abs_error-1.96*dim_test$av_abs_error_sd/sqrt(dim_test$number_of_samples), 
       1:5, dim_test$av_abs_error+1.96*dim_test$av_abs_error_sd/sqrt(dim_test$number_of_samples), 
       code=3, length=0.1, angle=90)

The attached plot show the first dimension test (black) with 95% CI and the subsequent 10 repeats (coloured)
dimension_results

Setting of projection transformation matrix not allowed

Although documented in the help files, the code below:

chart <- new(acmacs.r::acmacs.Chart, path_to_acd1)
chart$projections[[1]]$transformation <- matrix(c(1, 0, 0, 1), nrow=2, byrow=TRUE)

Returns the error:

Error in (new("activeBindingFunction", .Data = function (x)  : 
  property is read only

Session crashes if empty chart name is accessed

A small acmacs.r bug is that if you create a chart without setting the name, then try and access the name you get a pointer error and the session crashes. It might be good to set a default name of an empty string to avoid this?

Frozen merge naming

The name "frozen" has a different meaning in lispmds and acmacs.R , which confused me. In lispmds, "frozen" means that map1 is fixed and the points in map2 (really the data from table2) are optimised. This is a useful feature for merging in less reliable data so it would be helpful to have this functionality. It would also be good to change the name in acmacs.R to avoid other people with experience with lispmds making the same mistake as I did.

(I know you're on holiday so I'm not expecting a reply anytime soon!)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.