Giter VIP home page Giter VIP logo

spider_discrete's People

Contributors

carlosm-silva avatar sibirica avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spider_discrete's Issues

Unexpected argument on library.py

On continuous/library.py (Line 790 post pull merge) and discrete/library.py (Line 1021 post pull merge), the class TermSum is called with two arguments:
return TermSum(self.term_list + other.term_list, self.coeffs + other.coeffs)

However, this class initialization is defined with two arguments:
class TermSum(Equation): def __init__(self, term_list):

If the purpose is taking a list of unkeyed arguments a possible change is to re-write the class' init as:
def __init__(self, *term_list)

Incorrect type in process_library_terms.py

In process_library_terms.py class SRDataset method make_library_matrices (Lines 272-274 in discrete and 318-320 in continuous post pull merge), the code attempts the following iteration:
nt = len(term.obs_list)
space_orders = [[0] * len(dshape) for i in nt]
canon_obs_dims = [[None] * i.cgp.rank for i in nt]

From the definition, nt is type Int, which cannot be iterated. The second line can be solved by replacing nt with range(nt). However, this solution does not work for the third line, as this would imply i is an Int, which does not have the cgp attribute.

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.