Code Monkey home page Code Monkey logo

Comments (4)

iainmstott avatar iainmstott commented on August 11, 2024

That is... frustrating. I didn't realise there would be such matrices in the data. I can sort of see why in exceptional cases like these it might be necessary to relax the rules of the class, though. What I would suggest doing instead is that we migrate this check to functions in Rage which assume a nonnegative matrix so that whilst the data may be included in com(p)adre and pass the checks of the ´class, that they can't be in calculations whose assumptions they violate (this is the approach I've taken in popdemo)

from rcompadre.

iainmstott avatar iainmstott commented on August 11, 2024

I can take care of coding this in the CompadreM class file. I've assigned myself the task

from rcompadre.

iainmstott avatar iainmstott commented on August 11, 2024

I've removed the need for matrices to be nonnegative... hopefully now the current databases will work as CompadreM objects @levisc8

We'll need to be careful about making sure to check for nonnegativity in other functions in Rcompadre, Rage and popdemo. For popdemo I've been thinking about writing a checking function that runs through common culprits which can then be run at the start of each functions with arguments to select or deselect the components to check against. Maybe this would be a good idea for Rcompadre and Rage also...

from rcompadre.

levisc8 avatar levisc8 commented on August 11, 2024

@iainmstott I've tested the new version and it seems to work. I definitely agree that we need to be mindful of implementing those checks in Rage and popdemo though.

from rcompadre.

Related Issues (20)

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.