Coder Social home page Coder Social logo

ours's People

Contributors

derekbeaton avatar kellysunderland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ours's Issues

Error in cat.mcd.find.sample.R, line 51

Hi,

We found an error in the cat.mcd.find.sample.R file, in line 51.

Original function:
final.configs <- unique(unique.min.configs[1:min(nrow(unique.min.configs), perc.cut),])
This returns a vector, but the function immediately following this one (final.dets) seems to be expecting a matrix.

We were able to get around this problem by adding a drop=F parameter to the function:
final.configs <- unique(unique.min.configs[1:min(nrow(unique.min.configs), perc.cut),,drop=F])

Should I push this up?

nrow(final.configs) fails when final.configs is not a matrix

See, e.g., when the CatMCD example is run with num.subsets = 5.

This is because final.configs is a vector and not a matrix. I think at this point if we have a final.configs that is only a vector, we should just return it as is without the final concentration (c-) step.

rename cat. & gen.

gen. should actually become the "core", with cat., ord., and mixed. as prefixes for mcd(). then it all gets passed into that gen.mcd core

Error in svd: infinite/missing

The ghost of zero variance has re-appeared:

Error in svd(x, nu = nu, nv = nv) : infinite or missing values in 'x'

This happens when a column or row have identical values. This needs to be caught (try/catch) and handled somehow... it might reflect that there is a robust group or not. Not sure yet. Easiest way to handle is to skip over it, but to limit the number of times it is skipped over in succession.

score correlations

I'm not so sure those are correct anymore... because of arbitrary flips.

GSVD has some stupid tests/conditions

The gsvd() function needs an update to correctly allow for the ignoring of RW and LW.

As of now I think it's the slightly older code. I need to pull the latest code from the GSVD package. Eventually OuRS will depend on the GSVD package.

Two Fold needs comparable output to MCD

There are some missing pieces, so there needs to be a wrapper around the two.fold.* functions so that all the same kinds of inputs compare to *.mcd() go in and similar results come out (except OD obviously).

drop & bring back bootstrap approach

drop it from the core package (for now) and then bring it back as a utility. I think we may want to include an "inference_utils.R" for these and other approaches

h.alpha.n: based on columns or rank?

I think this function should change to where p is based on available rank i.e., length($d) instead of ncol(DATA). That's because ncol(DATA) is inherently collinear for the generalized case. So it should be based on the span of the subspace, not the total number of columns

there are a lot of redundancies

not only in the code between e.g., find_sample and c_step, but also here in the issues & projects!

eliminate those when possible

disjunctive_coding fails when one of the columns is all NA

I found this error when I tried running the disjunctive_coding function on a data set and all the elements of one of the columns were NA.

Error in `[<-`(`*tmp*`, which(DATA[, i] == unique_no_na[j]), j, value = 1) : 
  subscript out of bounds

Error happens in this line since unique_no_na is a logical(0):
mini.mat[which(DATA[, i] == unique_no_na[j]), j] <- 1

Maybe this is fine to leave in if we don't intend to allow NA columns, but I didn't see any mention of it in the docs so I thought I would bring it up.

@derekbeaton

bring in design for split-half

there are two possible designs for split-half: resampling within a given row factor or resampling constrained to.

The first is to take splits from within. The second is to split the whole sample, but take entire portions of rows together (e.g., fMRI).

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.