Giter Site home page Giter Site logo

Comments (3)

jameschapman19 avatar jameschapman19 commented on June 7, 2024 1

just noting I've seen this! Will aim to take a look as this is fairly important thanks for the code snip!

from cca_zoo.

jameschapman19 avatar jameschapman19 commented on June 7, 2024 1

Cool so immediate fix is change line

param_grid = {'c': [c1,c2]}

to

param_grid = {'c': [list(c1), list(c2)]}

Just a quirk of how I've set it up to process parameters at the moment.

I'm leaving this as an issue as a) there's no particular reason why numpy arrays are a bad idea and perhaps more importantly b) the error message is unhelpful in this instance. That bit leans on scikit code so might have to think about that.

Interestingly I just learnt that verbosity can be a number as well as a bool which would have been marginally more helpful in this instance (say verbosity=10) as it would show that it was trying to fit a model with c=[0,0.1,0.2 ...]. Also useful cos the gridsearch takes some time and gives more progress updates.

from cca_zoo.

jameschapman19 avatar jameschapman19 commented on June 7, 2024 1

noticed it's under hcp_project directory so I'm curious how it goes! Oddly enough this whole thing started out of me trying to replicate someone in my groups work on HCP using MATLAB.

from cca_zoo.

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.